From 992d6a28565d33b924df7e500eaff1de952ef926 Mon Sep 17 00:00:00 2001 From: Paul Eggleton Date: Wed, 2 Dec 2015 11:43:37 +1300 Subject: systemd: check for required kernel config options Use the list in the systemd 225 README to set required Linux kernel config options. Fixes [YOCTO #5574]. Signed-off-by: Paul Eggleton --- meta/recipes-core/systemd/systemd_229.bb | 19 ++++++++++++++++++- 1 file changed, 18 insertions(+), 1 deletion(-) diff --git a/meta/recipes-core/systemd/systemd_229.bb b/meta/recipes-core/systemd/systemd_229.bb index c23c749e2a..d64b3cd6d2 100644 --- a/meta/recipes-core/systemd/systemd_229.bb +++ b/meta/recipes-core/systemd/systemd_229.bb @@ -22,7 +22,7 @@ DEPENDS = "kmod docbook-sgml-dtd-4.1-native intltool-native gperf-native acl rea SECTION = "base/shell" -inherit useradd pkgconfig autotools perlnative update-rc.d update-alternatives qemu systemd ptest gettext bash-completion +inherit useradd pkgconfig autotools perlnative update-rc.d update-alternatives qemu systemd ptest gettext bash-completion kernel-check SRCREV = "714c62b46379abb7558c544665522aca91691e10" @@ -192,6 +192,23 @@ CFLAGS .= "${@bb.utils.contains('PACKAGECONFIG', 'valgrind', ' -DVALGRIND=1', '' # disable problematic GCC 5.2 optimizations [YOCTO #8291] FULL_OPTIMIZATION_append_arm = " -fno-schedule-insns -fno-schedule-insns2" +# All the required options from the systemd README +REQUIRED_KERNEL_OPTIONS = "\ + CONFIG_DEVTMPFS \ + CONFIG_CGROUPS \ + CONFIG_INOTIFY_USER \ + CONFIG_SIGNALFD \ + CONFIG_TIMERFD \ + CONFIG_EPOLL \ + CONFIG_NET \ + CONFIG_SYSFS \ + CONFIG_PROC_FS \ + CONFIG_FHANDLE \ + CONFIG_SYSFS_DEPRECATED=n \ + CONFIG_UEVENT_HELPER_PATH='' \ + CONFIG_FW_LOADER_USER_HELPER=n \ + " + do_configure_prepend() { export NM="${HOST_PREFIX}gcc-nm" export AR="${HOST_PREFIX}gcc-ar" -- cgit 1.2.3-korg