]> xenbits.xensource.com Git - people/jgross/xen.git/commitdiff
tools/libs/guest: don't use symbolic links for xenctrl headers
authorJuergen Gross <jgross@suse.com>
Fri, 2 Oct 2020 13:42:07 +0000 (15:42 +0200)
committerJuergen Gross <jgross@suse.com>
Fri, 23 Oct 2020 13:10:59 +0000 (15:10 +0200)
Instead of using symbolic links for accessing the xenctrl private
headers use an include path instead.

Signed-off-by: Juergen Gross <jgross@suse.com>
tools/libs/guest/Makefile

index 5b4ad313cc723e5c0496f026311bbe8b7be3b1f7..1c729040b337fd757fdfa3897123523ad2596778 100644 (file)
@@ -6,11 +6,6 @@ ifeq ($(CONFIG_LIBXC_MINIOS),y)
 override CONFIG_MIGRATE := n
 endif
 
-LINK_FILES := xc_private.h xc_core.h xc_core_x86.h xc_core_arm.h xc_bitops.h
-
-$(LINK_FILES):
-       ln -sf $(XEN_ROOT)/tools/libs/ctrl/$(notdir $@) $@
-
 SRCS-y += xg_private.c
 SRCS-y += xg_domain.c
 SRCS-y += xg_suspend.c
@@ -29,6 +24,8 @@ else
 SRCS-y += xg_nomigrate.c
 endif
 
+CFLAGS += -I$(XEN_libxenctrl)
+
 vpath %.c ../../../xen/common/libelf
 CFLAGS += -I../../../xen/common/libelf
 
@@ -111,8 +108,6 @@ $(eval $(genpath-target))
 
 xc_private.h: _paths.h
 
-$(LIB_OBJS) $(PIC_OBJS): $(LINK_FILES)
-
 .PHONY: cleanlocal
 cleanlocal:
        rm -f libxenguest.map