diff options
author | Adrian Dudau <adrian.dudau@enea.com> | 2016-02-12 13:43:44 +0100 |
---|---|---|
committer | Martin Borg <martin.borg@enea.com> | 2016-02-19 14:36:11 +0100 |
commit | e18b79dd7d37fe04db43f72f87b6aa0414773c9d (patch) | |
tree | 76afc99680ce41c56954c597334ad3fd0a95fbbb /recipes-enea | |
parent | b36463c35153f5efe89a1e03004f78d161998a8c (diff) | |
download | meta-nfv-access-common-e18b79dd7d37fe04db43f72f87b6aa0414773c9d.tar.gz |
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 <adrian.dudau@enea.com>
Signed-off-by: Martin Borg <martin.borg@enea.com>
Diffstat (limited to 'recipes-enea')
-rw-r--r-- | recipes-enea/linx/linx-mod_2.6.6.bb | 4 |
1 files changed, 1 insertions, 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 | |||
23 | 23 | ||
24 | module_do_compile_prepend () { | 24 | module_do_compile_prepend () { |
25 | 25 | ||
26 | HAS_LOADABLE_MODULES=$(cat ${STAGING_KERNEL_DIR}/.config | grep "CONFIG_MODULES=y") | 26 | if [ -z $(cat ${STAGING_KERNEL_BUILDDIR}/.config | grep "CONFIG_MODULES=y") ] ; then |
27 | |||
28 | if [[ ${#HAS_LOADABLE_MODULES} -eq 0 ]] ; then | ||
29 | echo "The specified Linux kernel has no support for pluggable modules (CONFIG_MODULES=y). Enable it before baking this." | 27 | echo "The specified Linux kernel has no support for pluggable modules (CONFIG_MODULES=y). Enable it before baking this." |
30 | exit 1 | 28 | exit 1 |
31 | fi | 29 | fi |