Cargo Bitbake Recipe example

inherit cargo_bin pkgconfig systemd gettext

SUMMARY = "Example service"
DESCRIPTION = "Example service responsible for controlling system level services remotely"
LICENSE = "CLOSED"
LIC_FILES_CHKSUM = ""
SRC_URI = "git://git@example.com/some-project.git;protocol=ssh;branch=develop"
SRCREV = "cb01e18940dbc42270f047bec408403315fd48b3"
S = "${WORKDIR}/git"

DEPENDS += "openssl glib-2.0 dbus lmsensors cpufrequtils networkmanager protobuf protobuf-native parted-native"
RDEPENDS:{PN} += "openssl glib-2.0 dbus lmsensors cpufrequtils networkmanager"
INSANE_SKIP:${PN} += "already-stripped"

do_compile[network] = "1"


SRC_URI:append = " file://example.service"
FILES:${PN} += "${systemd_unitdir}/system/example.service"
SYSTEMD_AUTO_ENABLE = "enable"
SYSTEMD_SERVICE:${PN} = "example.service"

do_install:append () {
  install -d ${D}/${systemd_unitdir}/system
  install -m 0644 ${WORKDIR}/example.service ${D}/${systemd_unitdir}/system
}

BBCLASSEXTEND = "native"

Related Posts

Leave a Reply

Your email address will not be published. Required fields are marked *