diff options
author | Robert Yang <liezhi.yang@windriver.com> | 2017-04-06 03:05:56 -0700 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2017-04-08 22:48:05 +0100 |
commit | fd2758ed26e8ed6d76c66af0275c4aafbec758ac (patch) | |
tree | ae38cff1a0e13a73dcb892ca730c2f61385fd82e | |
parent | 055838283349530e6f60f4169d9190aa5b59b190 (diff) | |
download | openembedded-core-fd2758ed26e8ed6d76c66af0275c4aafbec758ac.tar.gz openembedded-core-fd2758ed26e8ed6d76c66af0275c4aafbec758ac.tar.bz2 openembedded-core-fd2758ed26e8ed6d76c66af0275c4aafbec758ac.zip |
kmod: set ac_cv_path_DOLT_BASH to /usr/bin/env bash
The shebang's length is usually 128 as defined in /usr/include/linux/binfmts.h:
#define BINPRM_BUF_SIZE 128
So there would be errors when /path/to/hosttools/bash is longer than 128:
/bin/sh: ./doltcompile: [snip]: bad interpreter: No such file or directory
Set ac_cv_path_DOLT_BASH to "/usr/bin/env bash" to fix the problem.
Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rw-r--r-- | meta/recipes-kernel/kmod/kmod.inc | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/meta/recipes-kernel/kmod/kmod.inc b/meta/recipes-kernel/kmod/kmod.inc index cfa409dbb3..ba80fc57a3 100644 --- a/meta/recipes-kernel/kmod/kmod.inc +++ b/meta/recipes-kernel/kmod/kmod.inc @@ -30,6 +30,8 @@ S = "${WORKDIR}/git" EXTRA_AUTORECONF += "--install --symlink" EXTRA_OECONF +=" --enable-tools --with-zlib" +CACHED_CONFIGUREVARS += "ac_cv_path_DOLT_BASH='/usr/bin/env bash'" + PACKAGECONFIG[debug] = "--enable-debug,--disable-debug" PACKAGECONFIG[logging] = " --enable-logging,--disable-logging" PACKAGECONFIG[manpages] = "--enable-manpages, --disable-manpages, libxslt-native xmlto-native" |