diff options
author | Ross Burton <ross.burton@intel.com> | 2016-06-20 17:37:31 +0100 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2016-06-23 14:23:30 +0100 |
commit | 7096f2889f1623ce97a6696f6f4c7217f0efb972 (patch) | |
tree | ba26d39719aded68d66bf8ba613c8f9f4f4905ec | |
parent | ac99135b009a1066486ed2afb2f298d0a5a3a854 (diff) | |
download | openembedded-core-7096f2889f1623ce97a6696f6f4c7217f0efb972.tar.gz openembedded-core-7096f2889f1623ce97a6696f6f4c7217f0efb972.tar.bz2 openembedded-core-7096f2889f1623ce97a6696f6f4c7217f0efb972.zip |
oeqa/targetbuild: add extra_cmds argument to run_configure
Some upstreams need more than just gnu-configize ran before ./configure works,
such as ./autogen.sh or autoreconf. Add extra_args (defaulting to
gnu-configize) so that this can be done in test cases.
Signed-off-by: Ross Burton <ross.burton@intel.com>
-rw-r--r-- | meta/lib/oeqa/utils/targetbuild.py | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/meta/lib/oeqa/utils/targetbuild.py b/meta/lib/oeqa/utils/targetbuild.py index 6177a12eb9..f0876705da 100644 --- a/meta/lib/oeqa/utils/targetbuild.py +++ b/meta/lib/oeqa/utils/targetbuild.py @@ -119,8 +119,8 @@ class SDKBuildProject(BuildProject): #Change targetdir to project folder self.targetdir = self.targetdir + self.fname - def run_configure(self, configure_args=''): - return super(SDKBuildProject, self).run_configure(configure_args=(configure_args or '$CONFIGURE_FLAGS'), extra_cmds=' gnu-configize; ') + def run_configure(self, configure_args='', extra_cmds=' gnu-configize; '): + return super(SDKBuildProject, self).run_configure(configure_args=(configure_args or '$CONFIGURE_FLAGS'), extra_cmds=extra_cmds) def run_install(self, install_args=''): return super(SDKBuildProject, self).run_install(install_args=(install_args or "DESTDIR=%s/../install" % self.targetdir)) @@ -133,4 +133,3 @@ class SDKBuildProject(BuildProject): def _run(self, cmd): self.log("Running . %s; " % self.sdkenv + cmd) return subprocess.call(". %s; " % self.sdkenv + cmd, shell=True) - |