summaryrefslogtreecommitdiff
path: root/package/u-boot/Makefile
diff options
context:
space:
mode:
authorWaldemar Brodkorb <wbx@openadk.org>2015-07-26 14:09:53 +0200
committerWaldemar Brodkorb <wbx@openadk.org>2015-07-26 14:10:05 +0200
commit89ec11b8ecdcd04568d105c8e4703c0e68960c08 (patch)
tree402619e228cc84d3ecdef59a629ee33af6e98695 /package/u-boot/Makefile
parent340af0c1c0301e53a0a9956b238794694eaa8468 (diff)
update u-boot to latest stable release
Diffstat (limited to 'package/u-boot/Makefile')
-rw-r--r--package/u-boot/Makefile24
1 files changed, 17 insertions, 7 deletions
diff --git a/package/u-boot/Makefile b/package/u-boot/Makefile
index 781f3cd9d..2b8404d39 100644
--- a/package/u-boot/Makefile
+++ b/package/u-boot/Makefile
@@ -4,19 +4,19 @@
include $(ADK_TOPDIR)/rules.mk
PKG_NAME:= u-boot
-PKG_VERSION:= 2015.01
-PKG_RELEASE:= 3
-PKG_HASH:= 383051a656ebe11757b17d38a3326387e4a1b0949ca8a9e8ee506bf71dac9fde
+PKG_VERSION:= 2015.07
+PKG_RELEASE:= 1
+PKG_HASH:= 0b48c9bd717f2c322ef791f8282e14c88be942dc7d1226df7e31a812a3af94d9
PKG_DESCR:= portable bootloader
PKG_SECTION:= base/boot
-HOST_BUILDDEP:= openssl-host
+HOST_BUILDDEP:= openssl-host device-tree-compiler-host
PKG_BUILDDEP:= u-boot-host
PKG_URL:= http://www.denx.de/wiki/U-Boot
PKG_SITES:= ftp://ftp.denx.de/pub/u-boot/
DISTFILES:= $(PKG_NAME)-$(PKG_VERSION).tar.bz2
-PKG_SYSTEM_DEPENDS:= raspberry-pi raspberry-pi2 atmel-ngw100
+PKG_SYSTEM_DEPENDS:= raspberry-pi raspberry-pi2 atmel-ngw100 banana-pro
include $(ADK_TOPDIR)/mk/host.mk
include $(ADK_TOPDIR)/mk/package.mk
@@ -24,6 +24,7 @@ include $(ADK_TOPDIR)/mk/package.mk
$(eval $(call HOST_template,U_BOOT,u-boot,$(PKG_VERSION)-$(PKG_RELEASE)))
$(eval $(call PKG_template,U_BOOT,u-boot,$(PKG_VERSION)-$(PKG_RELEASE),$(PKG_DEPENDS),$(PKG_DESCR),$(PKG_SECTION)))
+UBOOT:= u-boot.bin
ifeq ($(ADK_TARGET_SYSTEM_RASPBERRY_PI),y)
CONFIG:= rpi_defconfig
endif
@@ -33,6 +34,10 @@ endif
ifeq ($(ADK_TARGET_SYSTEM_ATMEL_NGW100),y)
CONFIG:= atngw100_defconfig
endif
+ifeq ($(ADK_TARGET_SYSTEM_BANANA_PRO),y)
+CONFIG:= Bananapro_defconfig
+UBOOT:= u-boot-sunxi-with-spl.bin
+endif
HOST_MAKE_FLAGS+= HOSTCFLAGS="$(HOST_CPPFLAGS) $(HOST_CFLAGS)" \
HOSTLDFLAGS="$(HOST_LDFLAGS) -ldl"
@@ -55,13 +60,15 @@ do-configure:
(cd $(WRKBUILD) && $(MAKE) $(CONFIG))
do-build:
- (cd $(WRKBUILD) && env CROSS_COMPILE='$(TARGET_CROSS)' \
+ (cd $(WRKBUILD) && env \
+ PATH='$(HOST_PATH)' \
+ CROSS_COMPILE='$(TARGET_CROSS)' \
GCC_HONOUR_COPTS=s $(MAKE))
(cd $(WRKBUILD) && env CROSS_COMPILE='$(TARGET_CROSS)' \
GCC_HONOUR_COPTS=s $(MAKE) env)
u-boot-install:
- $(CP) $(WRKBUILD)/u-boot.bin $(FW_DIR)
+ $(CP) $(WRKBUILD)/$(UBOOT) $(FW_DIR)
$(INSTALL_DIR) $(IDIR_U_BOOT)/etc
$(CP) ./files/fw_env.config $(IDIR_U_BOOT)/etc
$(INSTALL_DIR) $(IDIR_U_BOOT)/usr/bin
@@ -70,6 +77,9 @@ u-boot-install:
(cd $(IDIR_U_BOOT)/usr/bin && ln -sf fw_printenv fw_setenv)
$(INSTALL_BIN) ./files/uboot_print_env $(IDIR_U_BOOT)/usr/bin
$(INSTALL_BIN) ./files/uboot_set_env $(IDIR_U_BOOT)/usr/bin
+ifeq ($(ADK_TARGET_SYSTEM_BANANA_PRO),y)
+ $(INSTALL_BIN) ./files/boot.script.bpi $(FW_DIR)
+endif
include $(ADK_TOPDIR)/mk/host-bottom.mk
include $(ADK_TOPDIR)/mk/pkg-bottom.mk