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 = "8e1c0b246c3f34aad075a2a8c0807ef46288e4d8" PV = "5.4+${SRCPV}" S = "${WORKDIR}/git" PACKAGES += "${PN}-userfs" # Package -dev and -dbg are empty so don't generate them ALLOW_EMPTY:${PN}-dev = "0" ALLOW_EMPTY:${PN}-dbg = "0" 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 }