source: trunk/package/uboot-envtools/Makefile @ 28566

Last change on this file since 28566 was 28566, checked in by juhosg, 5 years ago

package/u-boot-envtools: update to version 2011.06.

This updates uboot-envtools to the version which comes with U-Boot 2011.06.
The important novelity is that fw_setenv now supports batch processing, which
greatly improves sysupgrade of the ALL0258N as otherwise we would have to
overwrite uboot-env up to 8x in a single firmware upgrade.
Unfortunately, no newer version of the sources is available from Debian, so we
got to take it from the u-boot source which is kinda ugly...

Signed-off-by: Daniel Golle <dgolle@…>

File size: 1.2 KB
Line 
1#
2# Copyright (C) 2006-2011 OpenWrt.org
3#
4# This is free software, licensed under the GNU General Public License v2.
5# See /LICENSE for more information.
6#
7
8include $(TOPDIR)/rules.mk
9
10PKG_NAME:=uboot-envtools
11PKG_DISTNAME:=u-boot
12PKG_VERSION:=2011.06
13PKG_RELEASE:=1
14
15PKG_SOURCE:=$(PKG_DISTNAME)-$(PKG_VERSION).tar.bz2
16PKG_SOURCE_URL:=ftp://ftp.denx.de/pub/u-boot
17PKG_MD5SUM:=
18
19include $(INCLUDE_DIR)/package.mk
20
21TAR_OPTIONS+= --strip-components=3 -C $(PKG_BUILD_DIR) $(PKG_DISTNAME)-$(PKG_VERSION)/tools/env
22
23define Package/uboot-envtools
24  SECTION:=utils
25  CATEGORY:=Utilities
26  TITLE:=read/modify U-Boot bootloader environment
27  DEPENDS:= +zlib
28  URL:=http://www.denx.de/wiki/U-Boot
29endef
30
31define Package/uboot-envtools/description
32 This package includes tools to read and modify U-Boot bootloader environment.
33endef
34
35define Package/uboot-envtools/install
36        $(INSTALL_DIR) $(1)/usr/sbin
37        $(INSTALL_BIN) $(PKG_BUILD_DIR)/fw_printenv $(1)/usr/sbin/
38        ln -sf fw_printenv $(1)/usr/sbin/fw_setenv
39endef
40
41define Build/Prepare
42        mkdir -p $(PKG_BUILD_DIR)
43        tar xvjf $(DL_DIR)/$(PKG_SOURCE) --strip-components=2 -C $(PKG_BUILD_DIR) $(PKG_DISTNAME)-$(PKG_VERSION)/lib/crc32.c
44        $(call Build/Prepare/Default)
45endef
46
47$(eval $(call BuildPackage,uboot-envtools))
Note: See TracBrowser for help on using the repository browser.