Skip to contentSkip to conversation

Misc build system tweaks

PATCH In review Andrew Cooper 4 participants 8 messages Oct 7, 2014 – Oct 8, 2014

lore
Share & tools
lore
#0 lore raw

cover Misc build system tweaks

This is a collection of 4 misc build system changes which I have collected while attempting to port Xen-4.5 to a XenServer experimental branch (in the hopes of testing the RCs)

I am requesting a release ack on the grounds of these being minor build system changes, unrelated to code itself.

Andrew Cooper (4):
gitignore: Cleanup
tools/xenstore: Introduce clients-install target tools/xenstore: Only create SBINDIR if it is to be used tools/ocaml: Gate building tests on CONFIG_TESTS

 .gitignore              |   39 ---------------------------------------
 tools/ocaml/Makefile    |    5 +++--
 tools/xenstore/Makefile |   10 +++++++++-
 3 files changed, 12 insertions(+), 42 deletions(-)
Signature · 1 line
1.7.10.4
#1 lore raw

PATCH 1/4 gitignore: Cleanup

This is a rough pruning based mainly on directories which no longer exist. Some of this was code deleted in 2007.

CC Keir Fraser <[email protected]>
CC Jan Beulich <[email protected]>
CC Tim Deegan <[email protected]>
CC Ian Campbell <[email protected]>
CC Ian Jackson <[email protected]>
---
 .gitignore |   39 ---------------------------------------
 1 file changed, 39 deletions(-)
.gitignore +0 -39
index 2201cb0..b24e905 100644
@@ -52,24 +52,6 @@ extras/mini-os/include/xen
 extras/mini-os/include/list.h
 extras/mini-os/mini-os*
 install/*
-linux-[^/]*-paravirt/*
-linux-2.6[^/]*/*
-linux-[^/]*-rc/*
-linux-[^/]*-tip/*
-linux-[^/]*-git/*
-linux-[^/]*.patch
-mkddbxen
-netbsd-[^/]*-tools/*
-netbsd-[^/]*-xen0/*
-netbsd-[^/]*-xenU/*
-netbsd-[^/]*.patch
-patches/*/.makedep
-patches/ebtables-brnf-5_vs_2.4.25.diff
-patches/ebtables.diff
-patches/tmp/*
-pristine-*
-ref-*
-tmp-*
 stubdom/autom4te.cache/
 stubdom/binutils-*
 stubdom/config.log
@@ -124,7 +106,6 @@ tools/blktap/drivers/img2qcow
 tools/blktap/drivers/qcow-create
 tools/blktap/drivers/qcow2raw
 tools/blktap/drivers/tapdisk
-tools/check/.*
 tools/console/xenconsole
 tools/console/xenconsoled
 tools/debugger/gdb/gdb-6.2.1-linux-i386-xen/*
@@ -158,7 +139,6 @@ tools/flask/utils/flask-loadpolicy
 tools/flask/utils/flask-setenforce
 tools/flask/utils/flask-set-bool
 tools/flask/utils/flask-label-pci
-tools/fs-back/fs-backend
 tools/hotplug/common/hotplugpath.sh
 tools/hotplug/FreeBSD/rc.d/xencommons
 tools/hotplug/Linux/init.d/xen-watchdog
@@ -193,8 +173,6 @@ tools/misc/lowmemd
 tools/misc/xencov
 tools/pygrub/build/*
 tools/python/build/*
-tools/remus/imqebt/imqebt
-tools/remus/kmod/*(.cmd|.mod|.ko|.mod.c|.symvers|.xen)
 tools/security/secpol_tool
 tools/security/xen/*
 tools/security/xensec_tool
@@ -208,22 +186,14 @@ tools/tests/regression/build/*
 tools/tests/regression/downloads/*
 tools/tests/mem-sharing/memshrtool
 tools/tests/mce-test/tools/xen-mceinj
-tools/vtpm/tpm_emulator-*.tar.gz
-tools/vtpm/tpm_emulator/*
-tools/vtpm/vtpm/*
-tools/vtpm_manager/manager/vtpm_managerd
 tools/xcutils/lsevtchn
 tools/xcutils/readnotes
-tools/xenfb/sdlfb
-tools/xenfb/vncfb
 tools/xenmon/xentrace_setmask
 tools/xenmon/xenbaked
 tools/xenpaging/xenpaging
 tools/xenpmd/xenpmd
 tools/xenstat/xentop/xentop
-tools/xenstore/testsuite/tmp/*
 tools/xenstore/init-xenstore-domain
-tools/xenstore/xen
 tools/xenstore/xenstore
 tools/xenstore/xenstore-chmod
 tools/xenstore/xenstore-exists
@@ -235,17 +205,11 @@ tools/xenstore/xenstore-control
 tools/xenstore/xenstore-ls
 tools/xenstore/xenstored
 tools/xenstore/xenstored_test
-tools/xenstore/xs_crashme
-tools/xenstore/xs_random
-tools/xenstore/xs_stress
 tools/xenstore/xs_tdb_dump
-tools/xenstore/xs_test
-tools/xenstore/xs_watch_stress
 tools/xentrace/xentrace_setsize
 tools/xentrace/tbctl
 tools/xentrace/xenctx
 tools/xentrace/xentrace
-tools/ocaml-xenstored*
 xen/.banner
 xen/System.map
 xen/arch/arm/asm-offsets.s
@@ -264,13 +228,10 @@ xen/arch/*/efi/boot.c
 xen/arch/*/efi/compat.c
 xen/arch/*/efi/efi.h
 xen/arch/*/efi/runtime.c
-xen/ddb/*
 xen/include/headers.chk
 xen/include/asm
 xen/include/asm-*/asm-offsets.h
 xen/include/compat/*
-xen/include/hypervisor-ifs/arch
-xen/include/linux
 xen/include/public/public
 xen/include/xen/*.new
 xen/include/xen/acm_policy.h
Signature · 1 line
1.7.10.4
#2 lore raw

PATCH 2/4 tools/xenstore: Introduce clients-install target

In reply to Andrew Cooper

...to match the existing 'clients' built target. This is particularly useful when rebuilding the xenstore clients separately for a non-dom0 environment.

CC Ian Campbell <[email protected]>
CC Ian Jackson <[email protected]>
CC Wei Liu <[email protected]>
---
 tools/xenstore/Makefile |    8 ++++++++
 1 file changed, 8 insertions(+)
tools/xenstore/Makefile +8 -0
index 563abd4..cb4ab42 100644
@@ -150,6 +150,14 @@ endif
 	ln -sf xenstore-compat/xs.h  $(DESTDIR)$(INCLUDEDIR)/xs.h
 	ln -sf xenstore-compat/xs_lib.h $(DESTDIR)$(INCLUDEDIR)/xs_lib.h
 
+.PHONY: clients-install
+clients-install: clients
+	$(INSTALL_DIR) $(DESTDIR)$(BINDIR)
+	$(INSTALL_PROG) xenstore $(DESTDIR)$(BINDIR)
+	set -e ; for c in $(CLIENTS) ; do \
+		ln -f $(DESTDIR)$(BINDIR)/xenstore $(DESTDIR)$(BINDIR)/$${c} ; \
+	done
+
 -include $(DEPS)
 
 # never delete any intermediate files.
Signature · 1 line
1.7.10.4
#3 lore raw

PATCH 3/4 tools/xenstore: Only create SBINDIR if it is to be used

In reply to Andrew Cooper
CC Ian Campbell <[email protected]>
CC Ian Jackson <[email protected]>
CC Wei Liu <[email protected]>
---
 tools/xenstore/Makefile |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
tools/xenstore/Makefile +1 -1
index cb4ab42..bff9b25 100644
@@ -126,10 +126,10 @@ tarball: clean
 .PHONY: install
 install: all
 	$(INSTALL_DIR) $(DESTDIR)$(BINDIR)
-	$(INSTALL_DIR) $(DESTDIR)$(SBINDIR)
 	$(INSTALL_DIR) $(DESTDIR)$(INCLUDEDIR)
 	$(INSTALL_DIR) $(DESTDIR)$(INCLUDEDIR)/xenstore-compat
 ifeq ($(XENSTORE_XENSTORED),y)
+	$(INSTALL_DIR) $(DESTDIR)$(SBINDIR)
 	$(INSTALL_DIR) $(DESTDIR)$(XEN_LIB_STORED)
 	$(INSTALL_PROG) xenstored $(DESTDIR)$(SBINDIR)
 endif
Signature · 1 line
1.7.10.4
#4 lore raw

PATCH 4/4 tools/ocaml: Gate building tests on CONFIG_TESTS

In reply to Andrew Cooper
CC David Scott <[email protected]>
CC Ian Campbell <[email protected]>
CC Ian Jackson <[email protected]>
CC Wei Liu <[email protected]>
---
 tools/ocaml/Makefile |    7 +++++--
 1 file changed, 5 insertions(+), 2 deletions(-)
tools/ocaml/Makefile +5 -2
index 8e4ca36..5710a5f 100644
@@ -1,9 +1,12 @@
 XEN_ROOT = $(CURDIR)/../..
 include $(XEN_ROOT)/tools/Rules.mk
 
-SUBDIRS_PROGRAMS = xenstored test
+SUBDIRS := libs
+SUBDIRS += xenstored
 
-SUBDIRS = libs $(SUBDIRS_PROGRAMS)
+ifeq ($(CONFIG_TESTS),y)
+SUBDIRS += test
+endif
 
 .NOTPARALLEL:
 # targets here must be run in order, otherwise we can try
Signature · 1 line
1.7.10.4
Acked-by on v1 4/4
#5 lore raw

Re: [PATCH for-4.5 4/4] tools/ocaml: Gate building tests on CONFIG_TESTS

Looks good to me!

Quoted 31 lines · Andrew Cooper
CC David Scott <[email protected]>
CC Ian Campbell <[email protected]>
CC Ian Jackson <[email protected]>
CC Wei Liu <[email protected]>

---
tools/ocaml/Makefile | 7 +++++--

1 file changed, 5 insertions(+), 2 deletions(-)
tools/ocaml/Makefile +0 -0
index 8e4ca36..5710a5f 100644
@@ -1,9 +1,12 @@

XEN_ROOT = $(CURDIR)/../..
include $(XEN_ROOT)/tools/Rules.mk

tools/ocaml/Makefile +5 -2
-SUBDIRS_PROGRAMS = xenstored test
+SUBDIRS := libs
+SUBDIRS += xenstored
 
-SUBDIRS = libs $(SUBDIRS_PROGRAMS)
+ifeq ($(CONFIG_TESTS),y)
+SUBDIRS += test
+endif

.NOTPARALLEL:

# targets here must be run in order, otherwise we can try
Signature · 1 line
1.7.10.4
#6 lore raw
In reply to Andrew Cooper
Quoted 13 lines · Andrew Cooper

This is a collection of 4 misc build system changes which I have collected while attempting to port Xen-4.5 to a XenServer experimental branch (in the hopes of testing the RCs)

I am requesting a release ack on the grounds of these being minor build system changes, unrelated to code itself.

Andrew Cooper (4):
gitignore: Cleanup
tools/xenstore: Introduce clients-install target tools/xenstore: Only create SBINDIR if it is to be used tools/ocaml: Gate building tests on CONFIG_TESTS

Quoted 4 lines
 .gitignore              |   39 ---------------------------------------
 tools/ocaml/Makefile    |    5 +++--
 tools/xenstore/Makefile |   10 +++++++++-
 3 files changed, 12 insertions(+), 42 deletions(-)

42! You can't go wrong with this kind of patchset!

Quick, check it in before the count number changes!

Quoted 4 lines
Signature · 2 lines
-- 
1.7.10.4
#7 lore raw
Quoted 19 lines · Konrad Rzeszutek Wilk
Quoted 13 lines · Andrew Cooper

This is a collection of 4 misc build system changes which I have collected while attempting to port Xen-4.5 to a XenServer experimental branch (in the hopes of testing the RCs)

I am requesting a release ack on the grounds of these being minor build system changes, unrelated to code itself.

Andrew Cooper (4):
gitignore: Cleanup
tools/xenstore: Introduce clients-install target tools/xenstore: Only create SBINDIR if it is to be used tools/ocaml: Gate building tests on CONFIG_TESTS

Quoted 4 lines
 .gitignore              |   39 ---------------------------------------
 tools/ocaml/Makefile    |    5 +++--
 tools/xenstore/Makefile |   10 +++++++++-
 3 files changed, 12 insertions(+), 42 deletions(-)
Quoted 5 lines

42! You can't go wrong with this kind of patchset!

Quick, check it in before the count number changes!

Acked + Applied.