layerscape: add LX2160ARDB (Rev2.0 silicon) board support
[openwrt/openwrt.git] / package / boot / uboot-layerscape / Makefile
1 #
2 # Copyright (C) 2016 Jiang Yutang <jiangyutang1978@gmail.com>
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_NAME:=uboot-layerscape
11 PKG_VERSION:=LSDK-20.04-update-290520
12 PKG_RELEASE:=$(AUTORELEASE)
13
14 PKG_SOURCE_PROTO:=git
15 PKG_SOURCE_URL:=https://source.codeaurora.org/external/qoriq/qoriq-components/u-boot
16 PKG_SOURCE_VERSION:=1e55b2f9e7f56b76569089b9e950f49c1579580e
17 PKG_MIRROR_HASH:=46aace27e1367f40b424a64215d524a99c3bd62f49057550039e72d5a1ab7edb
18
19 include $(INCLUDE_DIR)/u-boot.mk
20 include $(INCLUDE_DIR)/package.mk
21
22 define U-Boot/Default
23 BUILD_TARGET:=layerscape
24 BUILD_SUBTARGET:=armv8_64b
25 BUILD_DEVICES:=$(1)
26 UBOOT_IMAGE:=u-boot-dtb.bin
27 ENV_SIZE:=0x2000
28 endef
29
30 define U-Boot/fsl_ls1012a-frdm
31 NAME:=NXP LS1012AFRDM
32 UBOOT_CONFIG:=ls1012afrdm_tfa
33 ENV_SIZE:=0x40000
34 endef
35
36 define U-Boot/fsl_ls1012a-rdb
37 NAME:=NXP LS1012ARDB
38 UBOOT_CONFIG:=ls1012ardb_tfa
39 ENV_SIZE:=0x40000
40 endef
41
42 define U-Boot/fsl_ls1012a-frwy-sdboot
43 NAME:=NXP LS1012AFRWY
44 UBOOT_CONFIG:=ls1012afrwy_tfa
45 ENV_SIZE:=0x10000
46 endef
47
48 define U-Boot/fsl_ls1043a-rdb
49 NAME:=NXP LS1043ARDB
50 UBOOT_CONFIG:=ls1043ardb_tfa
51 endef
52
53 define U-Boot/fsl_ls1043a-rdb-sdboot
54 NAME:=NXP LS1043ARDB SD Card Boot
55 UBOOT_CONFIG:=ls1043ardb_tfa
56 endef
57
58 define U-Boot/fsl_ls1046a-frwy
59 NAME:=NXP LS1046AFRWY
60 UBOOT_CONFIG:=ls1046afrwy_tfa
61 endef
62
63 define U-Boot/fsl_ls1046a-frwy-sdboot
64 NAME:=NXP LS1046AFRWY SD Card Boot
65 UBOOT_CONFIG:=ls1046afrwy_tfa
66 endef
67
68 define U-Boot/fsl_ls1046a-rdb
69 NAME:=NXP LS1046ARDB
70 UBOOT_CONFIG:=ls1046ardb_tfa
71 endef
72
73 define U-Boot/fsl_ls1046a-rdb-sdboot
74 NAME:=NXP LS1046ARDB SD Card Boot
75 UBOOT_CONFIG:=ls1046ardb_tfa
76 endef
77
78 define U-Boot/fsl_ls1088a-rdb
79 NAME:=NXP LS1088ARDB
80 UBOOT_CONFIG:=ls1088ardb_tfa
81 endef
82
83 define U-Boot/fsl_ls1088a-rdb-sdboot
84 NAME:=NXP LS1088ARDB SD Card Boot
85 UBOOT_CONFIG:=ls1088ardb_tfa
86 endef
87
88 define U-Boot/fsl_ls2088a-rdb
89 NAME:=NXP LS2088ARDB
90 UBOOT_CONFIG:=ls2088ardb_tfa
91 endef
92
93 define U-Boot/fsl_lx2160a-rdb
94 NAME:=NXP LX2160ARDB
95 UBOOT_CONFIG:=lx2160ardb_tfa
96 endef
97
98 define U-Boot/fsl_lx2160a-rdb-sdboot
99 NAME:=NXP LX2160ARDB SD Card Boot
100 UBOOT_CONFIG:=lx2160ardb_tfa
101 endef
102
103 define U-Boot/fsl_ls1021a-twr
104 NAME:=NXP LS1021ATWR
105 BUILD_SUBTARGET:=armv7
106 UBOOT_CONFIG:=ls1021atwr_nor
107 ENV_SIZE:=0x20000
108 endef
109
110 define U-Boot/fsl_ls1021a-twr-sdboot
111 NAME:=NXP LS1021ATWR SD Card Boot
112 BUILD_SUBTARGET:=armv7
113 UBOOT_CONFIG:=ls1021atwr_sdcard_ifc
114 UBOOT_IMAGE:=u-boot-with-spl-pbl.bin
115 ENV_SIZE:=0x20000
116 endef
117
118 define U-Boot/fsl_ls1021a-iot-sdboot
119 NAME:=NXP LS1021AIOT SD Card Boot
120 BUILD_SUBTARGET:=armv7
121 UBOOT_CONFIG:=ls1021aiot_sdcard
122 UBOOT_IMAGE:=u-boot-with-spl-pbl.bin
123 ENV_SIZE:=0x2000
124 endef
125
126 UBOOT_TARGETS := \
127 fsl_ls1012a-frdm \
128 fsl_ls1012a-rdb \
129 fsl_ls1012a-frwy-sdboot \
130 fsl_ls1043a-rdb \
131 fsl_ls1043a-rdb-sdboot \
132 fsl_ls1046a-frwy \
133 fsl_ls1046a-frwy-sdboot \
134 fsl_ls1046a-rdb \
135 fsl_ls1046a-rdb-sdboot \
136 fsl_ls1088a-rdb \
137 fsl_ls1088a-rdb-sdboot \
138 fsl_ls2088a-rdb \
139 fsl_lx2160a-rdb \
140 fsl_lx2160a-rdb-sdboot \
141 fsl_ls1021a-twr \
142 fsl_ls1021a-twr-sdboot \
143 fsl_ls1021a-iot-sdboot
144
145 define Build/InstallDev
146 $(INSTALL_DIR) $(STAGING_DIR_IMAGE)
147 $(INSTALL_DATA) $(PKG_BUILD_DIR)/$(UBOOT_IMAGE) \
148 $(STAGING_DIR_IMAGE)/$(BUILD_VARIANT)-uboot.bin
149 $(PKG_BUILD_DIR)/tools/mkenvimage -s $(ENV_SIZE) \
150 -o $(STAGING_DIR_IMAGE)/$(BUILD_VARIANT)-uboot-env.bin \
151 files/$(BUILD_VARIANT)-uEnv.txt
152 endef
153
154 define Package/u-boot/install/default
155 endef
156
157 $(eval $(call BuildPackage/U-Boot))