[packages] new package uboot-env-mmc: hacked in support for reading/writing an uboot...
[openwrt/svn-archive/archive.git] / utils / uboot-envtools-mmc / Makefile
1 #
2 # Copyright (C) 2006-2010 OpenWrt.org
3 #
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
6 #
7
8 include $(TOPDIR)/rules.mk
9
10 PKG_NAME:=uboot-envtools-mmc
11 PKG_VERSION:=20081215
12 PKG_RELEASE:=1.1
13
14 PKG_SOURCE:=uboot-envtools_$(PKG_VERSION).orig.tar.gz
15 PKG_SOURCE_URL:=http://ftp.de.debian.org/debian/pool/main/u/uboot-envtools/
16
17 include $(INCLUDE_DIR)/package.mk
18
19 TAR_CMD=$(HOST_TAR) --strip-components 1 -C "$(PKG_BUILD_DIR)" $(TAR_OPTIONS)
20
21 TARGET_CFLAGS += -DCONFIG_ENV_IS_IN_MMC
22
23 define Package/uboot-envtools-mmc
24 SECTION:=utils
25 CATEGORY:=Utilities
26 TITLE:=read/modify U-Boot bootloader environment in MMC flash
27 DEPENDS:= +zlib
28 URL:=http://www.denx.de/wiki/U-Boot
29 endef
30
31 define Package/uboot-envtools-mmc/description
32 This package includes tools to read and modify U-Boot bootloader environment.
33 This package is patched to to allow reading/writing to block devices.
34 endef
35
36 define Package/uboot-envtools-mmc/install
37 $(INSTALL_DIR) $(1)/usr/sbin
38 $(INSTALL_BIN) $(PKG_BUILD_DIR)/fw_printenv $(1)/usr/sbin/
39 ln -sf fw_printenv $(1)/usr/sbin/fw_setenv
40 endef
41
42 $(eval $(call BuildPackage,uboot-envtools-mmc))