From e18b79dd7d37fe04db43f72f87b6aa0414773c9d Mon Sep 17 00:00:00 2001 From: Adrian Dudau Date: Fri, 12 Feb 2016 13:43:44 +0100 Subject: linx-mod: update kernel config file location The location of the kernel .config file changed, so update it. Also, in the event of a CONFIG_MODULES=n config the variable is assigned an empty command output, which causes bitbake errors. So rewrite to avoid that. Signed-off-by: Adrian Dudau Signed-off-by: Martin Borg --- recipes-enea/linx/linx-mod_2.6.6.bb | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/recipes-enea/linx/linx-mod_2.6.6.bb b/recipes-enea/linx/linx-mod_2.6.6.bb index 18adef9..837fc3a 100644 --- a/recipes-enea/linx/linx-mod_2.6.6.bb +++ b/recipes-enea/linx/linx-mod_2.6.6.bb @@ -23,9 +23,7 @@ inherit module module_do_compile_prepend () { - HAS_LOADABLE_MODULES=$(cat ${STAGING_KERNEL_DIR}/.config | grep "CONFIG_MODULES=y") - - if [[ ${#HAS_LOADABLE_MODULES} -eq 0 ]] ; then + if [ -z $(cat ${STAGING_KERNEL_BUILDDIR}/.config | grep "CONFIG_MODULES=y") ] ; then echo "The specified Linux kernel has no support for pluggable modules (CONFIG_MODULES=y). Enable it before baking this." exit 1 fi -- cgit v1.2.3-54-g00ecf