xen-devel.lists.xenproject.org archive mirror
 help / color / mirror / Atom feed
From: Wei Liu <wei.liu2@citrix.com>
To: Xen-devel <xen-devel@lists.xenproject.org>
Cc: Wei Liu <wei.liu2@citrix.com>
Subject: [PATCH RFC v1 4/6] libxl: generate and install stubdompath.sh
Date: Thu, 10 Mar 2016 16:52:23 +0000	[thread overview]
Message-ID: <1457628745-20188-5-git-send-email-wei.liu2@citrix.com> (raw)
In-Reply-To: <1457628745-20188-1-git-send-email-wei.liu2@citrix.com>

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           | 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@lists.xen.org
http://lists.xen.org/xen-devel

  parent reply	other threads:[~2016-03-10 16:52 UTC|newest]

Thread overview: 40+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-03-10 16:46 [RFC PATCH v1] Splitting off stubdom to a different tree Wei Liu
2016-03-10 16:52 ` [PATCH RFC v1 0/6] xen: split stubdom from xen.git Wei Liu
2016-03-10 16:52   ` [PATCH RFC v1 1/6] config: don't hard-code mini-os path Wei Liu
2016-03-10 16:52   ` [PATCH RFC v1 2/6] tools: use "?=" to set XEN_ROOT in Makefile Wei Liu
2016-03-10 16:52   ` [PATCH RFC v1 3/6] libxc: use $XEN_ROOT to reference libelf in xen Wei Liu
2016-03-10 16:52   ` Wei Liu [this message]
2016-03-10 16:52   ` [PATCH RFC v1 5/6] Unhook stubdom from build system Wei Liu
2016-03-10 16:52   ` [PATCH RFC v1 6/6] Remove stubdom directory Wei Liu
2016-03-10 16:52 ` [PATCH RFC v1 00/14] stubdom: split stubdom from xen.git Wei Liu
2016-03-10 16:52   ` [PATCH RFC v1 01/14] Import more files " Wei Liu
2016-03-10 16:52   ` [PATCH RFC v1 02/14] Makefile: introduce dist target Wei Liu
2016-03-10 16:52   ` [PATCH RFC v1 03/14] Add a gitignore Wei Liu
2016-03-10 16:52   ` [PATCH RFC v1 04/14] Makefile: require XEN_ROOT and MINI_OS to be defined Wei Liu
2016-03-10 16:52   ` [PATCH RFC v1 05/14] Makefile: replace MINI_OS with MINIOS_ROOT Wei Liu
2016-03-10 16:52   ` [PATCH RFC v1 06/14] pciutils: don't use hard-coded XEN_ROOT Wei Liu
2016-03-10 16:52   ` [PATCH RFC v1 07/14] grub: " Wei Liu
2016-03-10 16:52   ` [PATCH RFC v1 08/14] Makefile: export STUBDOM_ROOT Wei Liu
2016-03-10 16:52   ` [PATCH RFC v1 09/14] Makefile: delete STUBDOMPATH target Wei Liu
2016-03-31 10:21     ` Xu, Quan
2016-03-31 13:49       ` Wei Liu
2016-04-01  1:41         ` Xu, Quan
2016-04-01 10:03           ` Wei Liu
2016-04-06  9:09             ` Xu, Quan
2016-04-06  9:39               ` Wei Liu
2016-04-25 14:27             ` Wei Liu
2016-07-05 13:53             ` Xu, Quan
2016-07-05 13:57               ` Wei Liu
2016-03-10 16:52   ` [PATCH RFC v1 10/14] Makefile: require QEMU_ROOT to be defined Wei Liu
2016-03-10 16:52   ` [PATCH RFC v1 11/14] Makefile: always include Config.mk from xen source tree Wei Liu
2016-03-10 16:52   ` [PATCH RFC v1 12/14] Makefile: delete ioemu directory in clean target Wei Liu
2016-03-10 16:52   ` [PATCH RFC v1 13/14] Makefile: fix removing *.mk Wei Liu
2016-03-10 16:52   ` [PATCH RFC v1 14/14] Add README file Wei Liu
2016-03-10 18:33     ` Wei Liu
2016-03-10 16:52 ` [PATCH RFC v1 0/2] mini-os: split stubdom from xen.git Wei Liu
2016-03-10 16:52   ` [PATCH RFC v1 1/2] Config.mk: use MINI_OS if specified Wei Liu
2016-03-10 16:52   ` [PATCH RFC v1 2/2] Makefile: introduce STUBDOM_ROOT Wei Liu
2016-03-15  0:20 ` [RFC PATCH v1] Splitting off stubdom to a different tree Samuel Thibault
2016-03-15 12:30   ` Wei Liu
2016-03-15 14:22 ` Wei Liu
2016-03-15 18:26   ` Wei Liu

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1457628745-20188-5-git-send-email-wei.liu2@citrix.com \
    --to=wei.liu2@citrix.com \
    --cc=xen-devel@lists.xenproject.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).