Build system tweaks
PATCH 1/1 Build system tweaks
This patch series comes as a result of integrating xen-unstable into the XenServer build system, and trying to remove some of the hacks we have accumulated over time.
The patches are a bit of mix, but none of the defaults are changed. As such, I recommend the series be considered for 4.2.
~Andrew
PATCH 1/1 tools/ocaml: ignore and clean .spot and .spit files
Newer ocaml toolchains generate .spot and .spit files which are ocaml metadata about their respective source files.
Add them to the clean rules as well as the .{hg,git}ignore files.
.gitignore +2 -0
@@ -11,6 +11,8 @@ *.bin *.bak *.tmp +*.spot +*.spit TAGS cscope.files cscope.in.out
.hgignore +2 -0
@@ -15,6 +15,8 @@ .*\.flc$ .*\.orig$ .*\.rej$ +.*\.spot$ +.*\.spit$ .*/a\.out$ .*/Modules\.symvers$ .*/cscope\..*$
tools/ocaml/Makefile.rules +1 -1
@@ -45,7 +45,7 @@ ALL_OCAML_OBJ_SOURCES=$(addsuffix .ml, $ $(call quiet-command, $(OCAMLDEP) $(ALL_OCAML_OBJ_SOURCES) *.mli $o,MLDEP,) clean: $(CLEAN_HOOKS) - $(Q)rm -f .*.d *.o *.so *.a *.cmo *.cmi *.cma *.cmx *.cmxa *.annot $(LIBS) $(PROGRAMS) $(GENERATED_FILES) .ocamldep.make + $(Q)rm -f .*.d *.o *.so *.a *.cmo *.cmi *.cma *.cmx *.cmxa *.annot *.spot *.spit $(LIBS) $(PROGRAMS) $(GENERATED_FILES) .ocamldep.make quiet-command = $(if $(V),$1,@printf " %-8s %s\n" "$2" "$3" && $1)
PATCH 1/1 tools/config: Allow building of components to be controlled from .config
In reply to Andrew CooperFor build systems which build certain Xen components separately, allow certain components to be conditionally built based on .config, rather than always building them.
This patch allows qemu and blktap to be configured in this manner.
config/x86_32.mk +1 -1
@@ -5,7 +5,7 @@ CONFIG_X86_$(XEN_OS) := y CONFIG_HVM := y CONFIG_MIGRATE := y CONFIG_XCUTILS := y -CONFIG_IOEMU := y +CONFIG_IOEMU ?= y CFLAGS += -m32 -march=i686
config/x86_64.mk +1 -1
@@ -6,7 +6,7 @@ CONFIG_COMPAT := y CONFIG_HVM := y CONFIG_MIGRATE := y CONFIG_XCUTILS := y -CONFIG_IOEMU := y +CONFIG_IOEMU ?= y CFLAGS += -m64
tools/Rules.mk +2 -2
@@ -40,9 +40,9 @@ LDLIBS_libxenvchan = $(SHLIB_libxenctrl) SHLIB_libxenvchan = -Wl,-rpath-link=$(XEN_LIBVCHAN) ifeq ($(CONFIG_Linux),y) -LIBXL_BLKTAP = y +LIBXL_BLKTAP ?= y else -LIBXL_BLKTAP = n +LIBXL_BLKTAP ?= n endif ifeq ($(LIBXL_BLKTAP),y)
PATCH 1/1 config: Split debug build from debug symbols
In reply to Andrew CooperRPM based packaging systems expect binaries to have debug symbols which get placed in a separate debuginfo RPM.
Split the concept of a debug build up so that binaries can be built with debugging symbols without having the other gubbins which $(debug) implies, most notibly frame pointers.
Config.mk +2 -1
@@ -11,6 +11,7 @@ realpath = $(wildcard $(foreach file,$(1 # A debug build of Xen and tools? debug ?= y +debug_symbols ?= $(debug) XEN_COMPILE_ARCH ?= $(shell uname -m | sed -e s/i.86/x86_32/ \ -e s/i86pc/x86_32/ -e s/amd64/x86_64/ -e s/arm.*/arm/)
@@ -147,7 +148,7 @@ define buildmakevars2file-closure $(call move-if-changed,$(1).tmp,$(1)) endef -ifeq ($(debug),y) +ifeq ($(debug_symbols),y) CFLAGS += -g endif
PATCH 1/1 xen/makefile: Allow XEN_CHANGESET to be set externally
In reply to Andrew CooperBuild systems which build Xen from a source tarball rather than from a mercurial tree (such as constructing an SRPM then building an RPM from it) will always end up having the changeset set as "unavailable".
This change allows a build system to be able to provide changeset information even when the source is not part of a mercurial repository.
xen/Makefile +2 -1
@@ -13,6 +13,7 @@ export BASEDIR := $(CURDIR) export XEN_ROOT := $(BASEDIR)/.. EFI_MOUNTPOINT ?= /boot/efi +XEN_CHANGESET ?= $(shell hg root &> /dev/null && hg parents --template "{date|date} {rev}:{node|short}" || echo "unavailable" ) .PHONY: default default: build
@@ -107,7 +108,7 @@ include/xen/compile.h: include/xen/compi -e 's/@@version@@/$(XEN_VERSION)/g' \ -e 's/@@subversion@@/$(XEN_SUBVERSION)/g' \ -e 's/@@extraversion@@/$(XEN_EXTRAVERSION)/g' \ - -e 's!@@changeset@@!$(shell ((hg parents --template "{date|date} {rev}:{node|short}" >/dev/null && hg parents --template "{date|date} {rev}:{node|short}") || echo "unavailable") 2>/dev/null)!g' \ + -e 's!@@changeset@@!$(XEN_CHANGESET)!g' \ < include/xen/compile.h.in > [email protected] @grep \" .banner >> [email protected] @grep -v \" .banner
PATCH 1/1 makefile: Use $(abspath) for XEN_ROOT
In reply to Andrew CooperThis patch wraps the assignment of XEN_ROOT in each Makefile with a call to $(abspath) which removes internal parent path references which result from the definition of XEN_ROOT as $(CURDIR)../../ (etc).
For example, it changes the output from
gcc readnotes.o -o readnotes /bind/myrepos/xen-unstable.hg/tools/xcutils/../../tools/libxc/libxenctrl.so /bind/myrepos/xen-unstable.hg/tools/xcutils/../../tools/libxc/libxenguest.so
to
gcc readnotes.o -o readnotes /bind/myrepos/xen-unstable.hg/tools/libxc/libxenctrl.so /bind/myrepos/xen-unstable.hg/tools/libxc/libxenguest.so
which decreases verbosity and increases clarity when reading the build log.
Config.mk +1 -1
@@ -122,7 +122,7 @@ endef define buildmakevars2shellvars export PREFIX="$(PREFIX)"; \ export XEN_SCRIPT_DIR="$(XEN_SCRIPT_DIR)"; \ - export XEN_ROOT="$(XEN_ROOT)" + export XEN_ROOT=$(abspath "$(XEN_ROOT)") endef #
docs/Makefile +1 -1
@@ -1,6 +1,6 @@ #!/usr/bin/make -f -XEN_ROOT=$(CURDIR)/.. +XEN_ROOT=$(abspath $(CURDIR)/..) include $(XEN_ROOT)/Config.mk include $(XEN_ROOT)/docs/Docs.mk
docs/xen-api/Makefile +1 -1
@@ -1,6 +1,6 @@ #!/usr/bin/make -f -XEN_ROOT=$(CURDIR)/../.. +XEN_ROOT=$(abspath $(CURDIR)/../..) include $(XEN_ROOT)/Config.mk include $(XEN_ROOT)/docs/Docs.mk
extras/mini-os/Makefile +1 -1
@@ -4,7 +4,7 @@ # Makefile and a arch.mk. # -export XEN_ROOT = $(CURDIR)/../.. +export XEN_ROOT = $(abspath $(CURDIR)/../..) include $(XEN_ROOT)/Config.mk OBJ_DIR ?= $(CURDIR)
extras/mini-os/arch/ia64/Makefile +1 -1
@@ -2,7 +2,7 @@ # Special makefile for ia64. # -XEN_ROOT = $(CURDIR)/../../../.. +XEN_ROOT = $(abspath $(CURDIR)/../../../..) include $(XEN_ROOT)/Config.mk include ../../Config.mk
extras/mini-os/arch/x86/Makefile +1 -1
@@ -3,7 +3,7 @@ # It's is used for x86_32, x86_32y and x86_64 # -XEN_ROOT = $(CURDIR)/../../../.. +XEN_ROOT = $(abspath $(CURDIR)/../../../..) include $(XEN_ROOT)/Config.mk include ../../Config.mk
stubdom/Makefile +1 -1
@@ -1,4 +1,4 @@ -XEN_ROOT = $(CURDIR)/.. +XEN_ROOT = $(abspath $(CURDIR)/..) MINI_OS = $(XEN_ROOT)/extras/mini-os export XEN_OS=MiniOS
stubdom/c/Makefile +1 -1
@@ -1,4 +1,4 @@ -XEN_ROOT = $(CURDIR)/../.. +XEN_ROOT = $(abspath $(CURDIR)/../..) include $(XEN_ROOT)/Config.mk
stubdom/caml/Makefile +1 -1
@@ -1,4 +1,4 @@ -XEN_ROOT = $(CURDIR)/../.. +XEN_ROOT = $(abspath $(CURDIR)/../..) include $(XEN_ROOT)/Config.mk
stubdom/grub/Makefile +1 -1
@@ -1,4 +1,4 @@ -XEN_ROOT = $(CURDIR)/../.. +XEN_ROOT = $(abspath $(CURDIR)/../..) include $(XEN_ROOT)/Config.mk vpath %.c ../grub-upstream
stubdom/pciutils.patch +1 -1
@@ -38,7 +38,7 @@ diff -urN pciutils-2.2.9.orig/lib/access endif +ifdef PCI_OS_MINIOS -+XEN_ROOT=$(CURDIR)/../../.. ++XEN_ROOT=$(abspath $(CURDIR)/../../..) +include $(XEN_ROOT)/Config.mk +OBJS += minios.o +endif
tools/Makefile +1 -1
@@ -1,4 +1,4 @@ -XEN_ROOT = $(CURDIR)/.. +XEN_ROOT = $(abspath $(CURDIR)/..) include $(XEN_ROOT)/tools/Rules.mk ifneq ($(CONFIG_SYSTEM_LIBAIO),y)
tools/blktap/Makefile +1 -1
@@ -1,4 +1,4 @@ -XEN_ROOT = $(CURDIR)/../.. +XEN_ROOT = $(abspath $(CURDIR)/../..) include $(XEN_ROOT)/tools/Rules.mk SUBDIRS-y :=
tools/blktap/drivers/Makefile +1 -1
@@ -1,4 +1,4 @@ -XEN_ROOT = $(CURDIR)/../../.. +XEN_ROOT = $(abspath $(CURDIR)/../../..) include $(XEN_ROOT)/tools/Rules.mk IBIN = blktapctrl tapdisk
tools/blktap/lib/Makefile +1 -1
@@ -1,4 +1,4 @@ -XEN_ROOT = $(CURDIR)/../../.. +XEN_ROOT = $(abspath $(CURDIR)/../../..) include $(XEN_ROOT)/tools/Rules.mk MAJOR = 3.0
tools/blktap2/Makefile +1 -1
@@ -1,4 +1,4 @@ -XEN_ROOT = $(CURDIR)/../.. +XEN_ROOT = $(abspath $(CURDIR)/../..) include $(XEN_ROOT)/tools/Rules.mk CFLAGS += $(CFLAGS_libxenctrl)
tools/blktap2/control/Makefile +1 -1
@@ -1,4 +1,4 @@ -XEN_ROOT := $(CURDIR)/../../../ +XEN_ROOT := $(abspath $(CURDIR)/../../../) include $(XEN_ROOT)/tools/Rules.mk MAJOR = 1.0
tools/blktap2/drivers/Makefile +1 -1
@@ -1,4 +1,4 @@ -XEN_ROOT=$(CURDIR)/../../.. +XEN_ROOT=$(abspath $(CURDIR)/../../..) BLKTAP_ROOT= .. include $(XEN_ROOT)/tools/Rules.mk
tools/blktap2/include/Makefile +1 -1
@@ -1,4 +1,4 @@ -XEN_ROOT := $(CURDIR)/../../.. +XEN_ROOT := $(abspath $(CURDIR)/../../..) include $(XEN_ROOT)/tools/Rules.mk .PHONY: all
tools/blktap2/lvm/Makefile +1 -1
@@ -1,4 +1,4 @@ -XEN_ROOT = $(CURDIR)/../../.. +XEN_ROOT = $(abspath $(CURDIR)/../../..) BLKTAP_ROOT := .. include $(XEN_ROOT)/tools/Rules.mk
tools/blktap2/vhd/Makefile +1 -1
@@ -1,4 +1,4 @@ -XEN_ROOT=$(CURDIR)/../../.. +XEN_ROOT=$(abspath $(CURDIR)/../../..) BLKTAP_ROOT := .. include $(XEN_ROOT)/tools/Rules.mk
tools/blktap2/vhd/lib/Makefile +1 -1
@@ -1,4 +1,4 @@ -XEN_ROOT=$(CURDIR)/../../../.. +XEN_ROOT=$(abspath $(CURDIR)/../../../..) BLKTAP_ROOT := ../.. include $(XEN_ROOT)/tools/Rules.mk
tools/console/Makefile +1 -1
@@ -1,4 +1,4 @@ -XEN_ROOT=$(CURDIR)/../.. +XEN_ROOT=$(abspath $(CURDIR)/../..) include $(XEN_ROOT)/tools/Rules.mk CFLAGS += -Werror
tools/console/testsuite/Makefile +1 -1
@@ -1,4 +1,4 @@ -XEN_ROOT = $(CURDIR)/../../.. +XEN_ROOT = $(abspath $(CURDIR)/../../..) include $(XEN_ROOT)/tools/Rules.mk LDFLAGS=-static
tools/debugger/gdbsx/Makefile +1 -1
@@ -1,4 +1,4 @@ -XEN_ROOT = $(CURDIR)/../../.. +XEN_ROOT = $(abspath $(CURDIR)/../../..) include ./Rules.mk .PHONY: all
tools/debugger/gdbsx/gx/Makefile +1 -1
@@ -1,4 +1,4 @@ -XEN_ROOT = $(CURDIR)/../../../.. +XEN_ROOT = $(abspath $(CURDIR)/../../../..) include ../Rules.mk GX_OBJS := gx_comm.o gx_main.o gx_utils.o gx_local.o
tools/debugger/gdbsx/xg/Makefile +1 -1
@@ -1,4 +1,4 @@ -XEN_ROOT = $(CURDIR)/../../../.. +XEN_ROOT = $(abspath $(CURDIR)/../../../..) include ../Rules.mk XG_HDRS := xg_public.h
tools/debugger/kdd/Makefile +1 -1
@@ -1,4 +1,4 @@ -XEN_ROOT = $(CURDIR)/../../.. +XEN_ROOT = $(abspath $(CURDIR)/../../..) include $(XEN_ROOT)/tools/Rules.mk CFLAGS += $(CFLAGS_libxenctrl)
tools/debugger/xenitp/Makefile +1 -1
@@ -1,4 +1,4 @@ -XEN_ROOT=$(CURDIR)/../../.. +XEN_ROOT=$(abspath $(CURDIR)/../../..) include $(XEN_ROOT)/tools/Rules.mk #CFLAGS += -Werror -g -O0
tools/examples/Makefile +1 -1
@@ -1,4 +1,4 @@ -XEN_ROOT = $(CURDIR)/../.. +XEN_ROOT = $(abspath $(CURDIR)/../..) include $(XEN_ROOT)/tools/Rules.mk # Init scripts.
tools/firmware/Makefile +1 -1
@@ -1,4 +1,4 @@ -XEN_ROOT = $(CURDIR)/../.. +XEN_ROOT = $(abspath $(CURDIR)/../..) include $(XEN_ROOT)/tools/Rules.mk # hvmloader is a 32-bit protected mode binary.
tools/firmware/etherboot/Makefile +1 -1
@@ -1,6 +1,6 @@ override XEN_TARGET_ARCH = x86_32 -XEN_ROOT = $(CURDIR)/../../.. +XEN_ROOT = $(abspath $(CURDIR)/../../..) include $(XEN_ROOT)/tools/Rules.mk include Config
tools/firmware/hvmloader/Makefile +1 -1
@@ -18,7 +18,7 @@ # Place - Suite 330, Boston, MA 02111-1307 USA. # -XEN_ROOT = $(CURDIR)/../../.. +XEN_ROOT = $(abspath $(CURDIR)/../../..) include $(XEN_ROOT)/tools/firmware/Rules.mk SUBDIRS := acpi
tools/firmware/hvmloader/acpi/Makefile +1 -1
@@ -15,7 +15,7 @@ # Place - Suite 330, Boston, MA 02111-1307 USA. # -XEN_ROOT = $(CURDIR)/../../../.. +XEN_ROOT = $(abspath $(CURDIR)/../../../..) include $(XEN_ROOT)/tools/firmware/Rules.mk C_SRC = build.c dsdt_anycpu.c dsdt_15cpu.c static_tables.c dsdt_anycpu_qemu_xen.c
tools/firmware/rombios/32bit/Makefile +1 -1
@@ -1,4 +1,4 @@ -XEN_ROOT = $(CURDIR)/../../../.. +XEN_ROOT = $(abspath $(CURDIR)/../../../..) include $(XEN_ROOT)/tools/firmware/Rules.mk TARGET = 32bitbios_flat.h
tools/firmware/rombios/32bit/tcgbios/Makefile +1 -1
@@ -1,4 +1,4 @@ -XEN_ROOT = $(CURDIR)/../../../../.. +XEN_ROOT = $(abspath $(CURDIR)/../../../../..) include $(XEN_ROOT)/tools/firmware/Rules.mk TARGET = tcgbiosext.o
tools/firmware/rombios/Makefile +1 -1
@@ -1,4 +1,4 @@ -XEN_ROOT = $(CURDIR)/../../.. +XEN_ROOT = $(abspath $(CURDIR)/../../..) include $(XEN_ROOT)/tools/Rules.mk SUBDIRS := 32bit
tools/flask/Makefile +1 -1
@@ -1,4 +1,4 @@ -XEN_ROOT = $(CURDIR)/../.. +XEN_ROOT = $(abspath $(CURDIR)/../..) include $(XEN_ROOT)/tools/Rules.mk SUBDIRS :=
tools/flask/utils/Makefile +1 -1
@@ -1,4 +1,4 @@ -XEN_ROOT=$(CURDIR)/../../.. +XEN_ROOT=$(abspath $(CURDIR)/../../..) include $(XEN_ROOT)/tools/Rules.mk CFLAGS += -Wall -g -Werror
tools/hotplug/Linux/Makefile +1 -1
@@ -1,4 +1,4 @@ -XEN_ROOT = $(CURDIR)/../../.. +XEN_ROOT = $(abspath $(CURDIR)/../../..) include $(XEN_ROOT)/tools/Rules.mk # Init scripts.
tools/hotplug/Makefile +1 -1
@@ -1,4 +1,4 @@ -XEN_ROOT = $(CURDIR)/../.. +XEN_ROOT = $(abspath $(CURDIR)/../..) include $(XEN_ROOT)/tools/Rules.mk SUBDIRS-y := common
tools/hotplug/NetBSD/Makefile +1 -1
@@ -1,4 +1,4 @@ -XEN_ROOT = $(CURDIR)/../../.. +XEN_ROOT = $(abspath $(CURDIR)/../../..) include $(XEN_ROOT)/tools/Rules.mk # Xen script dir and scripts to go there.
tools/hotplug/common/Makefile +1 -1
@@ -1,4 +1,4 @@ -XEN_ROOT = $(CURDIR)/../../.. +XEN_ROOT = $(abspath $(CURDIR)/../../..) include $(XEN_ROOT)/tools/Rules.mk HOTPLUGPATH="hotplugpath.sh"
tools/include/Makefile +1 -1
@@ -1,4 +1,4 @@ -XEN_ROOT = $(CURDIR)/../.. +XEN_ROOT = $(abspath $(CURDIR)/../..) include $(XEN_ROOT)/tools/Rules.mk .PHONY: all
tools/include/xen-foreign/Makefile +1 -1
@@ -1,4 +1,4 @@ -XEN_ROOT=$(CURDIR)/../../.. +XEN_ROOT=$(abspath $(CURDIR)/../../..) include $(XEN_ROOT)/tools/Rules.mk ROOT = $(XEN_ROOT)/xen/include/public
tools/libaio/src/Makefile +1 -1
@@ -1,4 +1,4 @@ -XEN_ROOT = $(CURDIR)/../../.. +XEN_ROOT = $(abspath $(CURDIR)/../../..) include $(XEN_ROOT)/tools/Rules.mk prefix=$(PREFIX)
tools/libfsimage/Makefile +1 -1
@@ -1,4 +1,4 @@ -XEN_ROOT = $(CURDIR)/../.. +XEN_ROOT = $(abspath $(CURDIR)/../..) include $(XEN_ROOT)/tools/Rules.mk SUBDIRS-y = common ufs reiserfs iso9660 fat zfs
tools/libfsimage/common/Makefile +1 -1
@@ -1,4 +1,4 @@ -XEN_ROOT = $(CURDIR)/../../.. +XEN_ROOT = $(abspath $(CURDIR)/../../..) include $(XEN_ROOT)/tools/libfsimage/Rules.mk MAJOR = 1.0
tools/libfsimage/ext2fs-lib/Makefile +1 -1
@@ -1,4 +1,4 @@ -XEN_ROOT = $(CURDIR)/../../.. +XEN_ROOT = $(abspath $(CURDIR)/../../..) LIB_SRCS-y = ext2fs-lib.c
tools/libfsimage/ext2fs/Makefile +1 -1
@@ -1,4 +1,4 @@ -XEN_ROOT = $(CURDIR)/../../.. +XEN_ROOT = $(abspath $(CURDIR)/../../..) LIB_SRCS-y = fsys_ext2fs.c
tools/libfsimage/fat/Makefile +1 -1
@@ -1,4 +1,4 @@ -XEN_ROOT = $(CURDIR)/../../.. +XEN_ROOT = $(abspath $(CURDIR)/../../..) LIB_SRCS-y = fsys_fat.c
tools/libfsimage/iso9660/Makefile +1 -1
@@ -1,4 +1,4 @@ -XEN_ROOT = $(CURDIR)/../../.. +XEN_ROOT = $(abspath $(CURDIR)/../../..) LIB_SRCS-y = fsys_iso9660.c
tools/libfsimage/reiserfs/Makefile +1 -1
@@ -1,4 +1,4 @@ -XEN_ROOT = $(CURDIR)/../../.. +XEN_ROOT = $(abspath $(CURDIR)/../../..) LIB_SRCS-y = fsys_reiserfs.c
tools/libfsimage/ufs/Makefile +1 -1
@@ -1,4 +1,4 @@ -XEN_ROOT = $(CURDIR)/../../.. +XEN_ROOT = $(abspath $(CURDIR)/../../..) LIB_SRCS-y = fsys_ufs.c
tools/libfsimage/xfs/Makefile +1 -1
@@ -1,4 +1,4 @@ -XEN_ROOT = $(CURDIR)/../../.. +XEN_ROOT = $(abspath $(CURDIR)/../../..) LIB_SRCS-y = fsys_xfs.c
tools/libfsimage/zfs/Makefile +1 -1
@@ -22,7 +22,7 @@ # Use is subject to license terms. # -XEN_ROOT = $(CURDIR)/../../.. +XEN_ROOT = $(abspath $(CURDIR)/../../..) CFLAGS += -DFSYS_ZFS -DFSIMAGE -I$(XEN_ROOT)/tools/libfsimage/zfs LIB_SRCS-y = zfs_lzjb.c zfs_sha256.c zfs_fletcher.c fsi_zfs.c fsys_zfs.c
tools/libvchan/Makefile +1 -1
@@ -2,7 +2,7 @@ # tools/libvchan/Makefile # -XEN_ROOT = $(CURDIR)/../.. +XEN_ROOT = $(abspath $(CURDIR)/../..) include $(XEN_ROOT)/tools/Rules.mk LIBVCHAN_OBJS = init.o io.o
tools/libxc/Makefile +1 -1
@@ -1,4 +1,4 @@ -XEN_ROOT = $(CURDIR)/../.. +XEN_ROOT = $(abspath $(CURDIR)/../..) include $(XEN_ROOT)/tools/Rules.mk MAJOR = 4.2
tools/libxen/Makefile +1 -1
@@ -15,7 +15,7 @@ # License along with this library; if not, write to the Free Software # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA # -XEN_ROOT=$(CURDIR)/../.. +XEN_ROOT=$(abspath $(CURDIR)/../..) include $(XEN_ROOT)/tools/Rules.mk MAJOR = 1.0
tools/libxl/Makefile +1 -1
@@ -2,7 +2,7 @@ # tools/libxl/Makefile # -XEN_ROOT = $(CURDIR)/../.. +XEN_ROOT = $(abspath $(CURDIR)/../..) include $(XEN_ROOT)/tools/Rules.mk MAJOR = 2.0
tools/memshr/Makefile +1 -1
@@ -1,4 +1,4 @@ -XEN_ROOT = $(CURDIR)/../.. +XEN_ROOT = $(abspath $(CURDIR)/../..) include $(XEN_ROOT)/tools/Rules.mk LIBMEMSHR-BUILD := libmemshr.a
tools/misc/Makefile +1 -1
@@ -1,4 +1,4 @@ -XEN_ROOT=$(CURDIR)/../.. +XEN_ROOT=$(abspath $(CURDIR)/../..) include $(XEN_ROOT)/tools/Rules.mk CFLAGS += -Werror
tools/misc/lomount/Makefile +1 -1
@@ -1,4 +1,4 @@ -XEN_ROOT=$(CURDIR)/../../.. +XEN_ROOT=$(abspath $(CURDIR)/../../..) include $(XEN_ROOT)/tools/Rules.mk CFLAGS += -Werror
tools/misc/miniterm/Makefile +1 -1
@@ -1,4 +1,4 @@ -XEN_ROOT:=$(CURDIR)/../../.. +XEN_ROOT:=$(abspath $(CURDIR)/../../..) include $(XEN_ROOT)/tools/Rules.mk TARGET = miniterm
tools/misc/nsplitd/Makefile +1 -1
@@ -1,4 +1,4 @@ -XEN_ROOT := $(CURDIR)/../../.. +XEN_ROOT := $(abspath $(CURDIR)/../../..) include $(XEN_ROOT)/tools/Rules.mk CFILES = $(wildcard *.c)
tools/ocaml/Makefile +1 -1
@@ -1,4 +1,4 @@ -XEN_ROOT = $(CURDIR)/../.. +XEN_ROOT = $(abspath $(CURDIR)/../..) include $(XEN_ROOT)/tools/Rules.mk SUBDIRS_PROGRAMS = xenstored
tools/ocaml/libs/Makefile +1 -1
@@ -1,4 +1,4 @@ -XEN_ROOT = $(CURDIR)/../../.. +XEN_ROOT = $(abspath $(CURDIR)/../../..) include $(XEN_ROOT)/tools/Rules.mk SUBDIRS= \
tools/ocaml/libs/eventchn/Makefile +1 -1
@@ -1,5 +1,5 @@ TOPLEVEL=$(CURDIR)/../.. -XEN_ROOT=$(TOPLEVEL)/../.. +XEN_ROOT=$(abspath $(TOPLEVEL)/../..) include $(TOPLEVEL)/common.make CFLAGS += $(CFLAGS_libxenctrl) $(CFLAGS_xeninclude)
tools/ocaml/libs/mmap/Makefile +1 -1
@@ -1,5 +1,5 @@ TOPLEVEL=$(CURDIR)/../.. -XEN_ROOT=$(TOPLEVEL)/../.. +XEN_ROOT=$(abspath $(TOPLEVEL)/../..) include $(TOPLEVEL)/common.make OBJS = xenmmap
tools/ocaml/libs/xb/Makefile +1 -1
@@ -1,5 +1,5 @@ TOPLEVEL=$(CURDIR)/../.. -XEN_ROOT=$(TOPLEVEL)/../.. +XEN_ROOT=$(abspath $(TOPLEVEL)/../..) include $(TOPLEVEL)/common.make CFLAGS += -I../mmap
tools/ocaml/libs/xc/Makefile +1 -1
@@ -1,5 +1,5 @@ TOPLEVEL=$(CURDIR)/../.. -XEN_ROOT=$(TOPLEVEL)/../.. +XEN_ROOT=$(abspath $(TOPLEVEL)/../..) include $(TOPLEVEL)/common.make CFLAGS += -I../mmap $(CFLAGS_libxenctrl) $(CFLAGS_libxenguest)
tools/ocaml/libs/xl/Makefile +1 -1
@@ -1,5 +1,5 @@ TOPLEVEL=$(CURDIR)/../.. -XEN_ROOT=$(TOPLEVEL)/../.. +XEN_ROOT=$(abspath $(TOPLEVEL)/../..) include $(TOPLEVEL)/common.make # ignore unused generated functions
tools/ocaml/libs/xs/Makefile +1 -1
@@ -1,5 +1,5 @@ TOPLEVEL=$(CURDIR)/../.. -XEN_ROOT=$(TOPLEVEL)/../.. +XEN_ROOT=$(abspath $(TOPLEVEL)/../..) include $(TOPLEVEL)/common.make OCAMLINCLUDE += -I ../xb/
tools/ocaml/xenstored/Makefile +1 -1
@@ -1,4 +1,4 @@ -XEN_ROOT = $(CURDIR)/../../.. +XEN_ROOT = $(abspath $(CURDIR)/../../..) OCAML_TOPLEVEL = $(CURDIR)/.. include $(OCAML_TOPLEVEL)/common.make
tools/pygrub/Makefile +1 -1
@@ -1,5 +1,5 @@ -XEN_ROOT = $(CURDIR)/../.. +XEN_ROOT = $(abspath $(CURDIR)/../..) include $(XEN_ROOT)/tools/Rules.mk .PHONY: all
tools/python/Makefile +1 -1
@@ -1,4 +1,4 @@ -XEN_ROOT = $(CURDIR)/../.. +XEN_ROOT = $(abspath $(CURDIR)/../..) include $(XEN_ROOT)/tools/Rules.mk .PHONY: all
tools/remus/Makefile +1 -1
@@ -1,4 +1,4 @@ -XEN_ROOT=$(CURDIR)/../.. +XEN_ROOT=$(abspath $(CURDIR)/../..) include $(XEN_ROOT)/tools/Rules.mk SCRIPTS = remus
tools/tests/Makefile +1 -1
@@ -1,4 +1,4 @@ -XEN_ROOT = $(CURDIR)/../.. +XEN_ROOT = $(abspath $(CURDIR)/../..) include $(XEN_ROOT)/tools/Rules.mk CFLAGS += $(CFLAGS_libxenctrl)
tools/tests/mce-test/tools/Makefile +1 -1
@@ -1,4 +1,4 @@ -XEN_ROOT=$(CURDIR)/../../../.. +XEN_ROOT=$(abspath $(CURDIR)/../../../..) include $(XEN_ROOT)/tools/Rules.mk CFLAGS += -Werror
tools/tests/mem-sharing/Makefile +1 -1
@@ -1,4 +1,4 @@ -XEN_ROOT=$(CURDIR)/../../.. +XEN_ROOT=$(abspath $(CURDIR)/../../..) include $(XEN_ROOT)/tools/Rules.mk CFLAGS += -Werror
tools/tests/regression/Makefile +1 -1
@@ -5,7 +5,7 @@ # To run this, at least the basic build / development environment must # be installed (gcc, ...) # -XEN_ROOT=$(PWD)/../../.. +XEN_ROOT=$(abspath $(PWD)/../../..) REG_TEST_DIR=$(PWD) PYTHON_VERSIONS=python-2.3 python-2.4 python-2.5 python-2.6 python-3.1
tools/tests/x86_emulator/Makefile +1 -1
@@ -1,5 +1,5 @@ -XEN_ROOT=$(CURDIR)/../../.. +XEN_ROOT=$(abspath $(CURDIR)/../../..) include $(XEN_ROOT)/tools/Rules.mk TARGET := test_x86_emulator
tools/tests/x86_emulator/blowfish.mk +1 -1
@@ -1,5 +1,5 @@ -XEN_ROOT = $(CURDIR)/../../.. +XEN_ROOT = $(abspath $(CURDIR)/../../..) CFLAGS = include $(XEN_ROOT)/tools/Rules.mk
tools/tests/xen-access/Makefile +1 -1
@@ -1,4 +1,4 @@ -XEN_ROOT=$(CURDIR)/../../.. +XEN_ROOT=$(abspath $(CURDIR)/../../..) include $(XEN_ROOT)/tools/Rules.mk CFLAGS += -Werror
tools/vtpm/Makefile +1 -1
@@ -1,4 +1,4 @@ -XEN_ROOT = $(CURDIR)/../.. +XEN_ROOT = $(abspath $(CURDIR)/../..) # Base definitions and rules include $(XEN_ROOT)/tools/vtpm/Rules.mk
tools/vtpm_manager/Makefile +1 -1
@@ -1,4 +1,4 @@ -XEN_ROOT = $(CURDIR)/../.. +XEN_ROOT = $(abspath $(CURDIR)/../..) # Base definitions and rules include $(XEN_ROOT)/tools/vtpm_manager/Rules.mk
tools/vtpm_manager/crypto/Makefile +1 -1
@@ -1,4 +1,4 @@ -XEN_ROOT = $(CURDIR)/../../.. +XEN_ROOT = $(abspath $(CURDIR)/../../..) include $(XEN_ROOT)/tools/vtpm_manager/Rules.mk BIN = libtcpaCrypto.a
tools/vtpm_manager/manager/Makefile +1 -1
@@ -1,4 +1,4 @@ -XEN_ROOT = $(CURDIR)/../../.. +XEN_ROOT = $(abspath $(CURDIR)/../../..) include $(XEN_ROOT)/tools/vtpm_manager/Rules.mk BIN = vtpm_managerd
tools/vtpm_manager/migration/Makefile +1 -1
@@ -1,4 +1,4 @@ -XEN_ROOT = $(CURDIR)/../../.. +XEN_ROOT = $(abspath $(CURDIR)/../../..) include $(XEN_ROOT)/tools/vtpm_manager/Rules.mk VPATH = ../manager
tools/vtpm_manager/tcs/Makefile +1 -1
@@ -1,4 +1,4 @@ -XEN_ROOT = $(CURDIR)/../../.. +XEN_ROOT = $(abspath $(CURDIR)/../../..) include $(XEN_ROOT)/tools/vtpm_manager/Rules.mk BIN = libTCS.a
tools/vtpm_manager/util/Makefile +1 -1
@@ -1,4 +1,4 @@ -XEN_ROOT = $(CURDIR)/../../.. +XEN_ROOT = $(abspath $(CURDIR)/../../..) include $(XEN_ROOT)/tools/vtpm_manager/Rules.mk BIN = libTCGUtils.a
tools/xcutils/Makefile +1 -1
@@ -8,7 +8,7 @@ # Copyright (C) 2005 by Christian Limpach # -XEN_ROOT = $(CURDIR)/../.. +XEN_ROOT = $(abspath $(CURDIR)/../..) include $(XEN_ROOT)/tools/Rules.mk PROGRAMS = xc_restore xc_save readnotes lsevtchn
tools/xenbackendd/Makefile +1 -1
@@ -9,7 +9,7 @@ # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU General Public License for more details. -XEN_ROOT=$(CURDIR)/../.. +XEN_ROOT=$(abspath $(CURDIR)/../..) include $(XEN_ROOT)/tools/Rules.mk CFLAGS += -Werror
tools/xenmon/Makefile +1 -1
@@ -10,7 +10,7 @@ # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU General Public License for more details. -XEN_ROOT=$(CURDIR)/../.. +XEN_ROOT=$(abspath $(CURDIR)/../..) include $(XEN_ROOT)/tools/Rules.mk CFLAGS += -Werror
tools/xenpaging/Makefile +1 -1
@@ -1,4 +1,4 @@ -XEN_ROOT=$(CURDIR)/../.. +XEN_ROOT=$(abspath $(CURDIR)/../..) include $(XEN_ROOT)/tools/Rules.mk CFLAGS += $(CFLAGS_libxenctrl) $(CFLAGS_libxenstore) $(PTHREAD_CFLAGS)
tools/xenpmd/Makefile +1 -1
@@ -1,4 +1,4 @@ -XEN_ROOT=$(CURDIR)/../.. +XEN_ROOT=$(abspath $(CURDIR)/../..) include $(XEN_ROOT)/tools/Rules.mk CFLAGS += -Werror
tools/xenstat/Makefile +1 -1
@@ -1,4 +1,4 @@ -XEN_ROOT = $(CURDIR)/../.. +XEN_ROOT = $(abspath $(CURDIR)/../..) include $(XEN_ROOT)/tools/Rules.mk SUBDIRS :=
tools/xenstat/libxenstat/Makefile +1 -1
@@ -12,7 +12,7 @@ # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU # Lesser General Public License for more details. -XEN_ROOT=$(CURDIR)/../../.. +XEN_ROOT=$(abspath $(CURDIR)/../../..) include $(XEN_ROOT)/tools/Rules.mk prefix=$(PREFIX)
tools/xenstat/xentop/Makefile +1 -1
@@ -10,7 +10,7 @@ # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU General Public License for more details. -XEN_ROOT=$(CURDIR)/../../.. +XEN_ROOT=$(abspath $(CURDIR)/../../..) include $(XEN_ROOT)/tools/Rules.mk ifneq ($(XENSTAT_XENTOP),y)
tools/xenstore/Makefile +1 -1
@@ -1,4 +1,4 @@ -XEN_ROOT=$(CURDIR)/../.. +XEN_ROOT=$(abspath $(CURDIR)/../..) include $(XEN_ROOT)/tools/Rules.mk MAJOR = 3.0
tools/xentrace/Makefile +1 -1
@@ -1,4 +1,4 @@ -XEN_ROOT=$(CURDIR)/../.. +XEN_ROOT=$(abspath $(CURDIR)/../..) include $(XEN_ROOT)/tools/Rules.mk CFLAGS += -Werror
xen/Makefile +1 -1
@@ -10,7 +10,7 @@ export XEN_WHOAMI ?= $(USER) export XEN_DOMAIN ?= $(shell ([ -x /bin/dnsdomainname ] && /bin/dnsdomainname) || ([ -x /bin/domainname ] && /bin/domainname || echo [unknown])) export BASEDIR := $(CURDIR) -export XEN_ROOT := $(BASEDIR)/.. +export XEN_ROOT := $(abspath $(BASEDIR)/..) EFI_MOUNTPOINT ?= /boot/efi XEN_CHANGESET ?= $(shell hg root &> /dev/null && hg parents --template "{date|date} {rev}:{node|short}" || echo "unavailable" )
Re: [PATCH 1 of 5] tools/ocaml: ignore and clean .spot and .spit files
In reply to Andrew CooperAndrew Cooper writes ("[PATCH 1 of 5] tools/ocaml: ignore and clean .spot and .spit files"):
Quoted 6 lines
Newer ocaml toolchains generate .spot and .spit files which are ocaml metadata about their respective source files.
Add them to the clean rules as well as the .{hg,git}ignore files.
Signed-off-by Andrew Cooper <[email protected]>
This is good for 4.2 IMO
Ian.
Re: [PATCH 2 of 5] tools/config: Allow building of components to be controlled from .config
In reply to Andrew CooperAndrew Cooper writes ("[PATCH 2 of 5] tools/config: Allow building of components to be controlled from .config"):
Quoted 5 lines
For build systems which build certain Xen components separately, allow certain components to be conditionally built based on .config, rather than always building them.
This patch allows qemu and blktap to be configured in this manner.
Good for 4.2 IMO.
Re: [PATCH 3 of 5] config: Split debug build from debug symbols
In reply to Andrew CooperAndrew Cooper writes ("[PATCH 3 of 5] config: Split debug build from debug symbols"):
Quoted 6 lines
RPM based packaging systems expect binaries to have debug symbols which get placed in a separate debuginfo RPM.
Split the concept of a debug build up so that binaries can be built with debugging symbols without having the other gubbins which $(debug) implies, most notibly frame pointers.
This looks plausible (for 4.2) but I would like to run a test build and check the results.
Ian.
Re: [PATCH 5 of 5] makefile: Use $(abspath) for XEN_ROOT
In reply to Andrew CooperQuoted 4 lines
Quoted 1 line
Quoted 1 line · Andrew Cooper
This patch wraps the assignment of
XEN_ROOTin eachMakefilewith a call to $(abspath) which removes internal parent path references which result from the definition ofXEN_ROOTas $(CURDIR)../../ (etc).
Except that it's a make 3.81 invention, and so far we support building with make 3.80. So if you want to use it, you'll need to provide a fallback implementation (the placement of which may turn out to be problematic).
Jan
Quoted 16 lines
For example, it changes the output from
gcc readnotes.o -o readnotes /bind/myrepos/xen-unstable.hg/tools/xcutils/../../tools/libxc/libxenctrl.so
/bind/myrepos/xen-unstable.hg/tools/xcutils/../../tools/libxc/libxenguest.so
to
gcc readnotes.o -o readnotes
/bind/myrepos/xen-unstable.hg/tools/libxc/libxenctrl.so
/bind/myrepos/xen-unstable.hg/tools/libxc/libxenguest.sowhich decreases verbosity and increases clarity when reading the build log.
Signed-off-by Andrew Cooper <[email protected]>
Re: [PATCH 5 of 5] makefile: Use $(abspath) for XEN_ROOT
Jan Beulich writes ("Re: [PATCH 5 of 5] makefile: Use $(abspath) for XEN_ROOT"):
Quoted 9 lines
Quoted 4 lines
Quoted 1 line
Quoted 1 line · Andrew Cooper
This patch wraps the assignment of
XEN_ROOTin eachMakefilewith a call to $(abspath) which removes internal parent path references which result from the definition ofXEN_ROOTas $(CURDIR)../../ (etc).Except that it's a make 3.81 invention, and so far we support building with make 3.80. So if you want to use it, you'll need to provide a fallback implementation (the placement of which may turn out to be problematic).
Indeed so. Also this is a cosmetic change which I think can wait for 4.3 at least.
Ian.
Re: [PATCH 4 of 5] xen/makefile: Allow XEN_CHANGESET to be set externally
In reply to Andrew CooperAndrew Cooper writes ("[PATCH 4 of 5] xen/makefile: Allow XEN_CHANGESET to be set externally"):
..
Quoted 12 lines
diff -r
6db5c184a777-rae32690d0d74xen/Makefilexen/Makefile +1
-0@@ -13,6 +13,7 @@ export BASEDIR := $(CURDIR) export XEN_ROOT := $(BASEDIR)/.. EFI_MOUNTPOINT ?= /boot/efi +XEN_CHANGESET ?= $(shell hg root &> /dev/null && hg parents --template "{date|date} {rev}:{node|short}" || echo "unavailable" ) .PHONY: default default: build
xen/Makefile include/xen/compile.h: include/xen/compi · line 114
Quoted 8 lines
xen/Makefile +1
-1@@ -107,7 +108,7 @@ include/xen/compile.h: include/xen/compi -e 's/@@version@@/$(XEN_VERSION)/g' \ -e 's/@@subversion@@/$(XEN_SUBVERSION)/g' \ -e 's/@@extraversion@@/$(XEN_EXTRAVERSION)/g' \ - -e 's!@@changeset@@!$(shell ((hg parents --template "{date|date} {rev}:{node|short}" >/dev/null && hg parents --template "{date|date} {rev}:{node|short}") || echo "unavailable") 2>/dev/null)!g' \ + -e 's!@@changeset@@!$(XEN_CHANGESET)!g' \ < include/xen/compile.h.in > [email protected] @grep \" .banner >> [email protected] @grep -v \" .banner
We need to check how many times, and at which point, this gets executed, when this patch is applied. I think it's OK...
Ian.
Re: [PATCH 5 of 5] makefile: Use $(abspath) for XEN_ROOT
In reply to Jan BeulichQuoted 10 lines · Jan Beulich
Quoted 4 lines
Quoted 1 line
Quoted 1 line · Andrew Cooper
This patch wraps the assignment of
XEN_ROOTin eachMakefilewith a call to $(abspath) which removes internal parent path references which result from the definition ofXEN_ROOTas $(CURDIR)../../ (etc).Except that it's a make 3.81 invention, and so far we support building with make 3.80. So if you want to use it, you'll need to provide a fallback implementation (the placement of which may turn out to be problematic).
Jan
Ah - so it is.
Unfortunately, it appears hard to provide a backwards compatible way of doing this. Best to just forget this patch then, although it would be nice to address this issue somehow in 4.3
~Andrew
Quoted 18 lines
Quoted 17 lines
For example, it changes the output from
gcc readnotes.o -o readnotes /bind/myrepos/xen-unstable.hg/tools/xcutils/../../tools/libxc/libxenctrl.so
/bind/myrepos/xen-unstable.hg/tools/xcutils/../../tools/libxc/libxenguest.so
to
gcc readnotes.o -o readnotes
/bind/myrepos/xen-unstable.hg/tools/libxc/libxenctrl.so
/bind/myrepos/xen-unstable.hg/tools/libxc/libxenguest.sowhich decreases verbosity and increases clarity when reading the build log.
Signed-off-by Andrew Cooper <[email protected]>
Signature · 2 lines
Andrew Cooper - Dom0 Kernel Engineer, Citrix XenServer T: +44 (0)1223 225 900, http://www.citrix.com
Re: [PATCH 4 of 5] xen/makefile: Allow XEN_CHANGESET to be set externally
In reply to Ian JacksonQuoted 23 lines
Quoted 1 line
Quoted 1 line · Ian Jackson
Andrew Cooper writes ("[PATCH 4 of 5] xen/makefile: Allow
XEN_CHANGESETto be set externally"):
..xen/Makefile export BASEDIR := $(CURDIR) · line 16
Quoted 8 lines
diff -r
6db5c184a777-rae32690d0d74xen/Makefilexen/Makefile +1
-0@@ -13,6 +13,7 @@ export BASEDIR := $(CURDIR) export XEN_ROOT := $(BASEDIR)/.. EFI_MOUNTPOINT ?= /boot/efi +XEN_CHANGESET ?= $(shell hg root &> /dev/null && hg parents --template"{date|date} {rev}:{node|short}" || echo "unavailable" )
xen/Makefile include/xen/compile.h: include/xen/compi · line 110
Quoted 8 lines
xen/Makefile +0
-1.PHONY: default default: build@@ -107,7 +108,7 @@ include/xen/compile.h: include/xen/compi -e 's/@@version@@/$(XEN_VERSION)/g' \ -e 's/@@subversion@@/$(XEN_SUBVERSION)/g' \ -e 's/@@extraversion@@/$(XEN_EXTRAVERSION)/g' \ - -e 's!@@changeset@@!$(shell ((hg parents --template "{date|date}{rev}:{node|short}" >/dev/null && hg parents --template "{date|date} {rev}:{node|short}") || echo "unavailable") 2>/dev/null)!g' \
Quoted 7 lines
xen/Makefile include/xen/compile.h: include/xen/compi · line 114
Quoted 4 lines
xen/Makefile +1
-0+ -e 's!@@changeset@@!$(XEN_CHANGESET)!g' \ < include/xen/compile.h.in > [email protected] @grep \" .banner >> [email protected] @grep -v \" .bannerWe need to check how many times, and at which point, this gets executed, when this patch is applied. I think it's OK...
If in doubt, perhaps the better option would be to execute this once unconditionally (via := assignment to a helper variable), or to use := here but frame the assignment with some if construct excluding it to be executed when the changeset was already specified (assuming that an empty specification is pointless, simply checking for it to be non-empty should suffice).
Jan
Re: [PATCH 4 of 5] xen/makefile: Allow XEN_CHANGESET to be set externally
Quoted 29 lines · Jan Beulich
Quoted 23 lines
Quoted 1 line
Quoted 1 line · Ian Jackson
Andrew Cooper writes ("[PATCH 4 of 5] xen/makefile: Allow
XEN_CHANGESETto be set externally"):
..xen/Makefile export BASEDIR := $(CURDIR) · line 16
Quoted 8 lines
diff -r
6db5c184a777-rae32690d0d74xen/Makefilexen/Makefile +1
-0@@ -13,6 +13,7 @@ export BASEDIR := $(CURDIR) export XEN_ROOT := $(BASEDIR)/.. EFI_MOUNTPOINT ?= /boot/efi +XEN_CHANGESET ?= $(shell hg root &> /dev/null && hg parents --template"{date|date} {rev}:{node|short}" || echo "unavailable" )
xen/Makefile include/xen/compile.h: include/xen/compi · line 110
Quoted 8 lines
xen/Makefile +0
-1.PHONY: default default: build@@ -107,7 +108,7 @@ include/xen/compile.h: include/xen/compi -e 's/@@version@@/$(XEN_VERSION)/g' \ -e 's/@@subversion@@/$(XEN_SUBVERSION)/g' \ -e 's/@@extraversion@@/$(XEN_EXTRAVERSION)/g' \ - -e 's!@@changeset@@!$(shell ((hg parents --template "{date|date}{rev}:{node|short}" >/dev/null && hg parents --template "{date|date} {rev}:{node|short}") || echo "unavailable") 2>/dev/null)!g' \
Quoted 6 lines
xen/Makefile include/xen/compile.h: include/xen/compi · line 114
Quoted 4 lines
xen/Makefile +1
-0+ -e 's!@@changeset@@!$(XEN_CHANGESET)!g' \ < include/xen/compile.h.in > [email protected] @grep \" .banner >> [email protected] @grep -v \" .bannerWe need to check how many times, and at which point, this gets executed, when this patch is applied. I think it's OK...
Quoted 9 lines
If in doubt, perhaps the better option would be to execute this once unconditionally (via := assignment to a helper variable), or to use := here but frame the assignment with some if construct excluding it to be executed when the changeset was already specified (assuming that an empty specification is pointless, simply checking for it to be non-empty should suffice).
Jan
The rule looks like:
# compile.h contains dynamic build info. Rebuilt on every 'make' invocation.
include/xen/compile.h: include/xen/compile.h.in .banner
@sed -e 's/@@date@@/$(shell LC_ALL=C date)/g' \
So it should only be executed once (unless someone is messing around deleting compile.h)
Having said that, even if it were executed more than once, there is no reasonable circumstance during which the contents of XEN_CHANGESET should change.
Signature · 2 lines
Andrew Cooper - Dom0 Kernel Engineer, Citrix XenServer T: +44 (0)1223 225 900, http://www.citrix.com
Ian Campbell
AppliedRe: [PATCH 2 of 5] tools/config: Allow building of components to be controlled from .config
In reply to Ian JacksonQuoted 8 lines · Ian Jackson
Andrew Cooper writes ("[PATCH 2 of 5]
tools/config: Allow building of components to be controlled from .config"):Quoted 5 lines
For build systems which build certain Xen components separately, allow certain components to be conditionally built based on .config, rather than always building them.
This patch allows qemu and blktap to be configured in this manner.
Acked-by Ian Jackson <[email protected]>
Applied.
Re: [PATCH 3 of 5] config: Split debug build from debug symbols
In reply to Ian JacksonQuoted 10 lines · Ian Jackson
Andrew Cooper writes ("[PATCH 3 of 5] config: Split debug build from debug symbols"):
Quoted 6 lines
RPM based packaging systems expect binaries to have debug symbols which get placed in a separate debuginfo RPM.
Split the concept of a debug build up so that binaries can be built with debugging symbols without having the other gubbins which $(debug) implies, most notibly frame pointers.
This looks plausible (for 4.2) but I would like to run a test build and check the results.
OK, I'll wait for you to do that before applying.
Ian.
Re: [PATCH 1 of 5] tools/ocaml: ignore and clean .spot and .spit files
In reply to Ian JacksonQuoted 11 lines · Ian Jackson
Andrew Cooper writes ("[PATCH 1 of 5]
tools/ocaml: ignore and clean .spot and .spit files"):Quoted 6 lines
Newer ocaml toolchains generate .spot and .spit files which are ocaml metadata about their respective source files.
Add them to the clean rules as well as the .{hg,git}ignore files.
Signed-off-by Andrew Cooper <[email protected]>Acked-by Ian Jackson <[email protected]>This is good for 4.2 IMO
Agreed, applied.
Re: [PATCH 4 of 5] xen/makefile: Allow XEN_CHANGESET to be set externally
In reply to Andrew CooperAndrew Cooper writes ("Re: [PATCH 4 of 5] xen/makefile: Allow XEN_CHANGESET to be set externally"):
Quoted 4 lines
# compile.h contains dynamic build info. Rebuilt on every 'make' invocation.
include/xen/compile.h:include/xen/compile.h.in.banner
Quoted 8 lines
@sed -e 's/@@date@@/$(shell LC_ALL=C date)/g' \So it should only be executed once (unless someone is messing around deleting
compile.h)Having said that, even if it were executed more than once, there is no reasonable circumstance during which the contents of
XEN_CHANGESETshould change.
Uh, "hg up <changeset>", surely ?
Ian.
Re: [PATCH 4 of 5] xen/makefile: Allow XEN_CHANGESET to be set externally
Quoted 10 lines · Ian Jackson
Andrew Cooper writes ("Re: [PATCH 4 of 5] xen/makefile: Allow
XEN_CHANGESETto be set externally"):Quoted 9 lines
# compile.h contains dynamic build info. Rebuilt on every 'make' invocation.
include/xen/compile.h:include/xen/compile.h.in.banner@sed -e 's/@@date@@/$(shell LC_ALL=C date)/g' \So it should only be executed once (unless someone is messing around deleting
compile.h)
Quoted 6 lines
Quoted 3 lines
Having said that, even if it were executed more than once, there is no reasonable circumstance during which the contents of
XEN_CHANGESETshould change.Uh, "hg up <changeset>", surely ?
Ian.
Sure, but compile.h is regenerated on every invocation of Make
I should have stated that during an individual build there are no reasonable circumstances. Running an hg update during a build is asking for trouble.
Signature · 2 lines
Andrew Cooper - Dom0 Kernel Engineer, Citrix XenServer T: +44 (0)1223 225 900, http://www.citrix.com
Re: [PATCH 3 of 5] config: Split debug build from debug symbols
In reply to Andrew CooperAndrew Cooper writes ("[Xen-devel] [PATCH 3 of 5] config: Split debug build from debug symbols"):
Quoted 8 lines
RPM based packaging systems expect binaries to have debug symbols which get placed in a separate debuginfo RPM.
Split the concept of a debug build up so that binaries can be built with debugging symbols without having the other gubbins which $(debug) implies, most notibly frame pointers.
Signed-off-by Andrew Cooper <[email protected]>
I build tested this and it seemed not to break.
Ian.