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
9 include $(INCLUDE_DIR
)/kernel.mk
12 PKG_RELEASE
:=$(AUTORELEASE
)
14 PKG_HASH
:=312b7eeae44581d1362c3a3f02c28d806647756c82ba8c72241c7cdbe68ba77e
16 include $(INCLUDE_DIR
)/u-boot.mk
17 include $(INCLUDE_DIR
)/package.mk
21 UBOOT_IMAGE
:=u-boot.img MLO
24 define U-Boot
/omap4_panda
26 BUILD_DEVICES
:=ti_omap4-panda
29 define U-Boot
/am335x_evm
31 BUILD_DEVICES
:=ti_am335x-evm ti_am335x-bone-black
34 define U-Boot
/omap3_beagle
36 BUILD_DEVICES
:=ti_omap3-beagle
39 UBOOT_TARGETS
:=omap4_panda am335x_evm omap3_beagle
41 define Build
/InstallDev
42 $(foreach device
,$(BUILD_DEVICES
), \
43 $(INSTALL_DIR
) $(STAGING_DIR_IMAGE
)/$(device
)
45 $(foreach device
,$(BUILD_DEVICES
), \
46 $(CP
) $(patsubst %,$(PKG_BUILD_DIR
)/%,$(UBOOT_IMAGE
)) $(STAGING_DIR_IMAGE
)/$(device
)/
48 $(foreach device
,$(BUILD_DEVICES
), \
49 mkimage
-C none
-A arm
-T script
-d .
/files
/boot.scr.txt \
50 $(STAGING_DIR_IMAGE
)/$(device
)/boot.scr
54 $(eval
$(call BuildPackage
/U-Boot
))