2 # Copyright (C) 2006-2012 OpenWrt.org
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
8 include $(TOPDIR
)/rules.mk
10 PKG_NAME
:=uboot-envtools
12 PKG_VERSION
:=2012.04.01
15 PKG_SOURCE
:=$(PKG_DISTNAME
)-$(PKG_VERSION
).
tar.bz2
16 PKG_SOURCE_URL
:=ftp
://ftp.denx.de
/pub
/u-boot
17 PKG_MD5SUM
:=192bb231082d9159fb6e16de3039b6b2
18 PKG_BUILD_DEPENDS
:=zlib
20 include $(INCLUDE_DIR
)/package.mk
22 TAR_OPTIONS
+= --strip-components
=3 -C
$(PKG_BUILD_DIR
) $(PKG_DISTNAME
)-$(PKG_VERSION
)/tools
/env
24 define Package
/uboot-envtools
27 TITLE
:=read
/modify U-Boot bootloader environment
28 URL
:=http
://www.denx.de
/wiki
/U-Boot
32 define Package
/uboot-envtools
/description
33 This package includes tools to read and modify U-Boot bootloader environment.
37 mkdir
-p
$(PKG_BUILD_DIR
)
38 tar xvjf
$(DL_DIR
)/$(PKG_SOURCE
) --strip-components
=2 -C
$(PKG_BUILD_DIR
) $(PKG_DISTNAME
)-$(PKG_VERSION
)/lib
/crc32.c
39 $(call Build
/Prepare
/Default
)
42 define Package
/uboot-envtools
/conffiles
47 define Package
/uboot-envtools
/install
48 $(INSTALL_DIR
) $(1)/usr
/sbin
49 $(INSTALL_BIN
) $(PKG_BUILD_DIR
)/fw_printenv
$(1)/usr
/sbin
50 ln
-s fw_printenv
$(1)/usr
/sbin
/fw_setenv
51 $(INSTALL_DIR
) $(1)/lib
52 $(INSTALL_DATA
) .
/files
/uboot-envtools.sh
$(1)/lib
53 ifneq ($(CONFIG_TARGET_ar71xx
),)
54 $(INSTALL_DIR
) $(1)/etc
/uci-defaults
55 $(INSTALL_BIN
) .
/files
/ar71xx
$(1)/etc
/uci-defaults
/uboot-envtools
57 ifneq ($(CONFIG_TARGET_kirkwood
),)
58 $(INSTALL_DIR
) $(1)/etc
/uci-defaults
59 $(INSTALL_BIN
) .
/files
/kirkwood
$(1)/etc
/uci-defaults
/uboot-envtools
61 ifneq ($(CONFIG_TARGET_lantiq
),)
62 $(INSTALL_DIR
) $(1)/etc
/uci-defaults
63 $(INSTALL_BIN
) .
/files
/lantiq
$(1)/etc
/uci-defaults
/uboot-envtools
65 ifneq ($(CONFIG_TARGET_ramips
),)
66 $(INSTALL_DIR
) $(1)/etc
/uci-defaults
67 $(INSTALL_BIN
) .
/files
/ramips
$(1)/etc
/uci-defaults
/uboot-envtools
71 $(eval
$(call BuildPackage
,uboot-envtools
))