mirror of
https://git.yoctoproject.org/poky
synced 2026-04-20 00:32:13 +02:00
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. (From OE-Core rev: 7096f2889f1623ce97a6696f6f4c7217f0efb972) Signed-off-by: Ross Burton <ross.burton@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
committed by
Richard Purdie
parent
0aa028f5a9
commit
40268fe27a
@@ -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)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user