cancel
Showing results for 
Search instead for 
Did you mean: 

Adding custom recipe to meta-st-stm32mp layer.

NPal.2
Senior

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.

1 ACCEPTED SOLUTION

Accepted Solutions
Olivier GALLIEN
ST Employee

Hi @NPal.2​ ,

Seems that page here :

https://wiki.st.com/stm32mpu/wiki/How_to_integrate_an_external_software_package#Using_the_STM32MPU_Embedded_Software_Distribution_Package

is adressing exactly your point.

Hope it help

Olivier

Olivier GALLIEN
In order to give better visibility on the answered topics, please click on 'Accept as Solution' on the reply which solved your issue or answered your question.

View solution in original post

2 REPLIES 2
Olivier GALLIEN
ST Employee

Hi @NPal.2​ ,

Seems that page here :

https://wiki.st.com/stm32mpu/wiki/How_to_integrate_an_external_software_package#Using_the_STM32MPU_Embedded_Software_Distribution_Package

is adressing exactly your point.

Hope it help

Olivier

Olivier GALLIEN
In order to give better visibility on the answered topics, please click on 'Accept as Solution' on the reply which solved your issue or answered your question.
NPal.2
Senior

Hi @Community member​ : This really helps thanks.