mirror of
git://git.yoctoproject.org/poky.git
synced 2025-07-19 21:09:03 +02:00
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>
This commit is contained in:
parent
0fc5716c11
commit
7157ffa551
|
@ -36,6 +36,12 @@ class AutotoolsTest(OESDKTestCase):
|
|||
os.makedirs(dirs["build"])
|
||||
|
||||
self._run("cd {build} && {source}/configure CFLAGS='-std=gnu17 -Dbool=int -Dtrue=1 -Dfalse=0 -Wno-error=implicit-function-declaration' $CONFIGURE_FLAGS".format(**dirs))
|
||||
|
||||
# Check that configure detected the target correctly
|
||||
with open(os.path.join(dirs["build"], "config.log")) as f:
|
||||
host_sys = self.td["HOST_SYS"]
|
||||
self.assertIn(f"host_alias='{host_sys}'\n", f.readlines())
|
||||
|
||||
self._run("cd {build} && make CFLAGS='-std=gnu17 -Dbool=int -Dtrue=1 -Dfalse=0 -Wno-error=implicit-function-declaration' -j".format(**dirs))
|
||||
self._run("cd {build} && make install DESTDIR={install}".format(**dirs))
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user