summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPaul Eggleton <paul.eggleton@linux.intel.com>2015-12-02 11:43:37 +1300
committerPaul Eggleton <paul.eggleton@linux.intel.com>2016-05-09 16:18:56 +1200
commit992d6a28565d33b924df7e500eaff1de952ef926 (patch)
treef779cd1867c23cb6c7720a29da4a12f63b1b34c3
parent325e4f058e886c69ab0da5ca7f226bf3ffb5784c (diff)
downloadopenembedded-core-contrib-992d6a28565d33b924df7e500eaff1de952ef926.tar.gz
openembedded-core-contrib-992d6a28565d33b924df7e500eaff1de952ef926.tar.bz2
openembedded-core-contrib-992d6a28565d33b924df7e500eaff1de952ef926.zip
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 <paul.eggleton@linux.intel.com>
-rw-r--r--meta/recipes-core/systemd/systemd_229.bb19
1 files changed, 18 insertions, 1 deletions
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"