2021-12-23 03:47 AM
Hi ,
I am trying to add a custom recipe in the meta-st-stm32mp layer.
Below is my swupdate_1.0.0.bb file :
DESCRIPTION = "Swupdate example"
HOMEPAGE = "wiki.st.com"
LICENSE = "GPLv2"
LIC_FILES_CHKSUM = ""
# No information for SRC_URI yet (only an external source tree was specified)
SRC_URI += " \
file://postupdate.sh
file://swupdate.conf
file://S98update
"
# NOTE: no Makefile found, unable to determine what needs to be done
do_configure[noexec] = "1"
do_compile[noexec] = "1"
do_install() {
# Specify install commands here
install -d ${D}${sysconfdir}/swupdate/
install -d ${D}${sysconfdir}/init.d/
install -m 0755 ${WORKDIR}/postupdate.sh ${D}${sysconfdir}/swupdate/postupdate.sh
install -m 0755 ${WORKDIR}/swupdate.conf ${D}${sysconfdir}/swupdate/swupdate.conf
install -m 0755 ${WORKDIR}/S98update ${D}/${sysconfdir}/init.d/S98update
}
FILES_${PN} += "${sysconfdir}/swupdate/ ${D}${sysconfdir}/init.d/"
Upon giving a bitbake-st-image-weston , I do not see either my recipe getting complied or the results being part of the final rootfs.ext4 partition.
Simply performing : bitbake ../layers/meta-st/meta-st-stm32mp/recipes-swupdate/swupdate_1.0.0.bb results in error :
Nothing provide swupdate.
Any clues what might be wrong here? TIA.
Solved! Go to Solution.
2021-12-23 06:04 AM
Hi @NPal.2 ,
Seems that page here :
is adressing exactly your point.
Hope it help
Olivier
2021-12-23 06:04 AM
Hi @NPal.2 ,
Seems that page here :
is adressing exactly your point.
Hope it help
Olivier
2021-12-27 05:11 AM
Hi @Community member : This really helps thanks.