mirror of
https://github.com/xen-project/xen.git
synced 2026-10-28 18:21:39 +01:00
XEN_LIB_STORED is serving no real purpose, as it is a mount point for a tmpfs, so it can be replaced easily by XEN_RUN_STORED. XENSTORED_ROOTDIR is basically unused already, there is just a single reference in xs_daemon_rootdir() with a fallback to XEN_LIB_STORED, and a .gdbinit file setting it. Remove the .gdbinit file, as it is not known having been used since ages, and make xs_daemon_rootdir() an alias of xs_daemon_rundir(). Reported-by: Andrew Cooper <andrew.cooper3@citrix.com> Signed-off-by: Juergen Gross <jgross@suse.com> Acked-by: Andrew Cooper <andrew.cooper3@citrix.com> Release-acked-by: Henry Wang <Henry.Wang@arm.com>
49 lines
1.4 KiB
Makefile
49 lines
1.4 KiB
Makefile
XEN_ROOT=$(CURDIR)/../../..
|
|
include $(XEN_ROOT)/tools/Rules.mk
|
|
|
|
MAJOR = 4
|
|
MINOR = 0
|
|
|
|
ifeq ($(CONFIG_Linux),y)
|
|
LDLIBS += -ldl
|
|
endif
|
|
|
|
OBJS-y += xs_lib.o
|
|
OBJS-y += xs.o
|
|
|
|
LIBHEADER = xenstore.h xenstore_lib.h
|
|
|
|
include ../libs.mk
|
|
|
|
# Include configure output (config.h)
|
|
CFLAGS += -include $(XEN_ROOT)/tools/config.h
|
|
CFLAGS += $(CFLAGS_libxentoolcore)
|
|
CFLAGS += -DXEN_RUN_STORED="\"$(XEN_RUN_STORED)\""
|
|
|
|
vpath xs_lib.c $(XEN_ROOT)/tools/xenstore
|
|
CFLAGS += -iquote $(XEN_ROOT)/tools/xenstore
|
|
|
|
xs.opic: CFLAGS += -DUSE_PTHREAD
|
|
ifeq ($(CONFIG_Linux),y)
|
|
xs.opic: CFLAGS += -DUSE_DLSYM
|
|
endif
|
|
|
|
.PHONY: install
|
|
install::
|
|
$(INSTALL_DIR) $(DESTDIR)$(includedir)
|
|
$(INSTALL_DIR) $(DESTDIR)$(includedir)/xenstore-compat
|
|
$(INSTALL_DATA) $(XEN_INCLUDE)/xenstore-compat/xs.h $(DESTDIR)$(includedir)/xenstore-compat/xs.h
|
|
$(INSTALL_DATA) $(XEN_INCLUDE)/xenstore-compat/xs_lib.h $(DESTDIR)$(includedir)/xenstore-compat/xs_lib.h
|
|
ln -sf xenstore-compat/xs.h $(DESTDIR)$(includedir)/xs.h
|
|
ln -sf xenstore-compat/xs_lib.h $(DESTDIR)$(includedir)/xs_lib.h
|
|
|
|
.PHONY: uninstall
|
|
uninstall::
|
|
rm -f $(DESTDIR)$(includedir)/xs_lib.h
|
|
rm -f $(DESTDIR)$(includedir)/xs.h
|
|
rm -f $(DESTDIR)$(includedir)/xenstore-compat/xs_lib.h
|
|
rm -f $(DESTDIR)$(includedir)/xenstore-compat/xs.h
|
|
if [ -d $(DESTDIR)$(includedir)/xenstore-compat ]; then \
|
|
rmdir --ignore-fail-on-non-empty $(DESTDIR)$(includedir)/xenstore-compat; \
|
|
fi
|