diff options
| author | Ross Burton <ross.burton@arm.com> | 2025-05-10 09:43:50 +0100 |
|---|---|---|
| committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2025-05-12 22:01:55 +0100 |
| commit | 7157ffa5513ea22491c544e53b2f4b899a045404 (patch) | |
| tree | 278615d4f337ff291b4d71739ea5163dfb4dbce7 /meta/lib/oeqa/sdk/cases/autotools.py | |
| parent | 0fc5716c1192df5180204a8679569c5d91cc0f1b (diff) | |
| download | poky-7157ffa5513ea22491c544e53b2f4b899a045404.tar.gz | |
oeqa/sdk/autotools: verify that configure is using the correct host
Search config.log for the correct host_alias assignment to verify that
configure has correctly identified the host system.
(From OE-Core rev: ade66073a1c89918f849eb2932c05342e8f3ab4f)
Signed-off-by: Ross Burton <ross.burton@arm.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/lib/oeqa/sdk/cases/autotools.py')
| -rw-r--r-- | meta/lib/oeqa/sdk/cases/autotools.py | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/meta/lib/oeqa/sdk/cases/autotools.py b/meta/lib/oeqa/sdk/cases/autotools.py index b3a71f2aa5..ee6c522551 100644 --- a/meta/lib/oeqa/sdk/cases/autotools.py +++ b/meta/lib/oeqa/sdk/cases/autotools.py | |||
| @@ -36,6 +36,12 @@ class AutotoolsTest(OESDKTestCase): | |||
| 36 | os.makedirs(dirs["build"]) | 36 | os.makedirs(dirs["build"]) |
| 37 | 37 | ||
| 38 | self._run("cd {build} && {source}/configure CFLAGS='-std=gnu17 -Dbool=int -Dtrue=1 -Dfalse=0 -Wno-error=implicit-function-declaration' $CONFIGURE_FLAGS".format(**dirs)) | 38 | self._run("cd {build} && {source}/configure CFLAGS='-std=gnu17 -Dbool=int -Dtrue=1 -Dfalse=0 -Wno-error=implicit-function-declaration' $CONFIGURE_FLAGS".format(**dirs)) |
| 39 | |||
| 40 | # Check that configure detected the target correctly | ||
| 41 | with open(os.path.join(dirs["build"], "config.log")) as f: | ||
| 42 | host_sys = self.td["HOST_SYS"] | ||
| 43 | self.assertIn(f"host_alias='{host_sys}'\n", f.readlines()) | ||
| 44 | |||
| 39 | self._run("cd {build} && make CFLAGS='-std=gnu17 -Dbool=int -Dtrue=1 -Dfalse=0 -Wno-error=implicit-function-declaration' -j".format(**dirs)) | 45 | self._run("cd {build} && make CFLAGS='-std=gnu17 -Dbool=int -Dtrue=1 -Dfalse=0 -Wno-error=implicit-function-declaration' -j".format(**dirs)) |
| 40 | self._run("cd {build} && make install DESTDIR={install}".format(**dirs)) | 46 | self._run("cd {build} && make install DESTDIR={install}".format(**dirs)) |
| 41 | 47 | ||
