diff options
author | Laurent Pinchart <laurent.pinchart@ideasonboard.com> | 2021-04-24 03:58:23 +0300 |
---|---|---|
committer | Laurent Pinchart <laurent.pinchart@ideasonboard.com> | 2021-04-24 04:00:29 +0300 |
commit | a5ae32015259200047a1105f05608c80c2e1696c (patch) | |
tree | 09e16748b328d3381e9f5df0aed9afb2b6128b63 | |
parent | 2725722e55b7e745663e848eff40385c970d2fa2 (diff) |
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 <laurent.pinchart@ideasonboard.com>
-rw-r--r-- | images/FIT.sh | 14 |
1 files changed, 13 insertions, 1 deletions
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 <<EOF >> $kernel_its + ${fit_conf_prefix}${dst} { + description = "DT overlay $dst"; + fdt = "fdt-$dst"; + }; +EOF + done + cat <<EOF >> $kernel_its }; }; |