|
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Xen-devel] [PATCH RFC v1 4/6] libxl: generate and install stubdompath.sh
It's a script used by libxl to launch stubdom. This is split off from
stubdom build system.
Signed-off-by: Wei Liu <wei.liu2@xxxxxxxxxx>
---
.gitignore | 1 +
tools/libxl/Makefile | 9 ++++++++-
2 files changed, 9 insertions(+), 1 deletion(-)
diff --git a/.gitignore b/.gitignore
index 91f690c..00811e7 100644
--- a/.gitignore
+++ b/.gitignore
@@ -170,6 +170,7 @@ tools/libxl/libxlu_cfg_y.output
tools/libxl/*.pc
tools/libxl/*.pc.in
tools/libxl/xl
+tools/libxl/stubdompath.sh
tools/libxl/testenum
tools/libxl/testenum.c
tools/libxl/tmp.*
diff --git a/tools/libxl/Makefile b/tools/libxl/Makefile
index 81c3db4..0b540ca 100644
--- a/tools/libxl/Makefile
+++ b/tools/libxl/Makefile
@@ -25,6 +25,11 @@ ifeq ($(CONFIG_REMUS_NETBUF),y)
LIBXL_LIBS += $(LIBNL3_LIBS)
endif
+# Script used to launch stubdom
+STUBDOMPATH="stubdompath.sh"
+genpath-target = $(call buildmakevars2file,$(STUBDOMPATH))
+$(eval $(genpath-target))
+
CFLAGS_LIBXL += $(CFLAGS_libxentoollog)
CFLAGS_LIBXL += $(CFLAGS_libxenevtchn)
CFLAGS_LIBXL += $(CFLAGS_libxenctrl)
@@ -223,7 +228,7 @@ _libxl_type%.h _libxl_type%_json.h _libxl_type%_private.h
_libxl_type%.c: libxl_
$(call move-if-changed,__libxl_type$*_json.h,_libxl_type$*_json.h)
$(call move-if-changed,__libxl_type$*.c,_libxl_type$*.c)
-libxenlight.so: libxenlight.so.$(MAJOR)
+libxenlight.so: libxenlight.so.$(MAJOR) $(STUBDOMPATH)
$(SYMLINK_SHLIB) $< $@
libxenlight.so.$(MAJOR): libxenlight.so.$(MAJOR).$(MINOR)
@@ -268,6 +273,7 @@ $(PKG_CONFIG): % : %.in Makefile
.PHONY: install
install: all
+ $(INSTALL_DATA) $(STUBDOMPATH) $(DESTDIR)$(LIBEXEC_BIN)
$(INSTALL_DIR) $(DESTDIR)$(sbindir)
$(INSTALL_DIR) $(DESTDIR)$(libdir)
$(INSTALL_DIR) $(DESTDIR)$(includedir)
@@ -296,6 +302,7 @@ clean:
$(RM) -f testidl.c.new testidl.c *.api-ok
$(RM) -f xenlight.pc
$(RM) -f xlutil.pc
+ $(RM) -f $(STUBDOMPATH)
distclean: clean
$(RM) -f xenlight.pc.in xlutil.pc.in
--
2.1.4
_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxx
http://lists.xen.org/xen-devel
|
![]() |
Lists.xenproject.org is hosted with RackSpace, monitoring our |