uboot-imx: pico-pi-imx7d: fix wrong make flags overriding
[openwrt/staging/jow.git] / package / boot / uboot-imx / 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:=2022.01
11 PKG_RELEASE:=$(AUTORELEASE)
12
13 PKG_HASH:=81b4543227db228c03f8a1bf5ddbc813b0bb8f6555ce46064ef721a6fc680413
14
15 include $(INCLUDE_DIR)/u-boot.mk
16 include $(INCLUDE_DIR)/package.mk
17
18 define U-Boot/Default
19 BUILD_TARGET:=imx
20 UBOOT_IMAGE:=u-boot.imx
21 endef
22
23 define U-Boot/apalis_imx6
24 NAME:=Toradex Apalis
25 UBOOT_IMAGE:=SPL u-boot.img u-boot-with-spl.imx
26 UBOOT_MAKE_FLAGS+=SPL u-boot.img u-boot-with-spl.imx
27 BUILD_SUBTARGET:=cortexa9
28 BUILD_DEVICES:=toradex_apalis
29 endef
30
31 define U-Boot/mx6cuboxi
32 NAME:=SolidRun Cubox-i boards
33 UBOOT_IMAGE:=SPL u-boot-dtb.img
34 UBOOT_MAKE_FLAGS+=SPL u-boot-dtb.img
35 BUILD_SUBTARGET:=cortexa9
36 BUILD_DEVICES:=solidrun_cubox-i
37 endef
38
39 define U-Boot/pico-pi-imx7d
40 NAME:=TechNexion PICO-PI-IMX7D
41 UBOOT_IMAGE:=SPL u-boot-dtb.img
42 UBOOT_MAKE_FLAGS+=SPL u-boot-dtb.img
43 BUILD_SUBTARGET:=cortexa7
44 BUILD_DEVICES:=technexion_imx7d-pico-pi
45 endef
46
47 define U-Boot/wandboard
48 NAME:=Wandboard Dual Lite/Quad/Solo
49 BUILD_SUBTARGET:=cortexa9
50 BUILD_DEVICES:=wandboard_dual
51 endef
52
53 UBOOT_TARGETS := \
54 apalis_imx6 \
55 mx6cuboxi \
56 pico-pi-imx7d \
57 wandboard
58
59 UBOOT_MAKE_FLAGS += u-boot.imx
60
61 define Build/InstallDev
62 $(INSTALL_DIR) $(STAGING_DIR_IMAGE)
63 $(foreach img,$(UBOOT_IMAGE), \
64 $(CP) $(PKG_BUILD_DIR)/$(img) $(STAGING_DIR_IMAGE)/$(BUILD_VARIANT)-$(img); \
65 )
66 endef
67
68 $(eval $(call BuildPackage/U-Boot))