[meta-ti] [RFC: PATCH 2] systemd-image: overlay local copy to enable building ti-hw-bringup-image

Denys Dmytriyenko denys at ti.com
Thu Sep 13 23:47:15 PDT 2012


Overlay systemd-image recipe locally in meta-ti to enable building at least
ti-hw-bringup-image w/o depending on meta-angstrom.

Couple caveats:
1. Local copy sacrifices timestamp-service that is only available in Angstrom
2. It uses generic packagegroup-boot instead of angstrom-packagegroup-boot,
   which results in sacrificing angstrom-version package

With the above minor tweaks it should be possible to build ti-hw-bringup-image
w/o depending on meta-angstrom layer, only requiring meta-oe/meta-systemd...
And for anyone w/o either meta-angstrom/meta-oe/meta-systemd, it will at least
parse and not break on ti-hw-bringup-image.

On the other hand, it is still possible to get the original behavior when
using the configuration with meta-angstrom, since its original copy of
systemd-image will override the copy in meta-ti, due to higher layer priority.

Unfortunately, cloud9* images depend on additional Angstrom-specific pieces...

Signed-off-by: Denys Dmytriyenko <denys at ti.com>
---
 recipes-images/angstrom/systemd-image.bb |   28 ++++++++++++++++++++++++++++
 1 files changed, 28 insertions(+), 0 deletions(-)
 create mode 100644 recipes-images/angstrom/systemd-image.bb

diff --git a/recipes-images/angstrom/systemd-image.bb b/recipes-images/angstrom/systemd-image.bb
new file mode 100644
index 0000000..16da70e
--- /dev/null
+++ b/recipes-images/angstrom/systemd-image.bb
@@ -0,0 +1,28 @@
+#Angstrom-derived image to test systemd
+
+LICENSE = "MIT"
+LIC_FILES_CHKSUM = "file://${COREBASE}/LICENSE;md5=3f40d7994397109285ec7b81fdeb3b58"
+
+IMAGE_PREPROCESS_COMMAND = "rootfs_update_timestamp"
+
+DISTRO_UPDATE_ALTERNATIVES ??= ""
+ROOTFS_PKGMANAGE_PKGS ?= '${@base_conditional("ONLINE_PACKAGE_MANAGEMENT", "none", "", "${ROOTFS_PKGMANAGE} ${DISTRO_UPDATE_ALTERNATIVES}", d)}'
+
+CONMANPKGS ?= "connman connman-plugin-loopback connman-plugin-ethernet connman-plugin-wifi connman-systemd"
+CONMANPKGS_libc-uclibc = ""
+
+IMAGE_INSTALL += " \
+	packagegroup-boot \
+	packagegroup-basic \
+	${CONMANPKGS} \
+	${ROOTFS_PKGMANAGE_PKGS} \
+"
+
+IMAGE_DEV_MANAGER   = "udev"
+IMAGE_INIT_MANAGER  = "systemd"
+IMAGE_INITSCRIPTS   = " "
+IMAGE_LOGIN_MANAGER = "tinylogin shadow"
+
+export IMAGE_BASENAME = "systemd-image"
+
+inherit image
-- 
1.7.8.6




More information about the meta-ti mailing list