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
12 PKG_VERSION
:=2011.08.25
16 PKG_SOURCE_URL
:=https
://github.com
/ashcharles
/verdex-uboot.git
17 PKG_SOURCE_SUBDIR
:=$(PKG_NAME
)-$(PKG_VERSION
)
18 PKG_SOURCE_VERSION
:=ca6bf3ef6ac5f5132a359b43dfa31e07076b74b7
19 PKG_SOURCE
:=$(PKG_NAME
)-$(PKG_VERSION
)-$(PKG_SOURCE_VERSION
).
tar.xz
21 PKG_LICENSE
:=GPL-2.0 GPL-2.0
+
22 PKG_LICENSE_FILES
:=Licenses
/README
24 include $(INCLUDE_DIR
)/package.mk
33 TITLE
:=U-Boot for the Gumstix Verdex
38 define Package
/uboot
/template
39 define Package
/uboot-pxa-
$(1)
41 CATEGORY
:=Boot Loaders
44 URL
:=http
://www.denx.de
/wiki
/U-Boot
46 MAINTAINER
:=Florian Fainelli
<florian@openwrt.org
>
50 define BuildUBootPackage
51 $(eval
$(uboot
/Default
))
53 $(call Package
/uboot
/template
,$(1),$(TITLE
))
57 $(eval
$(call uboot
/$(BUILD_VARIANT
)))
58 UBOOT_CONFIG
:=$(if
$(CONFIG
),$(CONFIG
),$(BUILD_VARIANT
))
59 UBOOT_IMAGE
:=$(if
$(IMAGE
),$(IMAGE
),openwrt-
$(BOARD
)-$(BUILD_VARIANT
)-u-boot.bin
)
62 define Build
/Configure
63 $(MAKE
) -C
$(PKG_BUILD_DIR
) \
64 $(UBOOT_CONFIG
)_config
68 $(MAKE
) -C
$(PKG_BUILD_DIR
) \
70 CROSS_COMPILE
=$(TARGET_CROSS
)
73 define Package
/uboot
/install/default
74 $(INSTALL_DIR
) $(BIN_DIR
)
75 $(CP
) $(PKG_BUILD_DIR
)/u-boot.bin \
76 $(BIN_DIR
)/openwrt-
$(BOARD
)-$(1)-u-boot.bin
79 define Package
/uboot
/install/template
80 define Package
/uboot-pxa-
$(1)/install
81 $(call Package
/uboot
/install/default
,$(2))
85 $(foreach u
,$(UBOOTS
), \
86 $(eval
$(call Package
/uboot
/install/template
,$(u
),$(u
))) \
89 $(foreach u
,$(UBOOTS
), \
90 $(eval
$(call BuildUBootPackage
,$(u
))) \
91 $(eval
$(call BuildPackage
,uboot-pxa-
$(u
))) \