From: "Jan Beulich" Subject: [PATCH] fix qemu building with older make Date: Mon, 28 Jul 2014 10:25:20 +0100 Message-ID: <53D6332002000078000267C3@mail.emea.novell.com> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="=__PartEAD86210.1__=" Return-path: Received: from mail6.bemta3.messagelabs.com ([195.245.230.39]) by lists.xen.org with esmtp (Exim 4.72) (envelope-from ) id 1XBhBM-0005DT-D4 for xen-devel@lists.xenproject.org; Mon, 28 Jul 2014 09:25:24 +0000 List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: xen-devel Cc: George Dunlap , Ian Campbell , Keir Fraser , Ian Jackson , Tim Deegan 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. --=__PartEAD86210.1__= Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: quoted-printable Content-Disposition: inline The $(or ) builtin (uses introduced by commits ffbf089357 and 8962a8f951) is supported only from make 3.81 onwards, yet we claim to only require make 3.80. Introduce a good enough fallback. Signed-off-by: Jan Beulich --- a/Config.mk +++ b/Config.mk @@ -12,6 +12,7 @@ space :=3D $(empty) $(empty) =20 # fallback for older make realpath =3D $(wildcard $(foreach file,$(1),$(shell cd -P $(dir $(file)) = && echo "$$PWD/$(notdir $(file))"))) +or =3D $(if $(strip $(1)),$(1),$(if $(strip $(2)),$(2),$(if $(strip = $(3)),$(3),$(if $(strip $(4)),$(4))))) =20 -include $(XEN_ROOT)/.config =20 @@ -266,11 +267,11 @@ QEMU_TRADITIONAL_REVISION ?=3D d0395cc49b2 # QEMU_UPSTREAM_LOC ?=3D `pwd`/$(XEN_ROOT)/../qemu-xen.git =20 # Defaults for subtree locations -QEMU_TRADITIONAL_LOC ?=3D $(or $(wildcard $(QEMU_TRADITIONAL_INTREE)),\ - $(QEMU_TRADITIONAL_URL)) - -QEMU_UPSTREAM_LOC ?=3D $(or $(wildcard $(QEMU_UPSTREAM_INTREE)),\ - $(QEMU_UPSTREAM_URL)) +QEMU_TRADITIONAL_LOC ?=3D $(call or,$(wildcard $(QEMU_TRADITIONAL_INTREE))= ,\ + $(QEMU_TRADITIONAL_URL)) + +QEMU_UPSTREAM_LOC ?=3D $(call or,$(wildcard $(QEMU_UPSTREAM_INTREE)),\ + $(QEMU_UPSTREAM_URL)) =20 # Short answer -- do not enable this unless you know what you are # doing and are prepared for some pain. --=__PartEAD86210.1__= Content-Type: text/plain; name="make-or-fallback.patch" Content-Transfer-Encoding: quoted-printable Content-Disposition: attachment; filename="make-or-fallback.patch" fix qemu building with older make=0A=0AThe $(or ) builtin (uses introduced = by commits ffbf089357 and=0A8962a8f951) is supported only from make 3.81 = onwards, yet we claim to=0Aonly require make 3.80. Introduce a good enough = fallback.=0A=0ASigned-off-by: Jan Beulich =0A=0A--- = a/Config.mk=0A+++ b/Config.mk=0A@@ -12,6 +12,7 @@ space :=3D $(empty) = $(empty)=0A =0A # fallback for older make=0A realpath =3D $(wildcard = $(foreach file,$(1),$(shell cd -P $(dir $(file)) && echo "$$PWD/$(notdir = $(file))")))=0A+or =3D $(if $(strip $(1)),$(1),$(if $(strip = $(2)),$(2),$(if $(strip $(3)),$(3),$(if $(strip $(4)),$(4)))))=0A =0A = -include $(XEN_ROOT)/.config=0A =0A@@ -266,11 +267,11 @@ QEMU_TRADITIONAL_R= EVISION ?=3D d0395cc49b2=0A # QEMU_UPSTREAM_LOC ?=3D `pwd`/$(XEN_ROOT)/../q= emu-xen.git=0A =0A # Defaults for subtree locations=0A-QEMU_TRADITIONAL_LOC= ?=3D $(or $(wildcard $(QEMU_TRADITIONAL_INTREE)),\=0A- = $(QEMU_TRADITIONAL_URL))=0A-=0A-QEMU_UPSTREAM_LOC ?=3D $(or $(wildcard = $(QEMU_UPSTREAM_INTREE)),\=0A- $(QEMU_UPSTREAM_URL))= =0A+QEMU_TRADITIONAL_LOC ?=3D $(call or,$(wildcard $(QEMU_TRADITIONAL_INTRE= E)),\=0A+ $(QEMU_TRADITIONAL_URL))=0A+=0A+= QEMU_UPSTREAM_LOC ?=3D $(call or,$(wildcard $(QEMU_UPSTREAM_INTREE)),\=0A+ = $(QEMU_UPSTREAM_URL))=0A =0A # Short answer = -- do not enable this unless you know what you are=0A # doing and are = prepared for some pain.=0A --=__PartEAD86210.1__= 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.xen.org http://lists.xen.org/xen-devel --=__PartEAD86210.1__=--