]> xenbits.xensource.com Git - people/sstabellini/xen-unstable.git/.git/commitdiff
tools/include: adjust x86-specific population of xen/
authorJan Beulich <jbeulich@suse.com>
Wed, 14 Oct 2020 12:02:20 +0000 (14:02 +0200)
committerJan Beulich <jbeulich@suse.com>
Wed, 14 Oct 2020 12:02:20 +0000 (14:02 +0200)
There's no need to use a shell loop construct here - ln's destination
can be specified as just the intended directory, as we don't mean to
change the names of any of the files. Also drop XEN_LIB_X86_INCLUDES for
having a single use only, and don't pass -f to ln, to allow noticing
name collisions right away.

Signed-off-by: Jan Beulich <jbeulich@suse.com>
Tested-by: Bertrand Marquis <bertrand.marquis@arm.com>
Acked-by: Wei Liu <wl@xen.org>
tools/include/Makefile

index e7b4efcbfde53111e836dd3e163f3012e8b41562..4db2d93887f679b1b30831b991772b19431f4c25 100644 (file)
@@ -12,8 +12,6 @@ all-y:
 xen-foreign:
        $(MAKE) -C xen-foreign
 
-XEN_LIB_X86_INCLUDES = $(filter-out %autogen.h, $(XEN_ROOT)/xen/include/xen/lib/x86/Makefile $(wildcard $(XEN_ROOT)/xen/include/xen/lib/x86/*.h))
-
 xen-dir:
        @rm -rf xen acpi
        mkdir -p xen/libelf acpi
@@ -26,11 +24,10 @@ xen-dir:
        ln -s $(XEN_ROOT)/xen/include/acpi/platform acpi/
        ln -s $(XEN_ROOT)/xen/include/acpi/ac*.h acpi/
 ifeq ($(CONFIG_X86),y)
-       ln -sf $(XEN_ROOT)/xen/include/asm-x86 xen/asm
+       ln -s $(XEN_ROOT)/xen/include/asm-x86 xen/asm
        mkdir -p xen/lib/x86
-       for f in $(patsubst $(XEN_ROOT)/xen/include/xen/lib/x86/%,%,$(XEN_LIB_X86_INCLUDES)); do \
-               ln -sf $(XEN_ROOT)/xen/include/xen/lib/x86/$$f xen/lib/x86/$$f; \
-       done
+       ln -s $(filter-out %autogen.h,$(wildcard $(XEN_ROOT)/xen/include/xen/lib/x86/*.h)) xen/lib/x86/
+       ln -s $(XEN_ROOT)/xen/include/xen/lib/x86/Makefile xen/lib/x86/
 endif
 
 all-$(CONFIG_X86): xen-dir