uboot-imx6: rename to 'uboot-imx'
[openwrt/staging/nbd.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:=2020.04
11 PKG_RELEASE:=$(AUTORELEASE)
12
13 PKG_HASH:=fe732aaf037d9cc3c0909bad8362af366ae964bbdac6913a34081ff4ad565372
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_DEVICES:=toradex_apalis
28 endef
29
30 define U-Boot/mx6cuboxi
31 NAME:=SolidRun Cubox-i boards
32 UBOOT_IMAGE:=SPL u-boot.img
33 UBOOT_MAKE_FLAGS:=SPL u-boot.img
34 BUILD_DEVICES:=solidrun_cubox-i
35 endef
36
37 define U-Boot/wandboard
38 NAME:=Wandboard Dual Lite/Quad/Solo
39 BUILD_DEVICES:=wandboard_dual
40 endef
41
42 UBOOT_TARGETS := \
43 apalis_imx6 \
44 mx6cuboxi \
45 wandboard
46
47 UBOOT_MAKE_FLAGS += u-boot.imx
48
49 define Build/InstallDev
50 $(INSTALL_DIR) $(STAGING_DIR_IMAGE)
51 $(foreach img,$(UBOOT_IMAGE), \
52 $(CP) $(PKG_BUILD_DIR)/$(img) $(STAGING_DIR_IMAGE)/$(BUILD_VARIANT)-$(img); \
53 )
54 endef
55
56 $(eval $(call BuildPackage/U-Boot))