From: "Jan Beulich" Subject: [PATCH] stubdom: allow to build with older tool chain Date: Tue, 13 Dec 2011 10:34:39 +0000 Message-ID: <4EE7384F0200007800067373@nat28.tlf.novell.com> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="=__PartC4EB602F.0__=" Return-path: List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: "xen-devel@lists.xensource.com" List-Id: xen-devel@lists.xenproject.org This is a MIME message. If you are reading this text, you may want to consider changing to a mail reader or gateway that understands how to properly handle MIME multipart messages. --=__PartC4EB602F.0__= Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: quoted-printable Content-Disposition: inline GNU make prior to 3.81 doesn't support $(realpath ...). This fixes a regression introduced in 23368:0f670f5146c8 (the option tested via cc-option-add got interpreted as the argument of the -I compiler option, as its intended argument was blank, and hence the compiler was falsely considered to support *any* option in the pciutils sub-tree). Signed-off-by: Jan Beulich --- a/Config.mk +++ b/Config.mk @@ -4,6 +4,9 @@ ifeq ($(filter /%,$(XEN_ROOT)),) $(error XEN_ROOT must be absolute) endif =20 +# fallback for older make +realpath =3D $(wildcard $(foreach file,$(1),$(shell cd -P $(dir $(file)) = && echo "$$PWD/$(notdir $(file))"))) + -include $(XEN_ROOT)/.config =20 # A debug build of Xen and tools? --- a/stubdom/Makefile +++ b/stubdom/Makefile @@ -158,7 +158,7 @@ $(LIBPCI_STAMPFILE): pciutils-$(XEN_TARG chmod u+w lib/config.h && \ echo '#define PCILIB_VERSION "$(LIBPCI_VERSION)"' >> lib/config.h= && \ ln -sf ../../libpci.config.mak lib/config.mk && \ - $(CROSS_MAKE) CC=3D"$(CC) $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) = -I$(realpath $(MINI_OS)/include)" lib/libpci.a && \ + $(CROSS_MAKE) CC=3D"$(CC) $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) = -I$(call realpath,$(MINI_OS)/include)" lib/libpci.a && \ $(INSTALL_DATA) lib/libpci.a $(CROSS_PREFIX)/$(GNU_TARGET_ARCH)-x= en-elf/lib/ && \ $(INSTALL_DIR) $(CROSS_PREFIX)/$(GNU_TARGET_ARCH)-xen-elf/include= /pci && \ $(INSTALL_DATA) lib/config.h lib/header.h lib/pci.h lib/types.h = $(CROSS_PREFIX)/$(GNU_TARGET_ARCH)-xen-elf/include/pci/ \ --=__PartC4EB602F.0__= Content-Type: text/plain; name="stubdom-realpath-old-make.patch" Content-Transfer-Encoding: quoted-printable Content-Disposition: attachment; filename="stubdom-realpath-old-make.patch" stubdom: allow to build with older tool chain=0A=0AGNU make prior to 3.81 = doesn't support $(realpath ...). This fixes a=0Aregression introduced in = 23368:0f670f5146c8 (the option tested via=0Acc-option-add got interpreted = as the argument of the -I compiler=0Aoption, as its intended argument was = blank, and hence the compiler was=0Afalsely considered to support *any* = option in the pciutils sub-tree).=0A=0ASigned-off-by: Jan Beulich = =0A=0A--- a/Config.mk=0A+++ b/Config.mk=0A@@ -4,6 +4,9 = @@ ifeq ($(filter /%,$(XEN_ROOT)),)=0A $(error XEN_ROOT must be = absolute)=0A endif=0A =0A+# fallback for older make=0A+realpath =3D = $(wildcard $(foreach file,$(1),$(shell cd -P $(dir $(file)) && echo = "$$PWD/$(notdir $(file))")))=0A+=0A -include $(XEN_ROOT)/.config=0A =0A # = A debug build of Xen and tools?=0A--- a/stubdom/Makefile=0A+++ b/stubdom/Ma= kefile=0A@@ -158,7 +158,7 @@ $(LIBPCI_STAMPFILE): pciutils-$(XEN_TARG=0A = chmod u+w lib/config.h && \=0A echo '#define PCILIB_VERSION = "$(LIBPCI_VERSION)"' >> lib/config.h && \=0A ln -sf ../../libpci.confi= g.mak lib/config.mk && \=0A- $(CROSS_MAKE) CC=3D"$(CC) $(TARGET_CPPFLA= GS) $(TARGET_CFLAGS) -I$(realpath $(MINI_OS)/include)" lib/libpci.a && = \=0A+ $(CROSS_MAKE) CC=3D"$(CC) $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) = -I$(call realpath,$(MINI_OS)/include)" lib/libpci.a && \=0A = $(INSTALL_DATA) lib/libpci.a $(CROSS_PREFIX)/$(GNU_TARGET_ARCH)-xen-elf/lib= / && \=0A $(INSTALL_DIR) $(CROSS_PREFIX)/$(GNU_TARGET_ARCH)-xen-elf= /include/pci && \=0A $(INSTALL_DATA) lib/config.h lib/header.h = lib/pci.h lib/types.h $(CROSS_PREFIX)/$(GNU_TARGET_ARCH)-xen-elf/include/pc= i/ \=0A --=__PartC4EB602F.0__= Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel --=__PartC4EB602F.0__=--