Makefile 1.75 KB
Newer Older
Luka Perkov's avatar
Luka Perkov committed
1
#
Luka Perkov's avatar
Luka Perkov committed
2
# Copyright (C) 2013-2014 OpenWrt.org
Luka Perkov's avatar
Luka Perkov committed
3
4
5
6
7
8
9
#
# This is free software, licensed under the GNU General Public License v2.
# See /LICENSE for more information.
#

include $(TOPDIR)/rules.mk

10
PKG_VERSION:=2020.04
Luka Perkov's avatar
Luka Perkov committed
11
12
PKG_RELEASE:=1

13
PKG_HASH:=fe732aaf037d9cc3c0909bad8362af366ae964bbdac6913a34081ff4ad565372
Luka Perkov's avatar
Luka Perkov committed
14

15
include $(INCLUDE_DIR)/u-boot.mk
Luka Perkov's avatar
Luka Perkov committed
16
17
include $(INCLUDE_DIR)/package.mk

18
19
20
define U-Boot/Default
  BUILD_TARGET:=imx6
  UBOOT_IMAGE:=u-boot.imx
Luka Perkov's avatar
Luka Perkov committed
21
22
endef

23
24
25
26
27
28
define U-Boot/apalis_imx6
  NAME:=Toradex Apalis
  UBOOT_IMAGE:=SPL u-boot.img u-boot-with-spl.imx
  UBOOT_MAKE_FLAGS:=SPL u-boot.img u-boot-with-spl.imx
endef

29
30
31
32
define U-Boot/mx6cuboxi
   NAME:=SolidRun Cubox-i boards
   UBOOT_IMAGE:=SPL u-boot.img
   UBOOT_MAKE_FLAGS:=SPL u-boot.img
33
34
   BUILD_DEVICES:=cubox-i
   HIDDEN:=1
35
36
endef

37
define U-Boot/mx6sabresd
38
  NAME:=SABRE i.MX6Quad board
39
40
endef

41
42
define U-Boot/nitrogen6dl
  NAME:=Nitrogen6x i.MX6Dual-Lite 1GB board
43
44
endef

45
46
define U-Boot/nitrogen6dl2g
  NAME:=Nitrogen6x i.MX6Dual-Lite 2GB board
47
48
endef

49
50
define U-Boot/nitrogen6q
  NAME:=Nitrogen6x/SABRE Lite (MX6Q/1GB)
51
52
endef

53
54
define U-Boot/nitrogen6q2g
  NAME:=Nitrogen6x i.MX6Quad 2GB board
55
56
endef

57
58
define U-Boot/nitrogen6s
  NAME:=Nitrogen6x i.MX6Solo 512MB board
59
60
endef

61
62
define U-Boot/nitrogen6s1g
  NAME:=Nitrogen6x i.MX6Solo 1GB board
63
64
endef

65
66
define U-Boot/wandboard
  NAME:=Wandboard Dual Lite/Quad/Solo
67
  BUILD_DEVICES:=wandboard
68
69
endef

70
UBOOT_TARGETS := \
71
	apalis_imx6 \
72
	mx6cuboxi \
73
	mx6sabresd \
74
	nitrogen6dl \
75
	nitrogen6dl2g \
76
77
78
79
	nitrogen6q \
	nitrogen6q2g \
	nitrogen6s \
	nitrogen6s1g \
80
81
82
	wandboard

UBOOT_MAKE_FLAGS += u-boot.imx
Luka Perkov's avatar
Luka Perkov committed
83

84
85
86
87
88
89
90
define Build/InstallDev
	$(INSTALL_DIR) $(STAGING_DIR_IMAGE)
	$(foreach img,$(UBOOT_IMAGE), \
		$(CP) $(PKG_BUILD_DIR)/$(img) $(STAGING_DIR_IMAGE)/$(BUILD_VARIANT)-$(img); \
	)
endef

91
$(eval $(call BuildPackage/U-Boot))