summaryrefslogtreecommitdiffstats
path: root/meta/classes/autotools.bbclass
diff options
context:
space:
mode:
authorRobert Yang <liezhi.yang@windriver.com>2015-10-05 23:42:24 -0700
committerRichard Purdie <richard.purdie@linuxfoundation.org>2016-01-18 11:47:03 +0000
commit44d283a13db50b84929c82408f9c6883c35af949 (patch)
tree694df7a5e67d5925df4334ea9be9ecd65da3424c /meta/classes/autotools.bbclass
parentb2f1de35b4619f898b2b7116ee66c8a24f942924 (diff)
downloadpoky-44d283a13db50b84929c82408f9c6883c35af949.tar.gz
autotools.bbclass: use relative path to run configure script
The absolute path (/path/to/configure) caused VPATH in Makefile to be an absolute path, and then it will be in elf files, use relative path to run configure can fix the problem. This will reduce a lot of buildpaths QA issues in a world buld. [YOCTO #8894] (From OE-Core rev: 2c6ad43af0a0c4db5d7fd342be8585bec66debfb) Signed-off-by: Robert Yang <liezhi.yang@windriver.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/classes/autotools.bbclass')
-rw-r--r--meta/classes/autotools.bbclass4
1 files changed, 3 insertions, 1 deletions
diff --git a/meta/classes/autotools.bbclass b/meta/classes/autotools.bbclass
index d546a5c028..44cb422584 100644
--- a/meta/classes/autotools.bbclass
+++ b/meta/classes/autotools.bbclass
@@ -83,7 +83,9 @@ CONFIGURE_SCRIPT ?= "${AUTOTOOLS_SCRIPT_PATH}/configure"
83AUTOTOOLS_AUXDIR ?= "${AUTOTOOLS_SCRIPT_PATH}" 83AUTOTOOLS_AUXDIR ?= "${AUTOTOOLS_SCRIPT_PATH}"
84 84
85oe_runconf () { 85oe_runconf () {
86 cfgscript="${CONFIGURE_SCRIPT}" 86 # Use relative path to avoid buildpaths in files
87 cfgscript_name="`basename ${CONFIGURE_SCRIPT}`"
88 cfgscript=`python -c "import os; print os.path.relpath(os.path.dirname('${CONFIGURE_SCRIPT}'), '.')"`/$cfgscript_name
87 if [ -x "$cfgscript" ] ; then 89 if [ -x "$cfgscript" ] ; then
88 bbnote "Running $cfgscript ${CONFIGUREOPTS} ${EXTRA_OECONF} $@" 90 bbnote "Running $cfgscript ${CONFIGUREOPTS} ${EXTRA_OECONF} $@"
89 set +e 91 set +e