d11ced43519a49f3c3f9162934f740f10c9c7dfa
[openwrt/openwrt.git] / package / boot / uboot-omap / Makefile
1 #
2 # Copyright (C) 2012-2013 OpenWrt.org
3 #
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
6 #
7
8 include $(TOPDIR)/rules.mk
9 include $(INCLUDE_DIR)/kernel.mk
10
11 PKG_VERSION:=2017.01
12 PKG_RELEASE:=1
13
14 PKG_HASH:=6c425175f93a4bcf2ec9faf5658ef279633dbd7856a293d95bd1ff516528ecf2
15
16 include $(INCLUDE_DIR)/u-boot.mk
17 include $(INCLUDE_DIR)/package.mk
18
19 define U-Boot/Default
20 BUILD_TARGET:=omap
21 UBOOT_IMAGE:=u-boot.img MLO
22 UENV:=default
23 endef
24
25 define U-Boot/omap4_panda
26 NAME:=Pandaboard
27 BUILD_DEVICES:=omap4-panda
28 endef
29
30 define U-Boot/am335x_evm
31 NAME:=AM335x EVM
32 BUILD_DEVICES:=am335x-evm
33 endef
34
35 define U-Boot/omap3_overo
36 NAME:=Gumstix Overo
37 endef
38
39 define U-Boot/omap3_beagle
40 NAME:=BeagleBoard
41 BUILD_DEVICES:=omap3-beagle
42 endef
43
44 UBOOT_TARGETS:=omap4_panda am335x_evm omap3_overo omap3_beagle
45
46 define Build/InstallDev
47 $(INSTALL_DIR) $(STAGING_DIR_IMAGE)/$(BUILD_DEVICES)
48 $(CP) $(patsubst %,$(PKG_BUILD_DIR)/%,$(UBOOT_IMAGE)) $(STAGING_DIR_IMAGE)/$(BUILD_DEVICES)/
49 $(CP) ./files/uEnv-$(UENV).txt $(STAGING_DIR_IMAGE)/$(BUILD_DEVICES)/uEnv.txt
50 endef
51
52 $(eval $(call BuildPackage/U-Boot))