]> git.proxmox.com Git - mirror_qemu.git/commit
qtest: Fix rtas dependencies
authorLaurent Vivier <lvivier@redhat.com>
Wed, 5 Feb 2020 23:20:15 +0000 (00:20 +0100)
committerDavid Gibson <david@gibson.dropbear.id.au>
Thu, 20 Feb 2020 22:15:03 +0000 (09:15 +1100)
commit2c6e918ef8a101d86e0592051a1ee4bf493a6785
tree9bef399882cf9665009b3a4f0fe842080ae28abb
parenta4c3791ae0c4a2e1f5d91f078bc9ad6e5d58867e
qtest: Fix rtas dependencies

qtest "rtas" command is only available with pseries not all ppc64 targets,
so if I try to compile only powernv machine, the build fails with:

  /usr/bin/ld: qtest.o: in function `qtest_process_command':
  .../qtest.c:645: undefined reference to `qtest_rtas_call'

We fix this by enabling rtas command only with pseries machine.

Fixes: eeddd59f5962 ("tests: add RTAS command in the protocol")
Signed-off-by: Laurent Vivier <lvivier@redhat.com>
Message-Id: <20200205232016.588202-2-lvivier@redhat.com>
Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
qtest.c