From 68727c8b26bf612f8b0dba401528693b988a7300 Mon Sep 17 00:00:00 2001 From: Alexandre Bard Date: Mon, 30 Mar 2020 13:05:11 +0200 Subject: [PATCH] Add bootloader-config tool This tool is parsing first sector of MMC to find bootloaders, and then reports the data of these bootloaders to /run/bootloader. It also creates the file /dev/bootloaderX for each bootloader, allowing to do a safe and redundant update. BugzID: 62317 --- .../bootloader-config/bootloader-config.bb | 34 +++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 recipes-bsp/bootloader-config/bootloader-config.bb 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/ +} +