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:26:16 +0100 |
commit | 40268fe27ae41d5c4feae89900c0bc23a6dce72a (patch) | |
tree | 89e69e45c9c502cd313ee9b50085dbf56dac045c /meta/lib/oeqa/utils/targetbuild.py | |
parent | 0aa028f5a993322484e2a874efc3a40ee8e5078a (diff) | |
download | poky-40268fe27ae41d5c4feae89900c0bc23a6dce72a.tar.gz |
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>
Diffstat (limited to 'meta/lib/oeqa/utils/targetbuild.py')
-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): | |||
119 | #Change targetdir to project folder | 119 | #Change targetdir to project folder |
120 | self.targetdir = self.targetdir + self.fname | 120 | self.targetdir = self.targetdir + self.fname |
121 | 121 | ||
122 | def run_configure(self, configure_args=''): | 122 | def run_configure(self, configure_args='', extra_cmds=' gnu-configize; '): |
123 | return super(SDKBuildProject, self).run_configure(configure_args=(configure_args or '$CONFIGURE_FLAGS'), extra_cmds=' gnu-configize; ') | 123 | return super(SDKBuildProject, self).run_configure(configure_args=(configure_args or '$CONFIGURE_FLAGS'), extra_cmds=extra_cmds) |
124 | 124 | ||
125 | def run_install(self, install_args=''): | 125 | def run_install(self, install_args=''): |
126 | return super(SDKBuildProject, self).run_install(install_args=(install_args or "DESTDIR=%s/../install" % self.targetdir)) | 126 | return super(SDKBuildProject, self).run_install(install_args=(install_args or "DESTDIR=%s/../install" % self.targetdir)) |
@@ -133,4 +133,3 @@ class SDKBuildProject(BuildProject): | |||
133 | def _run(self, cmd): | 133 | def _run(self, cmd): |
134 | self.log("Running . %s; " % self.sdkenv + cmd) | 134 | self.log("Running . %s; " % self.sdkenv + cmd) |
135 | return subprocess.call(". %s; " % self.sdkenv + cmd, shell=True) | 135 | return subprocess.call(". %s; " % self.sdkenv + cmd, shell=True) |
136 | |||