tools/x86: don't rebuild cpuid-autogen.h every time
authorJan Beulich <jbeulich@suse.com>
Mon, 15 Mar 2021 07:33:53 +0000 (08:33 +0100)
committerJan Beulich <jbeulich@suse.com>
Mon, 15 Mar 2021 07:33:53 +0000 (08:33 +0100)
commitb4011741e6b39a8fd0ed5aded96c16c45ead5888
tree56a2f5e3d1491aa180acbb37e4d3c898dc2b24ae
parent14b95b3b8546db201e7efd0636ae0e215fae98f3
tools/x86: don't rebuild cpuid-autogen.h every time

The first thing the "xen-dir" rule does is delete the entire xen/
subtree. Obviously this includes deleting xen/lib/x86/*autogen.h. As a
result there's no original version for $(move-if-changed ...) to compare
against, and hence the file and all its consumers would get rebuilt
every time. Instead only find and delete all the symlinks.

Fixes: eddf9559c977 ("libx86: generate cpuid-autogen.h in the libx86 include dir")
Signed-off-by: Jan Beulich <jbeulich@suse.com>
Reviewed-by: Ian Jackson <iwj@xenproject.org>
Release-Acked-by: Ian Jackson <iwj@xenproject.org>
tools/include/Makefile