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
14 PKG_HASH
:=fe732aaf037d9cc3c0909bad8362af366ae964bbdac6913a34081ff4ad565372
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_overo
38 define U-Boot
/omap3_beagle
40 BUILD_DEVICES
:=ti_omap3-beagle
43 UBOOT_TARGETS
:=omap4_panda am335x_evm omap3_overo omap3_beagle
45 define Build
/InstallDev
46 $(foreach device
,$(BUILD_DEVICES
), \
47 $(INSTALL_DIR
) $(STAGING_DIR_IMAGE
)/$(device
)
49 $(foreach device
,$(BUILD_DEVICES
), \
50 $(CP
) $(patsubst %,$(PKG_BUILD_DIR
)/%,$(UBOOT_IMAGE
)) $(STAGING_DIR_IMAGE
)/$(device
)/
52 $(foreach device
,$(BUILD_DEVICES
), \
53 mkimage
-C none
-A arm
-T script
-d .
/files
/boot.scr.txt \
54 $(STAGING_DIR_IMAGE
)/$(device
)/boot.scr
58 $(eval
$(call BuildPackage
/U-Boot
))