From 7c00d7f45628abefcbb7027180a9d586e191d839 Mon Sep 17 00:00:00 2001 From: Laurent Pinchart Date: Mon, 14 Dec 2020 14:47:51 +0200 Subject: 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 --- images/FIT.sh | 6 ++++-- 1 file 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 <> $kernel_its - conf-$dst { + ${fit_conf_prefix}${dst} { description = "Boot Linux kernel with $dst blob"; kernel = "kernel"; fdt = "fdt-$dst"; -- cgit v1.2.3