diff --git a/recipes-bsp/bootloader-config/bootloader-config.bb b/recipes-bsp/bootloader-config/bootloader-config.bb new file mode 100644 index 0000000..d9b706a --- /dev/null +++ b/recipes-bsp/bootloader-config/bootloader-config.bb @@ -0,0 +1,34 @@ +DESCRIPTION = "Bootloader configuration tool" +LICENSE = "Proprietary" +LIC_FILES_CHKSUM = "file://${COREBASE}/meta/files/common-licenses/Proprietary;md5=0557f9d92cf58f2ccdd50f62f8ac0b28" + +RDEPENDS_${PN} += " \ + python3-setuptools \ + " +DEPENDS = "python3-setuptools-git-version-native" + +inherit setuptools3 gitpkgv systemd + +# GITPKGVTAG is undefined when parsing and cannot be used for PV +PKGV = "${GITPKGVTAG}" +PV = "1.0-git${SRCPV}" + +SRC_URI = "git://gitlab.com/netmodule/tools/bootloader-config.git;protocol=ssh;user=git;branch=master" +SRCREV ?= "${AUTOREV}" +S = "${WORKDIR}/git" + +# Likely required in the future +#PACKAGE_ARCH = "${MACHINE_ARCH}" +inherit allarch +#do_configure_prepend() { +# cp ${S}/platforms/${MACHINE}/* ${S}/bootloader_config +#} + +SYSTEMD_SERVICE_${PN} = "bootloader-config.service" + +# do_install is done by setuptools +do_install_append() { + install -d ${D}/${systemd_unitdir}/system/ + install -m 0644 ${S}/systemd/bootloader-config.service ${D}/${systemd_unitdir}/system/ +} +