From 9833d9d1d3049eb21cb1c5b21e3d74acc8e42a9d Mon Sep 17 00:00:00 2001 From: Yannick Gicquel Date: Thu, 19 Nov 2015 16:56:44 +0100 Subject: kernel: defconfig updates enable some kernel features: EXT4_FS, FANOTIFY: alignment on agl-spec section 7.4.1., POSIX_MQUEUE: standard efficient Posix ipc mechanism, TUN: useful for a VPN link establishment on V2I use-case, when distro is built with debug-tweaks: LOOP: for LTP testcase better coverage, Signed-off-by: Yannick Gicquel --- meta-rcar-gen2/recipes-kernel/linux/linux.inc | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'meta-rcar-gen2/recipes-kernel') diff --git a/meta-rcar-gen2/recipes-kernel/linux/linux.inc b/meta-rcar-gen2/recipes-kernel/linux/linux.inc index b4b8598..fbeb443 100644 --- a/meta-rcar-gen2/recipes-kernel/linux/linux.inc +++ b/meta-rcar-gen2/recipes-kernel/linux/linux.inc @@ -15,6 +15,9 @@ UDEV_GE_141 ?= "1" # Enable cgroups support for systemd KERNEL_ENABLE_CGROUPS ?= "1" +# combine oe-core way with angstrom DISTRO_TYPE +DISTRO_TYPE ?= "${@base_contains("IMAGE_FEATURES", "debug-tweaks", "debug", "release",d)}" + # Set the verbosity of kernel messages during runtime # You can define CMDLINE_DEBUG in your local.conf or distro.conf to override this behaviour CMDLINE_DEBUG ?= '${@base_conditional("DISTRO_TYPE", "release", "quiet", "debug", d)}' @@ -139,6 +142,17 @@ do_configure_prepend() { kernel_configure_variable IPV6 y kernel_configure_variable SCHEDSTATS y + # AGL spec. mentioned following + kernel_configure_variable EXT4_FS y + kernel_configure_variable FANOTIFY y + kernel_configure_variable POSIX_MQUEUE y + kernel_configure_variable TUN y + + # only when distro is built for debug + if [ "${DISTRO_TYPE}" = "debug" ]; then + kernel_configure_variable BLK_DEV_LOOP y + fi + # Keep this the last line # Remove all modified configs and add the rest to .config sed -e "${CONF_SED_SCRIPT}" < '${WORKDIR}/defconfig' >> '${S}/.config' -- cgit 1.2.3-korg