2012-09-17 17:49:23 +02:00
|
|
|
Index: xen-4.2.0-testing/tools/xenstore/Makefile
|
2007-04-26 01:53:07 +02:00
|
|
|
===================================================================
|
2012-09-17 17:49:23 +02:00
|
|
|
--- xen-4.2.0-testing.orig/tools/xenstore/Makefile
|
|
|
|
+++ xen-4.2.0-testing/tools/xenstore/Makefile
|
2009-05-04 18:38:09 +02:00
|
|
|
@@ -10,6 +10,7 @@ CFLAGS += $(CFLAGS_libxenctrl)
|
2008-07-19 01:04:37 +02:00
|
|
|
|
2007-04-26 01:53:07 +02:00
|
|
|
CLIENTS := xenstore-exists xenstore-list xenstore-read xenstore-rm xenstore-chmod
|
2011-03-21 17:47:37 +01:00
|
|
|
CLIENTS += xenstore-write xenstore-ls xenstore-watch
|
2007-04-26 01:53:07 +02:00
|
|
|
+CLIENTS_DOMU := $(patsubst xenstore-%,domu-xenstore-%,$(CLIENTS))
|
|
|
|
|
|
|
|
XENSTORED_OBJS = xenstored_core.o xenstored_watch.o xenstored_domain.o xenstored_transaction.o xs_lib.o talloc.o utils.o tdb.o hashtable.o
|
|
|
|
|
2012-09-17 17:49:23 +02:00
|
|
|
@@ -38,7 +39,7 @@ endif
|
2010-01-16 01:12:54 +01:00
|
|
|
all: $(ALL_TARGETS)
|
2007-04-26 01:53:07 +02:00
|
|
|
|
2008-07-19 01:04:37 +02:00
|
|
|
.PHONY: clients
|
|
|
|
-clients: xenstore $(CLIENTS) xenstore-control
|
|
|
|
+clients: xenstore $(CLIENTS) $(CLIENTS_DOMU) xenstore-control
|
2007-04-26 01:53:07 +02:00
|
|
|
|
2008-07-19 01:04:37 +02:00
|
|
|
ifeq ($(CONFIG_SunOS),y)
|
|
|
|
xenstored_probes.h: xenstored_probes.d
|
2012-09-17 17:49:23 +02:00
|
|
|
@@ -66,6 +67,9 @@ xenstored.a: $(XENSTORED_OBJS)
|
2008-07-19 01:04:37 +02:00
|
|
|
$(CLIENTS): xenstore
|
|
|
|
ln -f xenstore $@
|
2007-04-26 01:53:07 +02:00
|
|
|
|
2008-07-19 01:04:37 +02:00
|
|
|
+$(CLIENTS_DOMU): xenstore
|
|
|
|
+ ln -f xenstore $@
|
2007-04-26 01:53:07 +02:00
|
|
|
+
|
2008-07-19 01:04:37 +02:00
|
|
|
xenstore: xenstore_client.o $(LIBXENSTORE)
|
2012-09-17 17:49:23 +02:00
|
|
|
$(CC) $(LDFLAGS) $< $(LDLIBS_libxenstore) $(SOCKET_LIBS) -o $@ $(APPEND_LDFLAGS)
|
2007-04-26 01:53:07 +02:00
|
|
|
|
2012-09-17 17:49:23 +02:00
|
|
|
@@ -93,7 +97,7 @@ clean:
|
2008-07-19 01:04:37 +02:00
|
|
|
rm -f *.a *.o *.opic *.so* xenstored_probes.h
|
2007-04-26 01:53:07 +02:00
|
|
|
rm -f xenstored xs_random xs_stress xs_crashme
|
2012-09-17 17:49:23 +02:00
|
|
|
rm -f xs_tdb_dump xenstore-control init-xenstore-domain
|
2008-07-19 01:04:37 +02:00
|
|
|
- rm -f xenstore $(CLIENTS)
|
2012-09-17 17:49:23 +02:00
|
|
|
+ rm -f xenstore $(CLIENTS) $(CLIENTS_DOMU)
|
2009-05-04 18:38:09 +02:00
|
|
|
$(RM) $(DEPS)
|
2007-04-26 01:53:07 +02:00
|
|
|
|
2007-12-20 16:46:41 +01:00
|
|
|
.PHONY: TAGS
|
2012-09-17 17:49:23 +02:00
|
|
|
@@ -110,6 +114,7 @@ install: all
|
2008-07-19 01:04:37 +02:00
|
|
|
$(INSTALL_DIR) $(DESTDIR)$(SBINDIR)
|
|
|
|
$(INSTALL_DIR) $(DESTDIR)$(INCLUDEDIR)
|
2012-09-17 17:49:23 +02:00
|
|
|
$(INSTALL_DIR) $(DESTDIR)$(INCLUDEDIR)/xenstore-compat
|
2011-03-21 17:47:37 +01:00
|
|
|
+ $(INSTALL_DIR) $(DESTDIR)/bin
|
|
|
|
$(INSTALL_DIR) $(DESTDIR)/var/run/xenstored
|
|
|
|
$(INSTALL_DIR) $(DESTDIR)/var/lib/xenstored
|
|
|
|
$(INSTALL_PROG) xenstored $(DESTDIR)$(SBINDIR)
|
2012-09-17 17:49:23 +02:00
|
|
|
@@ -118,6 +123,9 @@ install: all
|
2008-07-19 01:04:37 +02:00
|
|
|
set -e ; for c in $(CLIENTS) ; do \
|
2009-05-04 18:38:09 +02:00
|
|
|
ln -f $(DESTDIR)$(BINDIR)/xenstore $(DESTDIR)$(BINDIR)/$${c} ; \
|
2008-07-19 01:04:37 +02:00
|
|
|
done
|
2007-04-26 01:53:07 +02:00
|
|
|
+ for client in $(CLIENTS_DOMU); do \
|
|
|
|
+ $(INSTALL_PROG) $$client $(DESTDIR)/bin/$${client/domu-}; \
|
|
|
|
+ done
|
2008-07-19 01:04:37 +02:00
|
|
|
$(INSTALL_DIR) $(DESTDIR)$(LIBDIR)
|
|
|
|
$(INSTALL_PROG) libxenstore.so.$(MAJOR).$(MINOR) $(DESTDIR)$(LIBDIR)
|
|
|
|
ln -sf libxenstore.so.$(MAJOR).$(MINOR) $(DESTDIR)$(LIBDIR)/libxenstore.so.$(MAJOR)
|
2012-09-17 17:49:23 +02:00
|
|
|
Index: xen-4.2.0-testing/tools/hotplug/Linux/Makefile
|
2009-05-04 18:38:09 +02:00
|
|
|
===================================================================
|
2012-09-17 17:49:23 +02:00
|
|
|
--- xen-4.2.0-testing.orig/tools/hotplug/Linux/Makefile
|
|
|
|
+++ xen-4.2.0-testing/tools/hotplug/Linux/Makefile
|
2011-03-21 17:47:37 +01:00
|
|
|
@@ -41,18 +41,6 @@ endif
|
2010-01-16 01:12:54 +01:00
|
|
|
UDEV_RULES_DIR = $(CONFIG_DIR)/udev
|
2009-05-04 18:38:09 +02:00
|
|
|
UDEV_RULES = xen-backend.rules xend.rules
|
|
|
|
|
|
|
|
-DI = $(if $(DISTDIR),$(shell readlink -f $(DISTDIR)),)
|
|
|
|
-DE = $(if $(DESTDIR),$(shell readlink -f $(DESTDIR)),)
|
|
|
|
-ifeq ($(findstring $(DI),$(DE)),$(DI))
|
|
|
|
-HOTPLUGS=install-hotplug install-udev
|
|
|
|
-else
|
2009-08-01 11:53:46 +02:00
|
|
|
-ifeq ($(shell [ $(UDEVVER) -ge 059 ] && echo 1),1)
|
2009-05-04 18:38:09 +02:00
|
|
|
-HOTPLUGS=install-udev
|
|
|
|
-else
|
|
|
|
-HOTPLUGS=install-hotplug
|
|
|
|
-endif
|
|
|
|
-endif
|
|
|
|
-
|
|
|
|
.PHONY: all
|
|
|
|
all:
|
|
|
|
|
2011-03-21 17:47:37 +01:00
|
|
|
@@ -60,18 +48,18 @@ all:
|
2009-05-04 18:38:09 +02:00
|
|
|
build:
|
|
|
|
|
|
|
|
.PHONY: install
|
|
|
|
-install: all install-initd install-scripts $(HOTPLUGS)
|
|
|
|
+install: all install-initd install-scripts install-udev
|
|
|
|
|
2011-03-21 17:47:37 +01:00
|
|
|
# See docs/misc/distro_mapping.txt for INITD_DIR location
|
2009-05-04 18:38:09 +02:00
|
|
|
.PHONY: install-initd
|
|
|
|
install-initd:
|
2011-03-21 17:47:37 +01:00
|
|
|
[ -d $(DESTDIR)$(INITD_DIR) ] || $(INSTALL_DIR) $(DESTDIR)$(INITD_DIR)
|
|
|
|
- [ -d $(DESTDIR)$(SYSCONFIG_DIR) ] || $(INSTALL_DIR) $(DESTDIR)$(SYSCONFIG_DIR)
|
2009-05-04 18:38:09 +02:00
|
|
|
+ [ -d $(DESTDIR)/var/adm/fillup-templates ] || $(INSTALL_DIR) $(DESTDIR)/var/adm/fillup-templates/
|
2011-03-21 17:47:37 +01:00
|
|
|
$(INSTALL_PROG) $(XEND_INITD) $(DESTDIR)$(INITD_DIR)
|
|
|
|
$(INSTALL_PROG) $(XENDOMAINS_INITD) $(DESTDIR)$(INITD_DIR)
|
|
|
|
- $(INSTALL_PROG) $(XENDOMAINS_SYSCONFIG) $(DESTDIR)$(SYSCONFIG_DIR)/xendomains
|
2009-05-04 18:38:09 +02:00
|
|
|
+ $(INSTALL_PROG) $(XENDOMAINS_SYSCONFIG) $(DESTDIR)/var/adm/fillup-templates/
|
2011-03-21 17:47:37 +01:00
|
|
|
$(INSTALL_PROG) $(XENCOMMONS_INITD) $(DESTDIR)$(INITD_DIR)
|
|
|
|
- $(INSTALL_PROG) $(XENCOMMONS_SYSCONFIG) $(DESTDIR)$(SYSCONFIG_DIR)/xencommons
|
|
|
|
+ $(INSTALL_PROG) $(XENCOMMONS_SYSCONFIG) $(DESTDIR)/var/adm/fillup-templates/
|
|
|
|
$(INSTALL_PROG) init.d/xen-watchdog $(DESTDIR)$(INITD_DIR)
|
2009-05-04 18:38:09 +02:00
|
|
|
|
|
|
|
.PHONY: install-scripts
|
2012-09-17 17:49:23 +02:00
|
|
|
Index: xen-4.2.0-testing/tools/firmware/etherboot/Makefile
|
|
|
|
===================================================================
|
|
|
|
--- xen-4.2.0-testing.orig/tools/firmware/etherboot/Makefile
|
|
|
|
+++ xen-4.2.0-testing/tools/firmware/etherboot/Makefile
|
|
|
|
@@ -28,12 +28,12 @@ all: $(ROMS)
|
|
|
|
$(MAKE) -C $D/src bin/$(*F).rom
|
|
|
|
|
|
|
|
$T:
|
|
|
|
- if ! wget -O _$T $(IPXE_TARBALL_URL); then \
|
|
|
|
- $(GIT) clone $(IPXE_GIT_URL) $D.git; \
|
|
|
|
- (cd $D.git && $(GIT) archive --format=tar --prefix=$D/ \
|
|
|
|
- $(IPXE_GIT_TAG) | gzip >../_$T); \
|
|
|
|
- rm -rf $D.git; \
|
|
|
|
- fi
|
|
|
|
+ #if ! wget -O _$T $(IPXE_TARBALL_URL); then \
|
|
|
|
+ # $(GIT) clone $(IPXE_GIT_URL) $D.git; \
|
|
|
|
+ # (cd $D.git && $(GIT) archive --format=tar --prefix=$D/ \
|
|
|
|
+ # $(IPXE_GIT_TAG) | gzip >../_$T); \
|
|
|
|
+ # rm -rf $D.git; \
|
|
|
|
+ #fi
|
|
|
|
mv _$T $T
|
|
|
|
|
|
|
|
$D/src/arch/i386/Makefile: $T Config
|
2012-10-03 00:08:01 +02:00
|
|
|
Index: xen-4.2.0-testing/stubdom/Makefile
|
|
|
|
===================================================================
|
|
|
|
--- xen-4.2.0-testing.orig/stubdom/Makefile
|
|
|
|
+++ xen-4.2.0-testing/stubdom/Makefile
|
2012-10-08 19:11:11 +02:00
|
|
|
@@ -396,7 +396,7 @@ install-grub: pv-grub
|
2012-10-03 00:08:01 +02:00
|
|
|
|
|
|
|
install-xenstore: xenstore-stubdom
|
|
|
|
$(INSTALL_DIR) "$(DESTDIR)/usr/lib/xen/boot"
|
|
|
|
- $(INSTALL_PROG) mini-os-$(XEN_TARGET_ARCH)-xenstore/mini-os.gz "$(DESTDIR)/usr/lib/xen/boot/xenstore-stubdom.gz"
|
|
|
|
+ $(INSTALL_DATA) mini-os-$(XEN_TARGET_ARCH)-xenstore/mini-os.gz "$(DESTDIR)/usr/lib/xen/boot/xenstore-stubdom.gz"
|
|
|
|
|
|
|
|
#######
|
|
|
|
# clean
|
|
|
|
Index: xen-4.2.0-testing/tools/blktap2/vhd/lib/Makefile
|
|
|
|
===================================================================
|
|
|
|
--- xen-4.2.0-testing.orig/tools/blktap2/vhd/lib/Makefile
|
|
|
|
+++ xen-4.2.0-testing/tools/blktap2/vhd/lib/Makefile
|
|
|
|
@@ -68,7 +68,7 @@ libvhd.so.$(LIBVHD-MAJOR).$(LIBVHD-MINOR
|
|
|
|
|
|
|
|
install: all
|
|
|
|
$(INSTALL_DIR) -p $(DESTDIR)$(INST-DIR)
|
|
|
|
- $(INSTALL_PROG) libvhd.a $(DESTDIR)$(INST-DIR)
|
|
|
|
+ $(INSTALL_DATA) libvhd.a $(DESTDIR)$(INST-DIR)
|
|
|
|
$(INSTALL_PROG) libvhd.so.$(LIBVHD-MAJOR).$(LIBVHD-MINOR) $(DESTDIR)$(INST-DIR)
|
|
|
|
ln -sf libvhd.so.$(LIBVHD-MAJOR).$(LIBVHD-MINOR) $(DESTDIR)$(INST-DIR)/libvhd.so.$(LIBVHD-MAJOR)
|
|
|
|
ln -sf libvhd.so.$(LIBVHD-MAJOR) $(DESTDIR)$(INST-DIR)/libvhd.so
|
|
|
|
Index: xen-4.2.0-testing/tools/blktap/lib/Makefile
|
|
|
|
===================================================================
|
|
|
|
--- xen-4.2.0-testing.orig/tools/blktap/lib/Makefile
|
|
|
|
+++ xen-4.2.0-testing/tools/blktap/lib/Makefile
|
|
|
|
@@ -23,23 +23,26 @@ OBJS = $(SRCS:.c=.o)
|
|
|
|
OBJS_PIC = $(SRCS:.c=.opic)
|
|
|
|
IBINS :=
|
|
|
|
|
|
|
|
-LIB = libblktap.a libblktap.so.$(MAJOR).$(MINOR)
|
|
|
|
+LIB = libblktap.a
|
|
|
|
+LIB_SO = libblktap.so.$(MAJOR).$(MINOR)
|
|
|
|
+LIB_ALL = $(LIB) $(LIB_SO)
|
|
|
|
|
|
|
|
.PHONY: all
|
|
|
|
-all: $(LIB)
|
|
|
|
+all: $(LIB_ALL)
|
|
|
|
|
|
|
|
.PHONY: install
|
|
|
|
install: all
|
|
|
|
$(INSTALL_DIR) $(DESTDIR)$(LIBDIR)
|
|
|
|
$(INSTALL_DIR) $(DESTDIR)$(INCLUDEDIR)
|
|
|
|
- $(INSTALL_PROG) $(LIB) $(DESTDIR)$(LIBDIR)
|
|
|
|
+ $(INSTALL_DATA) $(LIB) $(DESTDIR)$(LIBDIR)
|
|
|
|
+ $(INSTALL_PROG) $(LIB_SO) $(DESTDIR)$(LIBDIR)
|
|
|
|
ln -sf libblktap.so.$(MAJOR).$(MINOR) $(DESTDIR)$(LIBDIR)/libblktap.so.$(MAJOR)
|
|
|
|
ln -sf libblktap.so.$(MAJOR) $(DESTDIR)$(LIBDIR)/libblktap.so
|
|
|
|
$(INSTALL_DATA) blktaplib.h $(DESTDIR)$(INCLUDEDIR)
|
|
|
|
|
|
|
|
.PHONY: clean
|
|
|
|
clean:
|
|
|
|
- rm -rf *.a *.so* *.o *.opic *.rpm $(LIB) *~ $(DEPS) xen TAGS
|
|
|
|
+ rm -rf *.a *.so* *.o *.opic *.rpm $(LIB_ALL) *~ $(DEPS) xen TAGS
|
|
|
|
|
|
|
|
libblktap.so.$(MAJOR).$(MINOR): $(OBJS_PIC)
|
|
|
|
$(CC) $(LDFLAGS) -Wl,$(SONAME_LDFLAG) -Wl,$(SONAME) $(SHLIB_LDFLAGS) \
|