x86emul: fix test harness and fuzzer build dependencies
authorJan Beulich <jbeulich@suse.com>
Tue, 10 Sep 2019 14:35:09 +0000 (16:35 +0200)
committerJan Beulich <jbeulich@suse.com>
Tue, 10 Sep 2019 14:35:09 +0000 (16:35 +0200)
commit1835980fc63b353430704a36e73e93480337bde5
tree1b0ffddd0e42b28820557732d70eb3fa23770575
parentfba818d400ce970fb05441fcc7789339382d1809
x86emul: fix test harness and fuzzer build dependencies

Commit fd35f32b4b ("tools/x86emul: Use struct cpuid_policy in the
userspace test harnesses") didn't account for the dependencies of
cpuid-autogen.h to potentially change between incremental builds. In
particular the harness has a "run" goal which is supposed to be usable
independently of the rest of the tools sub-tree building, and both the
harness and the fuzzer code are also supposed to be buildable
independently. Therefore a re-build of the generated header needs to be
triggered first, which is achieved by introducing a new top-level target
pattern (for just the "run" part for now).

Further cpuid.o did not have any dependencies added for it.

Finally, while at it, add a "run" target to the cpu-policy test harness.

Signed-off-by: Jan Beulich <jbeulich@suse.com>
Acked-by: Andrew Cooper <andrew.cooper3@citrix.com>
Acked-by: Ian Jackson <ian.jackson@eu.citrix.com>
Makefile
tools/fuzz/x86_instruction_emulator/Makefile
tools/tests/cpu-policy/Makefile
tools/tests/x86_emulator/Makefile