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
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-omap4-
$(1)
51 CATEGORY
:=Boot Loaders
52 DEPENDS
:=@TARGET_omap4
54 URL
:=http
://www.denx.de
/wiki
/U-Boot
59 define BuildUBootPackage
60 $(eval
$(uboot
/Default
))
62 $(call Package
/uboot
/template
,$(1),$(TITLE
))
66 $(eval
$(call uboot
/$(BUILD_VARIANT
)))
67 UBOOT_CONFIG
:=$(if
$(CONFIG
),$(CONFIG
),$(BUILD_VARIANT
))
68 UBOOT_IMAGE
:=$(if
$(IMAGE
),$(IMAGE
),openwrt-
$(BOARD
)-$(BUILD_VARIANT
)-u-boot.img
)
71 define Build
/Configure
72 $(MAKE
) -C
$(PKG_BUILD_DIR
) \
73 $(UBOOT_CONFIG
)_config
77 $(MAKE
) -C
$(PKG_BUILD_DIR
) \
78 CROSS_COMPILE
=$(TARGET_CROSS
)
81 define Package
/uboot
/install/default
82 $(INSTALL_DIR
) $(BIN_DIR
)/uboot-
$(BOARD
)-$(1)
83 $(CP
) $(PKG_BUILD_DIR
)/u-boot.img
$(BIN_DIR
)/uboot-
$(BOARD
)-$(1)/openwrt-
$(BOARD
)-$(1)-u-boot.img
84 $(CP
) $(PKG_BUILD_DIR
)/MLO
$(BIN_DIR
)/uboot-
$(BOARD
)-$(1)/openwrt-
$(BOARD
)-$(1)-MLO
87 define Package
/uboot
/install/template
88 define Package
/uboot-omap4-
$(1)/install
89 $(call Package
/uboot
/install/default
,$(2))
93 $(foreach u
,$(UBOOTS
), \
94 $(eval
$(call Package
/uboot
/install/template
,$(u
),$(u
))) \
97 $(foreach u
,$(UBOOTS
), \
98 $(eval
$(call BuildUBootPackage
,$(u
))) \
99 $(eval
$(call BuildPackage
,uboot-omap4-
$(u
))) \