]> xenbits.xensource.com Git - people/liuw/xen.git/commitdiff
libxl: generate and install stubdompath.sh
authorWei Liu <wei.liu2@citrix.com>
Wed, 9 Mar 2016 20:23:10 +0000 (20:23 +0000)
committerWei Liu <wei.liu2@citrix.com>
Tue, 15 Mar 2016 16:32:35 +0000 (16:32 +0000)
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@citrix.com>
.gitignore
tools/libxl/Makefile

index 91f690cedab4b5a500ee064f8626d71fc0c458d5..00811e7477818beda374f79a74dc22444f495b95 100644 (file)
@@ -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.*
index 81c3db4a1c38a77363b6773206f7fd1171c496b7..0b540cab1f86d4d2a72e1d4bd22c2d99f5acea5d 100644 (file)
@@ -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