summaryrefslogtreecommitdiffstats
path: root/meta-rcar-gen2/recipes-kernel/linux
diff options
context:
space:
mode:
authorYannick Gicquel <yannick.gicquel@iot.bzh>2015-11-19 16:56:44 +0100
committerYannick GICQUEL <yannick.gicquel@iot.bzh>2015-11-20 09:23:17 +0000
commit9833d9d1d3049eb21cb1c5b21e3d74acc8e42a9d (patch)
tree7fc0c0a62fc7089b239a64afad68eb703476f2ae /meta-rcar-gen2/recipes-kernel/linux
parentb5134746d323326a270a22e60112f21043ec6f7f (diff)
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 <yannick.gicquel@iot.bzh>
Diffstat (limited to 'meta-rcar-gen2/recipes-kernel/linux')
-rw-r--r--meta-rcar-gen2/recipes-kernel/linux/linux.inc14
1 files changed, 14 insertions, 0 deletions
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'