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 include $(INCLUDE_DIR
)/package.mk
32 TITLE
:=U-boot for the qi_lb60 board
37 define Package
/uboot
/template
38 define Package
/uboot-xburst-
$(1)
40 CATEGORY
:=Boot Loaders
41 DEPENDS
:=@TARGET_xburst
43 URL
:=http
://www.denx.de
/wiki
/UBoot
/WebHome
48 define BuildUbootPackage
49 $(eval
$(uboot
/Default
))
51 $(call Package
/uboot
/template
,$(1),$(TITLE
))
56 $(eval
$(call uboot
/$(BUILD_VARIANT
)))
57 UBOOT_CONFIG
:=$(if
$(CONFIG
),$(CONFIG
),$(BUILD_VARIANT
))
58 UBOOT_IMAGE
:=$(if
$(IMAGE
),$(IMAGE
),openwrt-
$(BOARD
)-$(BUILD_VARIANT
)-u-boot.bin
)
61 define Build
/Configure
62 $(MAKE
) -C
$(PKG_BUILD_DIR
) \
63 $(UBOOT_CONFIG
)_config
67 $(MAKE
) -C
$(PKG_BUILD_DIR
) \
68 CROSS_COMPILE
=$(TARGET_CROSS
)
71 define Package
/uboot
/install/template
72 define Package
/uboot-xburst-
$(1)/install
73 $(CP
) $(PKG_BUILD_DIR
)/u-boot-xburst.bin
$(BIN_DIR
)/$(2)
78 $(foreach u
,$(UBOOTS
), \
79 $(eval
$(call Package
/uboot
/install/template
,$(u
),openwrt-
$(BOARD
)-$(u
)-u-boot.bin
)) \
82 $(foreach u
,$(UBOOTS
), \
83 $(eval
$(call BuildUbootPackage
,$(u
))) \
84 $(eval
$(call BuildPackage
,uboot-xburst-
$(u
))) \