diff options
author | Laurent Pinchart <laurent.pinchart@ideasonboard.com> | 2020-12-14 14:47:51 +0200 |
---|---|---|
committer | Laurent Pinchart <laurent.pinchart@ideasonboard.com> | 2020-12-14 14:55:04 +0200 |
commit | 7c00d7f45628abefcbb7027180a9d586e191d839 (patch) | |
tree | af3cd2eacfe6e4b8a749068726ec13ac8f126f9e | |
parent | 3575291b880b5178115ce9377cf2b9b106a2e211 (diff) |
images: FIT: Make configuration name configurable
Not all boot loaders use the same naming scheme for configurations. Make
the configuration name prefix configurable by platforms.
Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
-rw-r--r-- | images/FIT.sh | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/images/FIT.sh b/images/FIT.sh index e297501..861eb08 100644 --- a/images/FIT.sh +++ b/images/FIT.sh @@ -1,5 +1,7 @@ # SPDX-License-Identifier: GPL-2.0+ +fit_conf_prefix=${fit_conf_prefix:-conf-} + make_FIT_image() { local kernel_compression local kernel_its=$output_dir/arch/$arch/boot/kernel_fdt.its @@ -67,14 +69,14 @@ EOF }; configurations { - default = "conf-$config"; + default = "${fit_conf_prefix}${config}"; EOF for dtb in $dtbs ; do local dst=${dtb/*:/} dst=${dst/*\//} cat <<EOF >> $kernel_its - conf-$dst { + ${fit_conf_prefix}${dst} { description = "Boot Linux kernel with $dst blob"; kernel = "kernel"; fdt = "fdt-$dst"; |