Misc build system tweaks
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
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.
--- .gitignore | 39 --------------------------------------- 1 file changed, 39 deletions(-)
.gitignore +0 -39
@@ -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
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.
--- tools/xenstore/Makefile | 8 ++++++++ 1 file changed, 8 insertions(+)
tools/xenstore/Makefile +8 -0
@@ -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
PATCH 3/4 tools/xenstore: Only create SBINDIR if it is to be used
In reply to Andrew Cooper--- tools/xenstore/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
tools/xenstore/Makefile +1 -1
@@ -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
PATCH 4/4 tools/ocaml: Gate building tests on CONFIG_TESTS
In reply to Andrew Cooper--- tools/ocaml/Makefile | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-)
tools/ocaml/Makefile +5 -2
@@ -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
Re: [PATCH for-4.5 4/4] tools/ocaml: Gate building tests on CONFIG_TESTS
Looks good to me!
Quoted 31 lines · Andrew Cooper
Signed-off-by Andrew Cooper <[email protected]>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@@ -1,9 +1,12 @@
XEN_ROOT= $(CURDIR)/../..
include $(XEN_ROOT)/tools/Rules.mktools/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 trySignature · 1 line
1.7.10.4
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 targettools/xenstore: Only create SBINDIR if it is to be usedtools/ocaml: Gate building tests onCONFIG_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
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 targettools/xenstore: Only create SBINDIR if it is to be usedtools/ocaml: Gate building tests onCONFIG_TESTSQuoted 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!
Released-Acked-by Konrad Rzeszutek Wilk <[email protected]>
Acked + Applied.