From 495f5db09da6a1e5b7a16460d9f4bf26fbee2dff Mon Sep 17 00:00:00 2001 From: Anton Gerasimov Date: Tue, 5 Feb 2019 12:39:56 +0100 Subject: Add support for device tree overlays in FIT images Signed-off-by: Anton Gerasimov --- recipes-sota/fit-conf/fit-conf.bb | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 recipes-sota/fit-conf/fit-conf.bb (limited to 'recipes-sota') diff --git a/recipes-sota/fit-conf/fit-conf.bb b/recipes-sota/fit-conf/fit-conf.bb new file mode 100644 index 0000000..c6cecec --- /dev/null +++ b/recipes-sota/fit-conf/fit-conf.bb @@ -0,0 +1,22 @@ +SUMMARY = "FIT image configuration for u-boot to use" +LICENSE = "MIT" +LIC_FILES_CHKSUM = "file://${COREBASE}/meta/COPYING.MIT;md5=3da9cfbcb788c80a0384361b4de20420" + +do_install() { + mkdir -p ${D}${libdir} + echo -n "fit_conf=" >${D}${libdir}/fit_conf + + if [ -n ${SOTA_MAIN_DTB} ]; then + echo -n "#conf@${SOTA_MAIN_DTB}" >> ${D}${libdir}/fit_conf + fi + + for ovrl in ${SOTA_DT_OVERLAYS}; do + echo -n "#conf@overlays_${ovrl}" >> ${D}${libdir}/fit_conf + done + + for conf_frag in ${SOTA_EXTRA_CONF_FRAGS}; do + echo -n "#${conf_frag}" >> ${D}${libdir}/fit_conf + done +} + +FILES_${PN} += "${libdir}/fit_conf" -- cgit v1.2.3-54-g00ecf