treewide: package: update missed hashes after switch to ZSTD
[openwrt/staging/stintel.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:=lf-6.1.1-1.0.0
12 PKG_RELEASE:=1
13
14 PKG_SOURCE_PROTO:=git
15 PKG_SOURCE_URL:=https://github.com/nxp-qoriq/u-boot
16 PKG_SOURCE_VERSION:=lf-6.1.1-1.0.0
17 PKG_MIRROR_HASH:=6cb3cd569f11f582375eb3af475a2a0d77fe602813337b64883ef01344be7bf6
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_ls1028a-rdb
49 NAME:=NXP LS1028ARDB
50 UBOOT_CONFIG:=ls1028ardb_tfa
51 endef
52
53 define U-Boot/fsl_ls1028a-rdb-sdboot
54 NAME:=NXP LS1028ARDB SD Card Boot
55 UBOOT_CONFIG:=ls1028ardb_tfa
56 endef
57
58 define U-Boot/fsl_ls1043a-rdb
59 NAME:=NXP LS1043ARDB
60 UBOOT_CONFIG:=ls1043ardb_tfa
61 endef
62
63 define U-Boot/fsl_ls1043a-rdb-sdboot
64 NAME:=NXP LS1043ARDB SD Card Boot
65 UBOOT_CONFIG:=ls1043ardb_tfa
66 endef
67
68 define U-Boot/fsl_ls1046a-frwy
69 NAME:=NXP LS1046AFRWY
70 UBOOT_CONFIG:=ls1046afrwy_tfa
71 endef
72
73 define U-Boot/fsl_ls1046a-frwy-sdboot
74 NAME:=NXP LS1046AFRWY SD Card Boot
75 UBOOT_CONFIG:=ls1046afrwy_tfa
76 endef
77
78 define U-Boot/fsl_ls1046a-rdb
79 NAME:=NXP LS1046ARDB
80 UBOOT_CONFIG:=ls1046ardb_tfa
81 endef
82
83 define U-Boot/fsl_ls1046a-rdb-sdboot
84 NAME:=NXP LS1046ARDB SD Card Boot
85 UBOOT_CONFIG:=ls1046ardb_tfa
86 endef
87
88 define U-Boot/fsl_ls1088a-rdb
89 NAME:=NXP LS1088ARDB
90 UBOOT_CONFIG:=ls1088ardb_tfa
91 endef
92
93 define U-Boot/fsl_ls1088a-rdb-sdboot
94 NAME:=NXP LS1088ARDB SD Card Boot
95 UBOOT_CONFIG:=ls1088ardb_tfa
96 endef
97
98 define U-Boot/fsl_ls2088a-rdb
99 NAME:=NXP LS2088ARDB
100 UBOOT_CONFIG:=ls2088ardb_tfa
101 endef
102
103 define U-Boot/fsl_lx2160a-rdb
104 NAME:=NXP LX2160ARDB
105 UBOOT_CONFIG:=lx2160ardb_tfa
106 endef
107
108 define U-Boot/fsl_lx2160a-rdb-sdboot
109 NAME:=NXP LX2160ARDB SD Card Boot
110 UBOOT_CONFIG:=lx2160ardb_tfa
111 endef
112
113 define U-Boot/fsl_ls1021a-twr
114 NAME:=NXP LS1021ATWR
115 BUILD_SUBTARGET:=armv7
116 UBOOT_CONFIG:=ls1021atwr_nor
117 ENV_SIZE:=0x20000
118 endef
119
120 define U-Boot/fsl_ls1021a-twr-sdboot
121 NAME:=NXP LS1021ATWR SD Card Boot
122 BUILD_SUBTARGET:=armv7
123 UBOOT_CONFIG:=ls1021atwr_sdcard_ifc
124 UBOOT_IMAGE:=u-boot-with-spl-pbl.bin
125 ENV_SIZE:=0x20000
126 endef
127
128 define U-Boot/fsl_ls1021a-iot-sdboot
129 NAME:=NXP LS1021AIOT SD Card Boot
130 BUILD_SUBTARGET:=armv7
131 UBOOT_CONFIG:=ls1021aiot_sdcard
132 UBOOT_IMAGE:=u-boot-with-spl-pbl.bin
133 ENV_SIZE:=0x2000
134 endef
135
136 UBOOT_TARGETS := \
137 fsl_ls1012a-frdm \
138 fsl_ls1012a-rdb \
139 fsl_ls1012a-frwy-sdboot \
140 fsl_ls1028a-rdb \
141 fsl_ls1028a-rdb-sdboot \
142 fsl_ls1043a-rdb \
143 fsl_ls1043a-rdb-sdboot \
144 fsl_ls1046a-frwy \
145 fsl_ls1046a-frwy-sdboot \
146 fsl_ls1046a-rdb \
147 fsl_ls1046a-rdb-sdboot \
148 fsl_ls1088a-rdb \
149 fsl_ls1088a-rdb-sdboot \
150 fsl_ls2088a-rdb \
151 fsl_lx2160a-rdb \
152 fsl_lx2160a-rdb-sdboot \
153 fsl_ls1021a-twr \
154 fsl_ls1021a-twr-sdboot \
155 fsl_ls1021a-iot-sdboot
156
157 define Build/InstallDev
158 $(INSTALL_DIR) $(STAGING_DIR_IMAGE)
159 $(INSTALL_DATA) $(PKG_BUILD_DIR)/$(UBOOT_IMAGE) \
160 $(STAGING_DIR_IMAGE)/$(BUILD_VARIANT)-uboot.bin
161 $(PKG_BUILD_DIR)/tools/mkenvimage -s $(ENV_SIZE) \
162 -o $(STAGING_DIR_IMAGE)/$(BUILD_VARIANT)-uboot-env.bin \
163 files/$(BUILD_VARIANT)-uEnv.txt
164 endef
165
166 define Package/u-boot/install/default
167 endef
168
169 $(eval $(call BuildPackage/U-Boot))