summaryrefslogtreecommitdiffstats
path: root/meta/classes-recipe/kernel-fitimage.bbclass
diff options
context:
space:
mode:
authorJamin Lin <jamin_lin@aspeedtech.com>2023-04-13 18:31:08 +0800
committerRichard Purdie <richard.purdie@linuxfoundation.org>2023-05-04 12:46:14 +0100
commitb6c9cc306af4e4ee401cc5f4ff1a534b067b3b20 (patch)
tree288a3b8a4df6b7753e89de3d7d317b6722e67116 /meta/classes-recipe/kernel-fitimage.bbclass
parentd5d0b3f785146cb41b10b5f30c7051f5b22a8a00 (diff)
downloadpoky-b6c9cc306af4e4ee401cc5f4ff1a534b067b3b20.tar.gz
kernel-fitimage: support 64 bits address
The default value of address-cells is "1", so the generated "its" file only supports 32bits address for kernel FIT image. However, some platforms may want to support 64bits address of UBOOT_LOADADDRESS and UBOOT_ENTRYPOINT. Therefore, adds a variable to support both 64bits and 32bits address cells. By default, the address-cell is "1" which is used for 32bits load address. If users would like to use 64bits load address, users are able to set as following for "0x400000000" 64bits load address. 1. FIT_ADDRESS_CELLS = "2" 2. UBOOT_LOADADDRESS= "0x04 0x00000000" (From OE-Core rev: 8ce15c76c50d5d61524fea585d19989baefb5df2) Signed-off-by: Jamin Lin <jamin_lin@aspeedtech.com> Signed-off-by: Luca Ceresoli <luca.ceresoli@bootlin.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/classes-recipe/kernel-fitimage.bbclass')
-rw-r--r--meta/classes-recipe/kernel-fitimage.bbclass6
1 files changed, 5 insertions, 1 deletions
diff --git a/meta/classes-recipe/kernel-fitimage.bbclass b/meta/classes-recipe/kernel-fitimage.bbclass
index 6684478c33..f1c46a453c 100644
--- a/meta/classes-recipe/kernel-fitimage.bbclass
+++ b/meta/classes-recipe/kernel-fitimage.bbclass
@@ -92,6 +92,10 @@ FIT_SUPPORTED_INITRAMFS_FSTYPES ?= "cpio.lz4 cpio.lzo cpio.lzma cpio.xz cpio.zst
92# Allow user to select the default DTB for FIT image when multiple dtb's exists. 92# Allow user to select the default DTB for FIT image when multiple dtb's exists.
93FIT_CONF_DEFAULT_DTB ?= "" 93FIT_CONF_DEFAULT_DTB ?= ""
94 94
95# length of address in number of <u32> cells
96# ex: 1 32bits address, 2 64bits address
97FIT_ADDRESS_CELLS ?= "1"
98
95# Keys used to sign individually image nodes. 99# Keys used to sign individually image nodes.
96# The keys to sign image nodes must be different from those used to sign 100# The keys to sign image nodes must be different from those used to sign
97# configuration nodes, otherwise the "required" property, from 101# configuration nodes, otherwise the "required" property, from
@@ -110,7 +114,7 @@ fitimage_emit_fit_header() {
110 114
111/ { 115/ {
112 description = "${FIT_DESC}"; 116 description = "${FIT_DESC}";
113 #address-cells = <1>; 117 #address-cells = <${FIT_ADDRESS_CELLS}>;
114EOF 118EOF
115} 119}
116 120