3eba249bf385457ecf057a7e2ee131c6511e90b9
[openwrt/openwrt.git] / package / boot / uboot-imx6 / Makefile
1 #
2 # Copyright (C) 2013-2014 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
10 PKG_VERSION:=2018.03
11 PKG_RELEASE:=1
12
13 PKG_HASH:=7e7477534409d5368eb1371ffde6820f0f79780a1a1f676161c48442cb303dfd
14
15 include $(INCLUDE_DIR)/u-boot.mk
16 include $(INCLUDE_DIR)/package.mk
17
18 define U-Boot/Default
19 BUILD_TARGET:=imx6
20 UBOOT_IMAGE:=u-boot.imx
21 endef
22
23 define U-Boot/mx6cuboxi
24 NAME:=SolidRun Cubox-i boards
25 UBOOT_IMAGE:=SPL u-boot.img
26 UBOOT_MAKE_FLAGS:=SPL u-boot.img
27 BUILD_DEVICES:=cubox-i
28 HIDDEN:=1
29 endef
30
31 define U-Boot/mx6sabresd
32 NAME:=SABRE i.MX6Quad board
33 endef
34
35 define U-Boot/nitrogen6dl
36 NAME:=Nitrogen6x i.MX6Dual-Lite 1GB board
37 endef
38
39 define U-Boot/nitrogen6dl2g
40 NAME:=Nitrogen6x i.MX6Dual-Lite 2GB board
41 endef
42
43 define U-Boot/nitrogen6q
44 NAME:=Nitrogen6x/SABRE Lite (MX6Q/1GB)
45 endef
46
47 define U-Boot/nitrogen6q2g
48 NAME:=Nitrogen6x i.MX6Quad 2GB board
49 endef
50
51 define U-Boot/nitrogen6s
52 NAME:=Nitrogen6x i.MX6Solo 512MB board
53 endef
54
55 define U-Boot/nitrogen6s1g
56 NAME:=Nitrogen6x i.MX6Solo 1GB board
57 endef
58
59 define U-Boot/wandboard
60 NAME:=Wandboard Dual Lite/Quad/Solo
61 BUILD_DEVICES:=wandboard
62 endef
63
64 UBOOT_TARGETS := \
65 mx6cuboxi \
66 mx6sabresd \
67 nitrogen6dl \
68 nitrogen6dl2g \
69 nitrogen6q \
70 nitrogen6q2g \
71 nitrogen6s \
72 nitrogen6s1g \
73 wandboard
74
75 UBOOT_MAKE_FLAGS += u-boot.imx
76
77 define Build/InstallDev
78 $(INSTALL_DIR) $(STAGING_DIR_IMAGE)
79 $(foreach img,$(UBOOT_IMAGE), \
80 $(CP) $(PKG_BUILD_DIR)/$(img) $(STAGING_DIR_IMAGE)/$(BUILD_VARIANT)-$(img); \
81 )
82 endef
83
84 $(eval $(call BuildPackage/U-Boot))