Skip to main content
NPal.2
Associate III
December 23, 2021
Solved

Adding custom recipe to meta-st-stm32mp layer.

  • December 23, 2021
  • 2 replies
  • 1302 views

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.

This topic has been closed for replies.
Best answer by Olivier GALLIEN

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

2 replies

Olivier GALLIEN
Olivier GALLIENBest answer
ST Technical Moderator
December 23, 2021

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
NPal.2Author
Associate III
December 27, 2021

Hi @Community member​ : This really helps thanks.