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
|
2012-11-19 14:58:33 +01:00
|
|
|
@@ -43,12 +43,12 @@ install: all install-initd install-scrip
|
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)
|
2012-11-19 14:58:33 +01:00
|
|
|
- $(INSTALL_DATA) $(XENDOMAINS_SYSCONFIG) $(DESTDIR)$(SYSCONFIG_DIR)/xendomains
|
|
|
|
+ $(INSTALL_DATA) $(XENDOMAINS_SYSCONFIG) $(DESTDIR)/var/adm/fillup-templates/
|
2011-03-21 17:47:37 +01:00
|
|
|
$(INSTALL_PROG) $(XENCOMMONS_INITD) $(DESTDIR)$(INITD_DIR)
|
2012-11-19 14:58:33 +01:00
|
|
|
- $(INSTALL_DATA) $(XENCOMMONS_SYSCONFIG) $(DESTDIR)$(SYSCONFIG_DIR)/xencommons
|
|
|
|
+ $(INSTALL_DATA) $(XENCOMMONS_SYSCONFIG) $(DESTDIR)/var/adm/fillup-templates/
|
2011-03-21 17:47:37 +01:00
|
|
|
$(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
|