[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[xen staging] tools/include: adjust population of public headers into xen/



commit edc8d9136bf3854d6b37f782d124273216fb7ffd
Author:     Jan Beulich <jbeulich@xxxxxxxx>
AuthorDate: Wed Oct 14 14:01:43 2020 +0200
Commit:     Jan Beulich <jbeulich@xxxxxxxx>
CommitDate: Wed Oct 14 14:01:43 2020 +0200

    tools/include: adjust population of public headers into xen/
    
    Use a wildcard also for the subdirectories, drop XEN_PUBLIC_INCLUDES for
    having a single use only, and don't pass -f to ln to allow noticing name
    collisions right away, and add trailing slashes to ln's destination.
    
    Signed-off-by: Jan Beulich <jbeulich@xxxxxxxx>
    Tested-by: Bertrand Marquis <bertrand.marquis@xxxxxxx>
    Acked-by: Wei Liu <wl@xxxxxxx>
---
 tools/include/Makefile | 7 +++----
 1 file changed, 3 insertions(+), 4 deletions(-)

diff --git a/tools/include/Makefile b/tools/include/Makefile
index ca4464bcc5..ebd5317169 100644
--- a/tools/include/Makefile
+++ b/tools/include/Makefile
@@ -12,15 +12,14 @@ all-y:
 xen-foreign:
        $(MAKE) -C xen-foreign
 
-XEN_PUBLIC_INCLUDES = $(wildcard $(XEN_ROOT)/xen/include/public/*.h)
 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
-       ln -sf $(XEN_ROOT)/xen/include/public/COPYING xen
-       ln -sf $(XEN_PUBLIC_INCLUDES) xen
-       ln -sf $(addprefix $(XEN_ROOT)/xen/include/public/,arch-x86 arch-arm 
hvm io xsm) xen
+       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/
        ln -sf ../xen-sys/$(XEN_OS) xen/sys
        ln -sf $(addprefix $(XEN_ROOT)/xen/include/xen/,libelf.h elfstructs.h) 
xen/libelf/
        ln -s ../xen-foreign xen/foreign
--
generated by git-patchbot for /home/xen/git/xen.git#staging



 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.