From 2a7348129a42f21095fcd62e47a035f78d254130 Mon Sep 17 00:00:00 2001 From: Adrian Dudau Date: Thu, 12 Dec 2013 17:36:38 +0100 Subject: initial commit of Enea Linux 3.1 Migrated from the internal git server on the dora-enea branch Signed-off-by: Adrian Dudau --- recipes-kernel/linux/kernel-configure.inc | 32 +++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 recipes-kernel/linux/kernel-configure.inc (limited to 'recipes-kernel/linux/kernel-configure.inc') diff --git a/recipes-kernel/linux/kernel-configure.inc b/recipes-kernel/linux/kernel-configure.inc new file mode 100644 index 0000000..1e4c8a8 --- /dev/null +++ b/recipes-kernel/linux/kernel-configure.inc @@ -0,0 +1,32 @@ + +SRC_URI += "file://cfg \ + file://merge_config.sh " + +configure_kernel() { + # Add debug flavour config elements from fragments + # Listed in increasing priority order if conflicts are detected. + # + + # + #combine features cfgs with defconfig + # + addon_features="" + if [ -n "${2}" ]; then + for feature in ${2}; do + addon_features="${addon_features} ${WORKDIR}/${feature}.cfg" + done + fi + + O=${B} ${WORKDIR}/merge_config.sh -m ${1} ${addon_features} + + mv -f ${B}/.config ${B}/.mconfig + + # + #in linux kernel 2.6.33, kconfig does not support alldefconfig yet. + # + if [ "x${PV}" = "x2.6.33" ]; then + oe_runmake KCONFIG_ALLCONFIG=${B}/.mconfig O=${B} allnoconfig + else + oe_runmake KCONFIG_ALLCONFIG=${B}/.mconfig O=${B} alldefconfig + fi +} -- cgit v1.2.3-54-g00ecf