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
:=8d6d6070739522dd236cba7055b8736bfe92b4fac0ea18ad809829ca79667014
16 include $(INCLUDE_DIR
)/u-boot.mk
17 include $(INCLUDE_DIR
)/package.mk
21 UBOOT_IMAGE
:=u-boot.img MLO
25 define U-Boot
/omap4_panda
27 BUILD_DEVICES
:=ti_omap4-panda
30 define U-Boot
/am335x_evm
32 BUILD_DEVICES
:=ti_am335x-evm ti_am335x-bone-black
35 define U-Boot
/omap3_overo
39 define U-Boot
/omap3_beagle
41 BUILD_DEVICES
:=ti_omap3-beagle
44 UBOOT_TARGETS
:=omap4_panda am335x_evm omap3_overo omap3_beagle
46 define Build
/InstallDev
47 $(foreach device
,$(BUILD_DEVICES
), \
48 $(INSTALL_DIR
) $(STAGING_DIR_IMAGE
)/$(device
)
50 $(foreach device
,$(BUILD_DEVICES
), \
51 $(CP
) $(patsubst %,$(PKG_BUILD_DIR
)/%,$(UBOOT_IMAGE
)) $(STAGING_DIR_IMAGE
)/$(device
)/
53 $(foreach device
,$(BUILD_DEVICES
), \
54 $(CP
) .
/files
/uEnv-
$(UENV
).txt
$(STAGING_DIR_IMAGE
)/$(device
)/uEnv.txt
58 $(eval
$(call BuildPackage
/U-Boot
))