2 # Copyright (C) 2012-2013 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
14 PKG_BUILD_DIR
:=$(BUILD_DIR
)/$(PKG_NAME
)-$(BUILD_VARIANT
)/$(PKG_NAME
)-$(PKG_VERSION
)
15 PKG_SOURCE
:=$(PKG_NAME
)-$(PKG_VERSION
).
tar.bz2
17 http
://mirror2.openwrt.org
/sources \
18 ftp
://ftp.denx.de
/pub
/u-boot
19 PKG_MD5SUM
:=a076a044b64371edc52f7e562b13f6b2
22 include $(INCLUDE_DIR
)/package.mk
30 define uboot
/omap4_panda
31 TITLE
:=U-Boot for the Pandaboard
34 define uboot
/am335x_evm
35 TITLE
:=U-Boot for the AM335x EVM
38 define uboot
/omap3_overo
39 TITLE
:=U-Boot for the Gumstix Overo
42 define uboot
/omap3_beagle
43 TITLE
:=U-Boot for the BeagleBoard
46 UBOOTS
:=omap4_panda am335x_evm omap3_overo omap3_beagle
48 define Package
/uboot
/template
49 define Package
/uboot-omap-
$(1)
51 CATEGORY
:=Boot Loaders
54 URL
:=http
://www.denx.de
/wiki
/U-Boot
60 define BuildUBootPackage
61 $(eval
$(uboot
/Default
))
63 $(call Package
/uboot
/template
,$(1),$(TITLE
))
67 $(eval
$(call uboot
/$(BUILD_VARIANT
)))
68 UBOOT_CONFIG
:=$(if
$(CONFIG
),$(CONFIG
),$(BUILD_VARIANT
))
69 UBOOT_IMAGE
:=$(if
$(IMAGE
),$(IMAGE
),openwrt-
$(BOARD
)-$(BUILD_VARIANT
)-u-boot.img
)
72 define Build
/Configure
73 $(MAKE
) -C
$(PKG_BUILD_DIR
) \
74 $(UBOOT_CONFIG
)_config
78 $(MAKE
) -C
$(PKG_BUILD_DIR
) \
79 CROSS_COMPILE
=$(TARGET_CROSS
)
82 define Package
/uboot
/install/default
83 $(INSTALL_DIR
) $(BIN_DIR
)/uboot-
$(BOARD
)-$(1)
84 $(CP
) $(PKG_BUILD_DIR
)/u-boot.img
$(BIN_DIR
)/uboot-
$(BOARD
)-$(1)/u-boot.img
85 $(CP
) $(PKG_BUILD_DIR
)/MLO
$(BIN_DIR
)/uboot-
$(BOARD
)-$(1)/MLO
88 define Package
/uboot
/install/template
89 define Package
/uboot-omap-
$(1)/install
90 $(call Package
/uboot
/install/default
,$(2))
94 $(foreach u
,$(UBOOTS
), \
95 $(eval
$(call Package
/uboot
/install/template
,$(u
),$(u
))) \
98 $(foreach u
,$(UBOOTS
), \
99 $(eval
$(call BuildUBootPackage
,$(u
))) \
100 $(eval
$(call BuildPackage
,uboot-omap-
$(u
))) \