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
20 PKG_MIRROR_HASH
:=23a3e239152c3a65612df8ab836c1a00c1884c51cfd328efbb045c550de16d04
22 PKG_LICENSE
:=GPL-2.0 GPL-2.0
+
23 PKG_LICENSE_FILES
:=Licenses
/README
25 include $(INCLUDE_DIR
)/package.mk
34 TITLE
:=U-Boot for the Gumstix Verdex
39 define Package
/uboot
/template
40 define Package
/uboot-pxa-
$(1)
42 CATEGORY
:=Boot Loaders
45 URL
:=http
://www.denx.de
/wiki
/U-Boot
47 MAINTAINER
:=Florian Fainelli
<florian@openwrt.org
>
51 define BuildUBootPackage
52 $(eval
$(uboot
/Default
))
54 $(call Package
/uboot
/template
,$(1),$(TITLE
))
58 $(eval
$(call uboot
/$(BUILD_VARIANT
)))
59 UBOOT_CONFIG
:=$(if
$(CONFIG
),$(CONFIG
),$(BUILD_VARIANT
))
60 UBOOT_IMAGE
:=$(if
$(IMAGE
),$(IMAGE
),openwrt-
$(BOARD
)-$(BUILD_VARIANT
)-u-boot.bin
)
63 define Build
/Configure
64 $(MAKE
) -C
$(PKG_BUILD_DIR
) \
65 $(UBOOT_CONFIG
)_config
69 $(MAKE
) -C
$(PKG_BUILD_DIR
) \
71 CROSS_COMPILE
=$(TARGET_CROSS
)
74 define Package
/uboot
/install/default
75 $(INSTALL_DIR
) $(BIN_DIR
)
76 $(CP
) $(PKG_BUILD_DIR
)/u-boot.bin \
77 $(BIN_DIR
)/openwrt-
$(BOARD
)-$(1)-u-boot.bin
80 define Package
/uboot
/install/template
81 define Package
/uboot-pxa-
$(1)/install
82 $(call Package
/uboot
/install/default
,$(2))
86 $(foreach u
,$(UBOOTS
), \
87 $(eval
$(call Package
/uboot
/install/template
,$(u
),$(u
))) \
90 $(foreach u
,$(UBOOTS
), \
91 $(eval
$(call BuildUBootPackage
,$(u
))) \
92 $(eval
$(call BuildPackage
,uboot-pxa-
$(u
))) \