From a5ae32015259200047a1105f05608c80c2e1696c Mon Sep 17 00:00:00 2001 From: Laurent Pinchart Date: Sat, 24 Apr 2021 03:58:23 +0300 Subject: kbuild: FIT: Add basic overlay support Include DT overlays specified by the platform in the FIT image. Overlay compilation should ideally be handled by kbuild, but as a first step, the overlay files have to be manually copied to the output directory. Signed-off-by: Laurent Pinchart --- images/FIT.sh | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/images/FIT.sh b/images/FIT.sh index 2205b44..4655a65 100644 --- a/images/FIT.sh +++ b/images/FIT.sh @@ -47,7 +47,7 @@ EOF local dtb - for dtb in ${dtbs[@]} ; do + for dtb in ${dtbs[@]} ${dt_overlays[@]} ; do local src=${dtb/:*/} local dst=${dtb/*:/} dst=${dst/*\//} @@ -89,6 +89,18 @@ EOF EOF done + for dtbo in ${dt_overlays[@]} ; do + local dst=${dtbo/*:/} + dst=${dst/*\//} + + cat <> $kernel_its + ${fit_conf_prefix}${dst} { + description = "DT overlay $dst"; + fdt = "fdt-$dst"; + }; +EOF + done + cat <> $kernel_its }; }; -- cgit v1.2.3