commit 42012b16029ff91d7a082f74ffd05b6aaf392a0e Author: Malte Bitter Date: Thu Jan 12 13:03:46 2023 +0100 Initial commit diff --git a/conf/layer.conf b/conf/layer.conf new file mode 100644 index 0000000..19d906c --- /dev/null +++ b/conf/layer.conf @@ -0,0 +1,12 @@ +# We have a conf and classes directory, add to BBPATH +BBPATH .= ":${LAYERDIR}" + +# We have recipes-* directories, add to BBFILES +BBFILES += "${LAYERDIR}/recipes-*/*/*.bb \ + ${LAYERDIR}/recipes-*/*/*.bbappend" + +BBFILE_COLLECTIONS += "testapp" +BBFILE_PATTERN_testapp = "^${LAYERDIR}/" +BBFILE_PRIORITY_testapp = "5" +LAYERVERSION_testapp = "1" +LAYERSERIES_COMPAT_testapp = "dunfell" diff --git a/recipes-core/images/em-image-core.bbappend b/recipes-core/images/em-image-core.bbappend new file mode 100644 index 0000000..73488e2 --- /dev/null +++ b/recipes-core/images/em-image-core.bbappend @@ -0,0 +1,3 @@ +IMAGE_INSTALL += " dotnet-core testapp" + +PREFERRED_VERSION_dotnet-core = "7.0.0" diff --git a/recipes-runtime/testapp/testapp.bb b/recipes-runtime/testapp/testapp.bb new file mode 100644 index 0000000..048e1af --- /dev/null +++ b/recipes-runtime/testapp/testapp.bb @@ -0,0 +1,28 @@ +DESCRIPTION = "Testing Bitbake file" +SECTION = "TESTING" +LICENSE = "MIT" +LIC_FILES_CHKSUM = "file://${COMMON_LICENSE_DIR}/MIT;md5=0835ade698e0bcf8506ecda2f7b4f302" +PR = "r0" + +SRCREV = "8e7ae2664f2c6a9bf50a67fca54c306f525098a9" +SRC_URI = "git://git.bit-engineering.com/pMeter/EMOS-TestApp.git;protocol=https" + +S = "${WORKDIR}/git" + +inherit base + +FILES_${PN} += " \ + /TestApp \ + " + +do_compile() { + cd ${WORKDIR}/git + /usr/bin/dotnet publish -c Release -r linux-arm64 --no-self-contained +} + +do_install() { + install -d ${D}/TestApp + for file in ${WORKDIR}/git/TestApp/bin/Release/net7.0/linux-arm64/publish/*; do + install -m 0755 "$file" ${D}/TestApp + done +}