diff --git a/recipes-extended/linux-examples/linux-examples-stm32mp1.bb b/recipes-extended/linux-examples/linux-examples-stm32mp1.bb new file mode 100644 index 0000000..68ad61c --- /dev/null +++ b/recipes-extended/linux-examples/linux-examples-stm32mp1.bb @@ -0,0 +1,34 @@ +SUMMARY = "ST STM32MP1 projects for Linux examples" +LICENSE = "MIT" +LIC_FILES_CHKSUM = "file://${COREBASE}/meta/COPYING.MIT;md5=3da9cfbcb788c80a0384361b4de20420" + +COMPATIBLE_MACHINE = "(stm32mpcommon)" + +PACKAGE_ARCH = "${MACHINE_ARCH}" + +SRC_URI = "git://github.com/STMicroelectronics/linux-examples;protocol=https;branch=master" +SRCREV = "bcfba47fb4d9c3756a0b94242e42541c8145f1ab" + +PV = "4.19+${SRCPV}" + +S = "${WORKDIR}/git" + +PACKAGES += "${PN}-userfs" + +FILES_${PN}-userfs = "${prefix}/local/Linux-A7-examples" + +do_install() { + # Install scripts and README in userfs: + # /Linux-A7-examples/ + # |-- utils (ie common scripts) + # |-- (ie UART,DCMI,GPIO ...) + # |-- (ie Camera preview) + # |-- .sh script + # |-- README.md + for examples_list in $(ls ${S}); do + if [ -d ${S}/${examples_list} ]; then + install -d ${D}${prefix}/local/Linux-A7-examples/${examples_list}/ + cp -rf ${S}/${examples_list}/ ${D}${prefix}/local/Linux-A7-examples/ + fi + done +}