2 # Copyright (C) 2010 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
9 include $(INCLUDE_DIR
)/kernel.mk
12 PKG_VERSION
:=2012.10-rc2
15 PKG_BUILD_DIR
:=$(KERNEL_BUILD_DIR
)/$(PKG_NAME
)-$(BUILD_VARIANT
)/$(PKG_NAME
)-$(PKG_VERSION
)
16 PKG_SOURCE
:=$(PKG_NAME
)-$(PKG_VERSION
).
tar.bz2
18 http
://mirror2.openwrt.org
/sources \
19 ftp
://ftp.denx.de
/pub
/u-boot
20 PKG_MD5SUM
:=451c07271940016cec6f5ad8a155263b
23 PKG_LICENSE
:=GPL-2.0 GPL-2.0
+
24 PKG_LICENSE_FILES
:=Licenses
/README
26 include $(INCLUDE_DIR
)/package.mk
35 TITLE
:=U-boot for the qi_lb60 board
40 define Package
/uboot
/template
41 define Package
/uboot-xburst-
$(1)
43 CATEGORY
:=Boot Loaders
44 DEPENDS
:=@TARGET_xburst
46 URL
:=http
://www.denx.de
/wiki
/UBoot
/WebHome
51 define BuildUbootPackage
52 $(eval
$(uboot
/Default
))
54 $(call Package
/uboot
/template
,$(1),$(TITLE
))
59 $(eval
$(call uboot
/$(BUILD_VARIANT
)))
60 UBOOT_CONFIG
:=$(if
$(CONFIG
),$(CONFIG
),$(BUILD_VARIANT
))
61 UBOOT_IMAGE
:=$(if
$(IMAGE
),$(IMAGE
),openwrt-
$(BOARD
)-$(BUILD_VARIANT
)-u-boot.bin
)
64 define Build
/Configure
65 $(MAKE
) -C
$(PKG_BUILD_DIR
) \
66 $(UBOOT_CONFIG
)_config
70 $(MAKE
) -C
$(PKG_BUILD_DIR
) \
71 CROSS_COMPILE
=$(TARGET_CROSS
)
74 define Package
/uboot
/install/template
75 define Package
/uboot-xburst-
$(1)/install
76 $(CP
) $(PKG_BUILD_DIR
)/u-boot-xburst.bin
$(BIN_DIR
)/$(2)
81 $(foreach u
,$(UBOOTS
), \
82 $(eval
$(call Package
/uboot
/install/template
,$(u
),openwrt-
$(BOARD
)-$(u
)-u-boot.bin
)) \
85 $(foreach u
,$(UBOOTS
), \
86 $(eval
$(call BuildUbootPackage
,$(u
))) \
87 $(eval
$(call BuildPackage
,uboot-xburst-
$(u
))) \