]> xenbits.xensource.com Git - people/sstabellini/xen-unstable.git/.git/commitdiff
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)
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

index 4d4ec5f974976b78ec3573c85642486a49d38087..42605d46b93770519d68daf5148488cbd910ba8c 100644 (file)
@@ -19,8 +19,8 @@ xen-foreign:
        $(MAKE) -C xen-foreign
 
 xen-dir:
-       @rm -rf xen acpi
        mkdir -p xen/libelf acpi
+       find xen/ acpi/ -type l -exec rm '{}' +
        ln -s $(XEN_ROOT)/xen/include/public/COPYING xen/
        ln -s $(XEN_ROOT)/xen/include/public/*.h xen/
        ln -s $(XEN_ROOT)/xen/include/public/*/ xen/