Discussion:
[meta-arago] [rocko/master][PATCH 1/3] packagegroup: sysvinit: force sysvinit over systemd
Jacob Stiffler
2018-12-05 14:21:42 UTC
Permalink
* Use packagegroup-core-boot, but force sysvinit by setting the
appropriate VIRTUAL_RUNTIME.

Signed-off-by: Jacob Stiffler <j-***@ti.com>
---
.../packagegroups/packagegroup-arago-sysvinit-boot.bb | 11 +++++++++++
1 file changed, 11 insertions(+)
create mode 100644 meta-arago-distro/recipes-core/packagegroups/packagegroup-arago-sysvinit-boot.bb

diff --git a/meta-arago-distro/recipes-core/packagegroups/packagegroup-arago-sysvinit-boot.bb b/meta-arago-distro/recipes-core/packagegroups/packagegroup-arago-sysvinit-boot.bb
new file mode 100644
index 0000000..2eb2d77
--- /dev/null
+++ b/meta-arago-distro/recipes-core/packagegroups/packagegroup-arago-sysvinit-boot.bb
@@ -0,0 +1,11 @@
+require recipes-core/packagegroups/packagegroup-core-boot.bb
+
+PR = "r0"
+
+# Cannot use eudev:
+# "eudev was skipped: 'systemd' in DISTRO_FEATURES"
+#VIRTUAL-RUNTIME_dev_manager = "eudev"
+VIRTUAL-RUNTIME_dev_manager = ""
+VIRTUAL-RUNTIME_init_manager = "sysvinit"
+VIRTUAL-RUNTIME_initscripts = "initscripts"
+VIRTUAL-RUNTIME_initramfs = "sysvinit-initramfs"
--
2.7.4
Jacob Stiffler
2018-12-05 14:21:43 UTC
Permalink
Signed-off-by: Jacob Stiffler <j-***@ti.com>
---
.../recipes-core/images/arago-tiny-image.bb | 43 ++++++++++++++++++++++
1 file changed, 43 insertions(+)
create mode 100644 meta-arago-distro/recipes-core/images/arago-tiny-image.bb

diff --git a/meta-arago-distro/recipes-core/images/arago-tiny-image.bb b/meta-arago-distro/recipes-core/images/arago-tiny-image.bb
new file mode 100644
index 0000000..56e9429
--- /dev/null
+++ b/meta-arago-distro/recipes-core/images/arago-tiny-image.bb
@@ -0,0 +1,43 @@
+
+# Common pieces for Arago images
+
+LICENSE = "MIT"
+
+COMPATIBLE_MACHINE = "ti-soc"
+
+IMAGE_FEATURES += "package-management splash"
+
+# 4KB per 1 inode should be enough
+EXTRA_IMAGECMD_ext2.gz += "-i 4096"
+
+# Install a small set of utils which can be used for diagnostics
+ARAGO_TINY_IMAGE_EXTRA_INSTALL ?= "parted util-linux e2fsprogs dosfstools devmem2"
+
+IMAGE_INSTALL += " \
+ packagegroup-arago-sysvinit-boot \
+ ${ARAGO_TINY_IMAGE_EXTRA_INSTALL} \
+"
+
+export IMAGE_BASENAME = "arago-tiny-image"
+
+IMAGE_LINGUAS = ""
+
+make_bootfiles_symlinks_relative() {
+ for f in "${IMAGE_ROOTFS}/boot"/*
+ do
+ [ -L "$f" ] || continue
+
+ l=$(readlink "$f")
+ if [ "${l:0:6}" == "/boot/" ]
+ then
+ ln -sf "${l##/boot/}" "$f"
+ elif ["${l:0:1}" == "/" ]
+ then
+ ln -sf "..$l" "$f"
+ fi
+ done
+}
+
+ROOTFS_POSTPROCESS_COMMAND += "make_bootfiles_symlinks_relative;"
+
+inherit core-image
--
2.7.4
Jacob Stiffler
2018-12-05 14:21:44 UTC
Permalink
Signed-off-by: Jacob Stiffler <j-***@ti.com>
---
meta-arago-distro/recipes-core/images/arago-core-tisdk-image.inc | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/meta-arago-distro/recipes-core/images/arago-core-tisdk-image.inc b/meta-arago-distro/recipes-core/images/arago-core-tisdk-image.inc
index dddec2c..76102a1 100644
--- a/meta-arago-distro/recipes-core/images/arago-core-tisdk-image.inc
+++ b/meta-arago-distro/recipes-core/images/arago-core-tisdk-image.inc
@@ -31,14 +31,14 @@ DTB_FILTER_omapl138 = "da850"
DTB_FILTER_am65xx-evm = "am65"

# List of target side images to build for the SDK
-TARGET_IMAGES = "arago-base-tisdk-image tisdk-rootfs-image"
+TARGET_IMAGES = "arago-base-tisdk-image tisdk-rootfs-image arago-tiny-image"

# dra71 lcard requires an initramfs with modules for NFS boot
TARGET_IMAGES_append_dra7xx-evm = " netboot-initrd"

# Some devices do not support display and use a server image instead
-TARGET_IMAGES_keystone = "arago-base-tisdk-image tisdk-server-rootfs-image tisdk-server-extra-rootfs-image"
-TARGET_IMAGES_omapl138 = "arago-base-tisdk-image tisdk-server-rootfs-image tisdk-server-extra-rootfs-image"
+TARGET_IMAGES_keystone = "arago-base-tisdk-image tisdk-server-rootfs-image tisdk-server-extra-rootfs-image arago-tiny-image"
+TARGET_IMAGES_omapl138 = "arago-base-tisdk-image tisdk-server-rootfs-image tisdk-server-extra-rootfs-image arago-tiny-image"

TISDK_TOOLCHAIN = "meta-toolchain-arago-tisdk"
TOOLCHAIN_SUFFIX = "-tisdk"
--
2.7.4
Loading...