From bd111b0bfb02edda36fbcc38c5b0d85b9f6cbc8a Mon Sep 17 00:00:00 2001 From: Dmitry Baryshkov Date: Fri, 10 Nov 2023 13:11:29 +0300 Subject: [PATCH 1/2] 96boards-tools: import 96boards-tools from 96boards repo The only dependency on the meta-96boards is the 96boards-tools package, which we use to resize rootfs on the first boot. Import the recipe here to be able to drop the dependency. Signed-off-by: Dmitry Baryshkov --- .../96boards-tools/96boards-tools_0.12.bb | 33 +++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 recipes-samples/96boards-tools/96boards-tools_0.12.bb diff --git a/recipes-samples/96boards-tools/96boards-tools_0.12.bb b/recipes-samples/96boards-tools/96boards-tools_0.12.bb new file mode 100644 index 0000000..53a2e7e --- /dev/null +++ b/recipes-samples/96boards-tools/96boards-tools_0.12.bb @@ -0,0 +1,33 @@ +SUMMARY = "Useful bits an pieces to make 96Boards more standard across the board" +HOMEPAGE = "https://github.com/96boards/96boards-tools" +SECTION = "devel" + +LICENSE = "GPL-2.0-or-later" +LIC_FILES_CHKSUM = "file://${COREBASE}/meta/files/common-licenses/GPL-2.0-or-later;md5=fed54355545ffd980b814dab4a3b312c" + +SRCREV = "52ad42bb74ba4b3fcece2483f0d496494d60715f" +SRC_URI = "git://github.com/96boards/96boards-tools;branch=master;protocol=https \ + " + +S = "${WORKDIR}/git" + +inherit systemd allarch update-rc.d + +do_install () { + install -d ${D}${sysconfdir}/udev/rules.d + install -m 0755 ${S}/*.rules ${D}${sysconfdir}/udev/rules.d/ + install -d ${D}${sysconfdir}/init.d + install -m 0755 ${S}/resize-disk ${D}${sysconfdir}/init.d/ + + install -d ${D}${systemd_unitdir}/system + install -m 0644 ${S}/resize-helper.service ${D}${systemd_unitdir}/system + + install -d ${D}${sbindir} + install -m 0755 ${S}/resize-helper ${D}${sbindir} +} + +INITSCRIPT_NAME = "resize-disk" +INITSCRIPT_PARAMS = "start 99 5 2 . stop 20 0 1 6 ." + +SYSTEMD_SERVICE:${PN} = "resize-helper.service" +RDEPENDS:${PN} += "e2fsprogs-resize2fs gptfdisk parted util-linux udev" From f1afd04ef3ffa45c11dea5fd2e3592b5a0a5cab2 Mon Sep 17 00:00:00 2001 From: Dmitry Baryshkov Date: Fri, 10 Nov 2023 13:13:02 +0300 Subject: [PATCH 2/2] layer.conf: drop dependency on meta-96boards Signed-off-by: Dmitry Baryshkov --- conf/layer.conf | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/conf/layer.conf b/conf/layer.conf index 0218082..b21fd5f 100644 --- a/conf/layer.conf +++ b/conf/layer.conf @@ -11,4 +11,4 @@ BBFILE_PRIORITY_meta-rpb = "8" LAYERSERIES_COMPAT_meta-rpb = "nanbield" LAYERDEPENDS_meta-rpb = "openembedded-layer meta-python networking-layer \ - filesystems-layer virtualization-layer meta-96boards" + filesystems-layer virtualization-layer"