38 lines
1020 B
BlitzBasic
38 lines
1020 B
BlitzBasic
DESCRIPTION = "Testing Bitbake file"
|
|
SECTION = "TESTING"
|
|
LICENSE = "MIT"
|
|
LIC_FILES_CHKSUM = "file://${COMMON_LICENSE_DIR}/MIT;md5=0835ade698e0bcf8506ecda2f7b4f302"
|
|
PR = "r0"
|
|
|
|
SRCREV = "685e9f9e1d7e8481b163efe8b3ecbcb70d703324"
|
|
SRC_URI = "git://git.bit-engineering.com/pMeter/EMOS-TestApp.git;protocol=https \
|
|
file://testapp.service"
|
|
|
|
S = "${WORKDIR}/git"
|
|
|
|
inherit base systemd
|
|
|
|
SYSTEMD_AUTO_ENABLE = "enable"
|
|
SYSTEMD_SERVICE_${PN} = "testapp.service"
|
|
|
|
RDEPENDS_${PN} = "lttng-ust zlib icu"
|
|
|
|
FILES_${PN} += " \
|
|
/TestApp \
|
|
${systemd_unitdir}/system/testapp.service \
|
|
"
|
|
|
|
do_compile() {
|
|
cd ${WORKDIR}/git
|
|
/usr/bin/dotnet publish -c Release -r linux-arm64 --self-contained -p PublishTrimmed=true
|
|
}
|
|
|
|
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
|
|
install -d ${D}/${systemd_unitdir}/system
|
|
install -m 0644 ${WORKDIR}/testapp.service ${D}/${systemd_unitdir}/system
|
|
done
|
|
}
|