]>
tests/vpci: Use $(CC) instead of $(HOSTCC)
authorMichal Orzel <michal.orzel@amd.com>
Wed, 4 Jun 2025 07:21:28 +0000 (09:21 +0200)
committerRoger Pau Monne <roger.pau@citrix.com>
Mon, 9 Jun 2025 10:12:43 +0000 (12:12 +0200)
commit86a12671c5d33063b6f958bdcca7c9d14cd5aac8
tree180c9d034ad438c2a9ec26b66710f7c03d195261
parent6bd3aa6d56d14bec008c296c69559b7d2f7e4282
tests/vpci: Use $(CC) instead of $(HOSTCC)

Depending on the build environment, HOSTCC can be different than CC. With
the recent `install` rule addition, this would put a binary of a wrong
format in the destdir (e.g. building tests on x86 host for Arm target).

Take the opportunity to adjust the `run` rule to only run the test if
HOSTCC is CC, else print a warning message.

Fixes: 96a587a05736 ("tools/tests: Add install target for vPCI")
Signed-off-by: Michal Orzel <michal.orzel@amd.com>
Reviewed-by: Roger Pau Monné <roger.pau@citrix.com>
tools/tests/vpci/Makefile