mirror of
https://github.com/xen-project/xen.git
synced 2026-10-28 02:01:24 +01:00
libs: Remove _paths.h from libs ctrl and util.
libxenutil doesn't include _paths.h so no need to generate it. libxenctrl doesn't use macros from _paths.h so can be removed. Fix libxenguest to include _paths.h properly instead of relying on xc_private.h Signed-off-by: Anthony PERARD <anthony.perard@citrix.com> Reviewed-by: Juergen Gross <jgross@suse.com>
This commit is contained in:
1 parent
ec47d17d22
commit
e0c9bd3d67
6 files changed
+3
-15
No files matched your search
@@ -117,7 +117,6 @@ tools/libs/hypfs/headers.chk
|
||||
tools/libs/hypfs/xenhypfs.pc
|
||||
tools/libs/call/headers.chk
|
||||
tools/libs/call/xencall.pc
|
||||
tools/libs/ctrl/_*.[ch]
|
||||
tools/libs/ctrl/libxenctrl.map
|
||||
tools/libs/ctrl/xencontrol.pc
|
||||
tools/libs/foreignmemory/headers.chk
|
||||
@@ -157,7 +156,6 @@ tools/libs/store/utils.h
|
||||
tools/libs/store/xenstore.pc
|
||||
tools/libs/store/xs_lib.c
|
||||
tools/libs/util/*.pc
|
||||
tools/libs/util/_paths.h
|
||||
tools/libs/util/libxlu_cfg_y.output
|
||||
tools/libs/util/libxenutil.map
|
||||
tools/libs/vchan/headers.chk
|
||||
|
||||
@@ -54,11 +54,6 @@ NO_HEADERS_CHK := y
|
||||
|
||||
include $(XEN_ROOT)/tools/libs/libs.mk
|
||||
|
||||
genpath-target = $(call buildmakevars2header,_paths.h)
|
||||
$(eval $(genpath-target))
|
||||
|
||||
$(LIB_OBJS) $(PIC_OBJS): _paths.h
|
||||
|
||||
-include $(DEPS_INCLUDE)
|
||||
|
||||
clean: cleanlocal
|
||||
|
||||
@@ -29,8 +29,6 @@
|
||||
#include <limits.h>
|
||||
#include <sys/ioctl.h>
|
||||
|
||||
#include "_paths.h"
|
||||
|
||||
#define XC_WANT_COMPAT_MAP_FOREIGN_API
|
||||
#define XC_INTERNAL_COMPAT_MAP_FOREIGN_API
|
||||
#include "xenctrl.h"
|
||||
|
||||
@@ -111,7 +111,7 @@ libxenguest.so.$(MAJOR).$(MINOR): APPEND_LDFLAGS += $(COMPRESSION_LIBS) -lz
|
||||
genpath-target = $(call buildmakevars2header,_paths.h)
|
||||
$(eval $(genpath-target))
|
||||
|
||||
xc_private.h: _paths.h
|
||||
$(LIB_OBJS) $(PIC_OBJS): _paths.h
|
||||
|
||||
-include $(DEPS_INCLUDE)
|
||||
|
||||
|
||||
@@ -19,6 +19,7 @@
|
||||
#include <xenevtchn.h>
|
||||
|
||||
#include "xc_private.h"
|
||||
#include "_paths.h"
|
||||
#include "xenguest.h"
|
||||
|
||||
#define SUSPEND_LOCK_FILE XEN_RUN_DIR "/suspend-evtchn-%d.lock"
|
||||
|
||||
@@ -39,7 +39,7 @@ NO_HEADERS_CHK := y
|
||||
|
||||
include $(XEN_ROOT)/tools/libs/libs.mk
|
||||
|
||||
$(LIB_OBJS) $(PIC_OBJS): $(AUTOINCS) _paths.h
|
||||
$(LIB_OBJS) $(PIC_OBJS): $(AUTOINCS)
|
||||
|
||||
%.c %.h:: %.y
|
||||
@rm -f $*.[ch]
|
||||
@@ -49,14 +49,10 @@ $(LIB_OBJS) $(PIC_OBJS): $(AUTOINCS) _paths.h
|
||||
@rm -f $*.[ch]
|
||||
$(FLEX) --header-file=$*.h --outfile=$*.c $<
|
||||
|
||||
genpath-target = $(call buildmakevars2header,_paths.h)
|
||||
$(eval $(genpath-target))
|
||||
|
||||
-include $(DEPS_INCLUDE)
|
||||
|
||||
clean: cleanlocal
|
||||
|
||||
.PHONY: cleanlocal
|
||||
cleanlocal:
|
||||
$(RM) -f _*.h
|
||||
$(RM) -f libxlutil.map
|
||||