X-Git-Url: https://git.archive.openwrt.org/?a=blobdiff_plain;ds=sidebyside;f=package%2Fboot%2Fuboot-envtools%2FMakefile;h=2d0f6b7986a653f1afa4c8e12b09313f414f92d2;hb=57b0768426e902ec1807370dfae37874962fb0f5;hp=74da5ea125506d4eed188197674db403351e5807;hpb=a3a71d430b762ca48c6030c92d268a86b9f9137d;p=openwrt.git diff --git a/package/boot/uboot-envtools/Makefile b/package/boot/uboot-envtools/Makefile index 74da5ea125..2d0f6b7986 100644 --- a/package/boot/uboot-envtools/Makefile +++ b/package/boot/uboot-envtools/Makefile @@ -1,5 +1,5 @@ # -# Copyright (C) 2006-2012 OpenWrt.org +# Copyright (C) 2006-2013 OpenWrt.org # # This is free software, licensed under the GNU General Public License v2. # See /LICENSE for more information. @@ -9,17 +9,16 @@ include $(TOPDIR)/rules.mk PKG_NAME:=uboot-envtools PKG_DISTNAME:=u-boot -PKG_VERSION:=2012.04.01 +PKG_VERSION:=2013.04 PKG_RELEASE:=1 PKG_SOURCE:=$(PKG_DISTNAME)-$(PKG_VERSION).tar.bz2 PKG_SOURCE_URL:=ftp://ftp.denx.de/pub/u-boot -PKG_MD5SUM:=192bb231082d9159fb6e16de3039b6b2 -PKG_BUILD_DEPENDS:=zlib +PKG_MD5SUM:=21bf962d69938ed4ed783b792b2b074e -include $(INCLUDE_DIR)/package.mk +PKG_BUILD_DIR:=$(BUILD_DIR)/u-boot-$(PKG_VERSION) -TAR_OPTIONS+= --strip-components=3 -C $(PKG_BUILD_DIR) $(PKG_DISTNAME)-$(PKG_VERSION)/tools/env +include $(INCLUDE_DIR)/package.mk define Package/uboot-envtools SECTION:=utils @@ -32,10 +31,15 @@ define Package/uboot-envtools/description This package includes tools to read and modify U-Boot bootloader environment. endef -define Build/Prepare - mkdir -p $(PKG_BUILD_DIR) - tar xvjf $(DL_DIR)/$(PKG_SOURCE) --strip-components=2 -C $(PKG_BUILD_DIR) $(PKG_DISTNAME)-$(PKG_VERSION)/lib/crc32.c - $(call Build/Prepare/Default) +define Build/Configure +endef + +define Build/Compile + touch $(PKG_BUILD_DIR)/include/config.h + $(MAKE) -C $(PKG_BUILD_DIR) \ + HOSTCC="$(TOOLCHAIN_DIR)/bin/$(TARGET_CROSS)gcc" \ + HOSTSTRIP="$(TOOLCHAIN_DIR)/bin/$(TARGET_CROSS)strip" \ + env endef define Package/uboot-envtools/conffiles @@ -45,7 +49,7 @@ endef define Package/uboot-envtools/install $(INSTALL_DIR) $(1)/usr/sbin - $(INSTALL_BIN) $(PKG_BUILD_DIR)/fw_printenv $(1)/usr/sbin + $(INSTALL_BIN) $(PKG_BUILD_DIR)/tools/env/fw_printenv $(1)/usr/sbin ln -s fw_printenv $(1)/usr/sbin/fw_setenv $(INSTALL_DIR) $(1)/lib $(INSTALL_DATA) ./files/uboot-envtools.sh $(1)/lib @@ -65,6 +69,10 @@ ifneq ($(CONFIG_TARGET_ramips),) $(INSTALL_DIR) $(1)/etc/uci-defaults $(INSTALL_BIN) ./files/ramips $(1)/etc/uci-defaults/uboot-envtools endif +ifneq ($(CONFIG_TARGET_cns3xxx),) + $(INSTALL_DIR) $(1)/etc/uci-defaults + $(INSTALL_BIN) ./files/cns3xxx $(1)/etc/uci-defaults/uboot-envtools +endif endef $(eval $(call BuildPackage,uboot-envtools))