2 # Copyright (C) 2012 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
15 PKG_SOURCE_URL
:=https
://github.com
/ashcharles
/verdex-uboot.git
16 PKG_SOURCE_DATE
:=2011-08-25
17 PKG_SOURCE_VERSION
:=ca6bf3ef6ac5f5132a359b43dfa31e07076b74b7
18 PKG_MIRROR_HASH
:=7c92525b6c7bc0b6f065a9bfdf64d58a61583709cb44acb62a157ad3efc7c491
20 PKG_LICENSE
:=GPL-2.0 GPL-2.0
+
21 PKG_LICENSE_FILES
:=Licenses
/README
23 include $(INCLUDE_DIR
)/package.mk
32 TITLE
:=U-Boot for the Gumstix Verdex
37 define Package
/uboot
/template
38 define Package
/uboot-pxa-
$(1)
40 CATEGORY
:=Boot Loaders
43 URL
:=http
://www.denx.de
/wiki
/U-Boot
45 MAINTAINER
:=Florian Fainelli
<florian@openwrt.org
>
49 define BuildUBootPackage
50 $(eval
$(uboot
/Default
))
52 $(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
) \
69 CROSS_COMPILE
=$(TARGET_CROSS
)
72 define Package
/uboot
/install/default
73 $(INSTALL_DIR
) $(BIN_DIR
)
74 $(CP
) $(PKG_BUILD_DIR
)/u-boot.bin \
75 $(BIN_DIR
)/openwrt-
$(BOARD
)-$(1)-u-boot.bin
78 define Package
/uboot
/install/template
79 define Package
/uboot-pxa-
$(1)/install
80 $(call Package
/uboot
/install/default
,$(2))
84 $(foreach u
,$(UBOOTS
), \
85 $(eval
$(call Package
/uboot
/install/template
,$(u
),$(u
))) \
88 $(foreach u
,$(UBOOTS
), \
89 $(eval
$(call BuildUBootPackage
,$(u
))) \
90 $(eval
$(call BuildPackage
,uboot-pxa-
$(u
))) \