summaryrefslogtreecommitdiffstats
path: root/recipes-sota/fit-conf/fit-conf.bb
blob: f24a94aca2d8075f1a3e98999736e1ba89a1ed3f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
SUMMARY = "FIT image configuration for u-boot to use"
LICENSE = "MIT"
LIC_FILES_CHKSUM = "file://${COREBASE}/meta/COPYING.MIT;md5=3da9cfbcb788c80a0384361b4de20420"

PACKAGE_ARCH = "${MACHINE_ARCH}"

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"