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
17 PKG_SOURCE_URL
:=ftp
://ftp.denx.de
/pub
/u-boot
18 PKG_MD5SUM
:=451c07271940016cec6f5ad8a155263b
21 include $(INCLUDE_DIR
)/package.mk
30 TITLE
:=U-boot for the qi_lb60 board
35 define Package
/uboot
/template
36 define Package
/uboot-xburst-
$(1)
38 CATEGORY
:=Boot Loaders
39 DEPENDS
:=@TARGET_xburst
41 URL
:=http
://www.denx.de
/wiki
/UBoot
/WebHome
46 define BuildUbootPackage
47 $(eval
$(uboot
/Default
))
49 $(call Package
/uboot
/template
,$(1),$(TITLE
))
54 $(eval
$(call uboot
/$(BUILD_VARIANT
)))
55 UBOOT_CONFIG
:=$(if
$(CONFIG
),$(CONFIG
),$(BUILD_VARIANT
))
56 UBOOT_IMAGE
:=$(if
$(IMAGE
),$(IMAGE
),openwrt-
$(BOARD
)-$(BUILD_BARIANT
)-u-boot.bin
)
59 define Build
/Configure
60 $(MAKE
) -C
$(PKG_BUILD_DIR
) \
61 $(UBOOT_CONFIG
)_config
65 $(MAKE
) -C
$(PKG_BUILD_DIR
) \
66 CROSS_COMPILE
=$(TARGET_CROSS
)
69 define Package
/uboot
/install/template
70 define Package
/uboot-xburst-
$(1)/install
71 $(CP
) $(PKG_BUILD_DIR
)/u-boot-xburst.bin
$(BIN_DIR
)/$(2)
76 $(foreach u
,$(UBOOTS
), \
77 $(eval
$(call Package
/uboot
/install/template
,$(u
),openwrt-
$(BOARD
)-$(u
)-u-boot.bin
)) \
80 $(foreach u
,$(UBOOTS
), \
81 $(eval
$(call BuildUbootPackage
,$(u
))) \
82 $(eval
$(call BuildPackage
,uboot-xburst-
$(u
))) \