summaryrefslogtreecommitdiffstats
path: root/meta
diff options
context:
space:
mode:
authorRui Wang <rui.wang@windriver.com>2018-07-16 10:55:08 +0800
committerRichard Purdie <richard.purdie@linuxfoundation.org>2018-07-18 10:18:42 +0100
commit566e2de017d5f826e6e3b4012538f4546b30639c (patch)
tree485582e71dbfe9a276334e035923d747e5a2b13a /meta
parent9d1323af45eb02aab59e32202b66e88fd633dd23 (diff)
downloadpoky-566e2de017d5f826e6e3b4012538f4546b30639c.tar.gz
bash: fix wrong exit status offset
In Linux,8 bits of the return code and 8 bits of the number of the killing signal are mixed into a single value on the exit code, so the exit status offset should be 8. But the autoconf checker can not determine it while cross compiling, and then it is set to the default value 0, which will cause generating the wrong exit code if program exit with an error code. (From OE-Core rev: e2dea46607a24620d6d2c250efc9b2e95bfd5ad8) Signed-off-by: Rui Wang <rui.wang@windriver.com> Signed-off-by: Ross Burton <ross.burton@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta')
-rw-r--r--meta/recipes-extended/bash/bash.inc2
1 files changed, 1 insertions, 1 deletions
diff --git a/meta/recipes-extended/bash/bash.inc b/meta/recipes-extended/bash/bash.inc
index 9c2b065f9f..2e7f261a2e 100644
--- a/meta/recipes-extended/bash/bash.inc
+++ b/meta/recipes-extended/bash/bash.inc
@@ -7,7 +7,7 @@ DEPENDS = "ncurses bison-native virtual/libiconv"
7inherit autotools gettext texinfo update-alternatives ptest 7inherit autotools gettext texinfo update-alternatives ptest
8 8
9EXTRA_AUTORECONF += "--exclude=autoheader --exclude=aclocal" 9EXTRA_AUTORECONF += "--exclude=autoheader --exclude=aclocal"
10EXTRA_OECONF = "--enable-job-control --without-bash-malloc" 10EXTRA_OECONF = "--enable-job-control --without-bash-malloc bash_cv_wexitstatus_offset=8"
11 11
12# If NON_INTERACTIVE_LOGIN_SHELLS is defined, all login shells read the 12# If NON_INTERACTIVE_LOGIN_SHELLS is defined, all login shells read the
13# startup files, even if they are not interactive. 13# startup files, even if they are not interactive.