Skip to contentSkip to conversation

arago.conf, images, packagegroups: add systemd initial support

PATCH New Denys Dmytriyenko 1 participant 1 message Apr 30, 2016

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 arago.conf, images, packagegroups: add systemd initial support

From: Denys Dmytriyenko <[email protected]>

---
 meta-arago-distro/conf/distro/arago.conf               | 18 +++++++++++++-----
 meta-arago-distro/conf/distro/include/arago-prefs.inc  |  8 --------
 meta-arago-distro/recipes-core/images/arago-image.inc  |  5 -----
 .../packagegroup-arago-standalone-sdk-target.bb        |  3 +--
 4 files changed, 14 insertions(+), 20 deletions(-)
meta-arago-distro/conf/distro/arago.conf +13 -5
index 409b96a..de6064e 100644
@@ -28,13 +28,21 @@ IMAGE_FSTYPES += "tar.gz.md5 tar.xz.md5"
 # Also build 32bit Pseudo on 64bit machines, fix error when preloading libpseudo.so
 NO32LIBS = "0"
 
-# Set our distro features, don't forget all the standard libc ones
-DISTRO_FEATURES = "alsa argp bluetooth ext2 irda largefile pcmcia usbgadget usbhost wifi xattr nfs zeroconf pci 3g ipv4 ipv6 pulseaudio ${DISTRO_FEATURES_LIBC}"
-DISTRO_FEATURES_BACKFILL_CONSIDERED = "bluez5"
+# Start with default set of distro features
+DISTRO_FEATURES = "${DISTRO_FEATURES_DEFAULT} ${DISTRO_FEATURES_LIBC}"
 
-# Set additional distro features
-DISTRO_FEATURES += "pam wayland opengl"
+# Remove some unwanted features
+DISTRO_FEATURES_remove = "x11"
+DISTRO_FEATURES_BACKFILL_CONSIDERED = "bluez5 sysvinit"
 
+# Add additional distro features
+DISTRO_FEATURES_append = " pam wayland opengl systemd"
+
+# Set global runtime providers for major components
+VIRTUAL-RUNTIME_dev_manager = "systemd"
+VIRTUAL-RUNTIME_init_manager = "systemd"
+VIRTUAL-RUNTIME_initscripts = "systemd-compat-units"
+VIRTUAL-RUNTIME_login_manager = "busybox shadow"
 
 # Set preferred Qt version
 QT_PROVIDER ?= "qt5"
meta-arago-distro/conf/distro/include/arago-prefs.inc +0 -8
index b64d0d3..14a7c8a 100644
@@ -45,10 +45,6 @@ PREFERRED_PROVIDER_virtual/bootloader = "u-boot-ti-staging"
 PREFERRED_PROVIDER_u-boot = "u-boot-ti-staging"
 PREFERRED_VERSION_u-boot-ti-staging = "2016.05%"
 
-# Pin down udev version from oe-core, as meta-oe pulls in newer systemd-enhanced version
-PREFERRED_VERSION_eudev = "3.1.5"
-PREFERRED_PROVIDER_eudev = "eudev"
-
 PREFERRED_PROVIDER_jpeg = "libjpeg-turbo"
 
 # Setting PREFERRED_VERSIONS due to selecting a specific version of a library or
@@ -70,7 +66,3 @@ PREFERRED_PROVIDER_wpa-supplicant = "wpa-supplicant"
 PREFERRED_PROVIDER_wpa-supplicant_ti33x = "wpa-supplicant-wl18xx"
 PREFERRED_PROVIDER_wpa-supplicant_ti43x = "wpa-supplicant-wl18xx"
 PREFERRED_PROVIDER_wpa-supplicant_omap-a15 = "wpa-supplicant-wl18xx"
-
-def filter_out(f, str, d):
-    from re import match
-    return " ".join(filter(lambda x: not match(f, x, 0), str.split()))
meta-arago-distro/recipes-core/images/arago-image.inc +0 -5
index c14a5ee..7fb5726 100644
@@ -8,11 +8,6 @@ IMAGE_FEATURES += "package-management splash"
 # 4KB per 1 inode should be enough
 EXTRA_IMAGECMD_ext2.gz += "-i 4096"
 
-VIRTUAL-RUNTIME_dev_manager = "udev"
-VIRTUAL-RUNTIME_init_manager = "sysvinit"
-VIRTUAL-RUNTIME_initscripts = "initscripts"
-VIRTUAL-RUNTIME_login_manager = "tinylogin shadow"
-
 ARAGO_IMAGE_EXTRA_INSTALL ?= ""
 
 IMAGE_INSTALL += " \
meta-arago-extras/recipes-core/packagegroups/packagegroup-arago-standalone-sdk-target.bb +1 -2
index e9a0e0b..e2f4f50 100644
@@ -1,5 +1,5 @@
 DESCRIPTION = "Target packages for the standalone SDK"
-PR = "r11"
+PR = "r12"
 LICENSE = "MIT"
 
 PACKAGE_ARCH = "${MACHINE_ARCH}"
@@ -31,7 +31,6 @@ RDEPENDS_${PN} = "\
     zlib-dev \
     ncurses-dev \
     opkg-dev \
-    sysvinit-dev \
     util-linux-dev \
     ${@base_conditional('TCMODE', 'external-linaro', 'libgomp-dev', '', d)} \
     "
Signature · 1 line
2.2.0