From nobody Fri Nov 29 14:31:07 2024 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of lists.xenproject.org designates 192.237.175.120 as permitted sender) client-ip=192.237.175.120; envelope-from=xen-devel-bounces@lists.xenproject.org; helo=lists.xenproject.org; Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of lists.xenproject.org designates 192.237.175.120 as permitted sender) smtp.mailfrom=xen-devel-bounces@lists.xenproject.org; dmarc=pass(p=reject dis=none) header.from=citrix.com ARC-Seal: i=1; a=rsa-sha256; t=1637848040; cv=none; d=zohomail.com; s=zohoarc; b=b7j5MCmPH+1q461qe9q6c6IbHLZkOIR8ZjgUhE+5bQcCF3sqGZG0+NIK/5T8vAz5mPJHFutEN//fczxiwBiVagBDufH9ND5j4/WY2e5CAzUlof6lb1MEesvoemcPpYzwRb2vR6JdR+hr4T/zhYMRS8w5O4kkkiycIJ5cDwt1UmY= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1637848040; h=Content-Type:Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:To; bh=0FaChPc13BX1pbPUP9MkqvlRoV3Xz8e+3X+Tw1IfGFk=; b=EFQZsUM5Z7X9+vHBXFh+QlwEO5ie3CTBxJ5p5dXrn+WhkKrRdjHjZmWpqnbSZAGjI1IpSHuEaf7mBUG3cdQmQQdcTwuvioS0TiYObNid9SiZ4PCefOohLzg6Xya9lcOzKUl0eSPDKz3KSQf/nSiF23WyrcwbkA2il945hKY4F6g= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of lists.xenproject.org designates 192.237.175.120 as permitted sender) smtp.mailfrom=xen-devel-bounces@lists.xenproject.org; dmarc=pass header.from= (p=reject dis=none) Return-Path: Received: from lists.xenproject.org (lists.xenproject.org [192.237.175.120]) by mx.zohomail.com with SMTPS id 1637848040332147.57465084768137; Thu, 25 Nov 2021 05:47:20 -0800 (PST) Received: from list by lists.xenproject.org with outflank-mailman.231237.400086 (Exim 4.92) (envelope-from ) id 1mqF5T-0006MZ-K1; Thu, 25 Nov 2021 13:46:55 +0000 Received: by outflank-mailman (output) from mailman id 231237.400086; Thu, 25 Nov 2021 13:46:55 +0000 Received: from localhost ([127.0.0.1] helo=lists.xenproject.org) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1mqF5T-0006M4-Be; Thu, 25 Nov 2021 13:46:55 +0000 Received: by outflank-mailman (input) for mailman id 231237; Thu, 25 Nov 2021 13:46:54 +0000 Received: from se1-gles-sth1-in.inumbo.com ([159.253.27.254] helo=se1-gles-sth1.inumbo.com) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1mqF0l-0007NX-Oa for xen-devel@lists.xenproject.org; Thu, 25 Nov 2021 13:42:03 +0000 Received: from esa3.hc3370-68.iphmx.com (esa3.hc3370-68.iphmx.com [216.71.145.155]) by se1-gles-sth1.inumbo.com (Halon) with ESMTPS id 77a09a08-4df5-11ec-9787-a32c541c8605; Thu, 25 Nov 2021 14:42:02 +0100 (CET) X-Outflank-Mailman: Message body and most headers restored to incoming version X-BeenThere: xen-devel@lists.xenproject.org List-Id: Xen developer discussion List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Errors-To: xen-devel-bounces@lists.xenproject.org Precedence: list Sender: "Xen-devel" X-Inumbo-ID: 77a09a08-4df5-11ec-9787-a32c541c8605 DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=citrix.com; s=securemail; t=1637847722; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=MduM0JsgkZBJMQ1EP3iSTUZBDit7f0U+sXntkhT22ek=; b=DLCICTHY4abreI3Czy4uk6HR/o4xp1rrshPDjv98lrQFpSQl4Y2wfDfs VtgHuo2SQcs7h5OH7YGQvN2ZqO5TD4uib8eOvXeuiaoeBtIvYfXJmIQcq SJ3C4iF9kr6YrWGsiZME6MRRk813MrV8ZG88WDFY7tez5GsijhW3uYETE I=; Authentication-Results: esa3.hc3370-68.iphmx.com; dkim=none (message not signed) header.i=none IronPort-SDR: 2alyoFq9MpGyovU7QSRTAi0cWX1WRc7Ul8O5oT+PZWjdafACqEPvo13hL1OxMZb8ig94QVh9Cn ddTGi1gC+SJgTvC1x2gb5nhuYpT8vn6CCQQQhT/wf8VPPItvIf7C+JLPkbCpX9qd0NQFwyu+sU 0fn0MhWpksI69vaqGXvZSTe2tBiCpjQ9Hor9KsWH3HjShQHW3uyxcZnz95wprdU8CybGrzWmb1 PkMbViXfUsQw8a8Lz8CVoafyOFc9Mwce7QFFNT+xSOzmZ7oscYs0D/GFUCBVJDqryhC92LVdRN c3Q35tZKq85aqZ8yovtaLvm6 X-SBRS: 5.1 X-MesageID: 58637888 X-Ironport-Server: esa3.hc3370-68.iphmx.com X-Remote-IP: 162.221.156.83 X-Policy: $RELAYED IronPort-Data: A9a23:Bkdzt6zPDLc8ypZ724l6t+d6wCrEfRIJ4+MujC+fZmUNrF6WrkUEm 2RJXW+OaK2La2fxetx2Pd+yp0oAupPdx4djHVdqpCAxQypGp/SeCIXCJC8cHc8zwu4v7q5Dx 59DAjUVBJlsFhcwnvopW1TYhSEUOZugH9IQM8aZfHAuLeNYYH1500s6wrRk2tQAbeWRWGthh /uj+6UzB3f9s9JEGjp8B3Wr8U4HUFza4Vv0j3RmDRx5lAa2e0o9VfrzEZqZPXrgKrS4K8bhL wr1IBNVyUuCl/slIovNfr8W6STmSJaKVeSFoiI+t6RPHnGuD8H9u0o2HKN0VKtZt9mGt8Fpy /IXuMGwcBkOeYjHpeYyXBBpPxgraMWq+JefSZS+mcmazkmAeHrw2fR+SkoxOOX0+M4uXzsIr 6ZBbmlQMFbT3Ipaw5riIgVors0lMMnsOpJZonx6xCvVJf0nXYrCU+PB4towMDIY25AQRqmON 5pxhTxHcAbsSkFuanItEb0Zrt6QonraUzEF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qu81IAILvjQZ3mFhObYaFV33z6ZCLLd5NLlMrM nmfg6+b3+ZQwU/LcnwSE3nR3LUC2cRS6U4SlFJSdU6Untflh+Ms2EwD+Ds6eQ1Z0xFb3r8hI WNsLUB0ef2D8joAaBKvhIxw99Wt3CGkx3E= IronPort-HdrOrdr: A9a23:08yYPKiyiFTPg/Dvpog7n7Ltq3BQXtwji2hC6mlwRA09TySZ// rAoB19726StN9xYgBYpTnuAsi9qB/nmKKdpLNhX4tKPzOW3FdATrsD0WKK+VSJcEfDH6xmpM JdmsBFebvN5DNB4/oSjjPVLz9Z+qjlzJyV X-IronPort-AV: E=Sophos;i="5.87,263,1631592000"; d="scan'208";a="58637888" From: Anthony PERARD To: CC: Anthony PERARD , Anthony PERARD , Stefano Stabellini , Julien Grall , Volodymyr Babchuk , Bertrand Marquis , Andrew Cooper , George Dunlap , Ian Jackson , Jan Beulich , Wei Liu , =?UTF-8?q?Roger=20Pau=20Monn=C3=A9?= Subject: [XEN PATCH v8 40/47] RFC, no-VPATH: prepend $(srctree) to source prerequisite Date: Thu, 25 Nov 2021 13:39:59 +0000 Message-ID: <20211125134006.1076646-41-anthony.perard@citrix.com> X-Mailer: git-send-email 2.34.0 In-Reply-To: <20211125134006.1076646-1-anthony.perard@citrix.com> References: <20211125134006.1076646-1-anthony.perard@citrix.com> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable X-ZohoMail-DKIM: pass (identity @citrix.com) X-ZM-MESSAGEID: 1637848041058100005 Content-Type: text/plain; charset="utf-8" From: Anthony PERARD Prefix many prerequisite with $(srctree) or replace $(src) with $(srcdir) to not have to rely on VPATH=3D$(srctree). Signed-off-by: Anthony PERARD --- xen/arch/arm/Makefile | 2 +- xen/arch/x86/Makefile | 4 ++-- xen/arch/x86/boot/Makefile | 2 +- xen/arch/x86/efi/Makefile | 2 +- xen/build.mk | 6 +++--- xen/include/Makefile | 2 +- 6 files changed, 9 insertions(+), 9 deletions(-) diff --git a/xen/arch/arm/Makefile b/xen/arch/arm/Makefile index ae7a2f907540..8b340affbe38 100644 --- a/xen/arch/arm/Makefile +++ b/xen/arch/arm/Makefile @@ -111,7 +111,7 @@ $(TARGET)-syms: $(objtree)/prelink.o $(obj)/xen.lds .PHONY: include include: =20 -$(obj)/xen.lds: $(src)/xen.lds.S FORCE +$(obj)/xen.lds: $(srcdir)/xen.lds.S FORCE $(call if_changed,cpp_lds_S) =20 $(obj)/dtb.o: $(patsubst "%",%,$(CONFIG_DTB_FILE)) diff --git a/xen/arch/x86/Makefile b/xen/arch/x86/Makefile index 5fb7f1408768..9e5195f58d3b 100644 --- a/xen/arch/x86/Makefile +++ b/xen/arch/x86/Makefile @@ -236,7 +236,7 @@ include: $(objtree)/arch/x86/include/asm/asm-macros.h =20 $(obj)/asm-macros.i: CFLAGS-y +=3D -D__ASSEMBLY__ -P =20 -$(objtree)/arch/x86/include/asm/asm-macros.h: $(obj)/asm-macros.i $(src)/M= akefile +$(objtree)/arch/x86/include/asm/asm-macros.h: $(obj)/asm-macros.i $(srcdir= )/Makefile $(call filechk,asm-macros.h) =20 define filechk_asm-macros.h @@ -254,7 +254,7 @@ define filechk_asm-macros.h endef =20 $(obj)/efi.lds: AFLAGS-y +=3D -DEFI -$(obj)/xen.lds $(obj)/efi.lds: $(src)/xen.lds.S FORCE +$(obj)/xen.lds $(obj)/efi.lds: $(srcdir)/xen.lds.S FORCE $(call if_changed_dep,cpp_lds_S) =20 clean-files :=3D \ diff --git a/xen/arch/x86/boot/Makefile b/xen/arch/x86/boot/Makefile index 4fc6b1d8ffc2..ccba2e281dfc 100644 --- a/xen/arch/x86/boot/Makefile +++ b/xen/arch/x86/boot/Makefile @@ -47,7 +47,7 @@ $(head-objs): %.S: %.bin $(OBJCOPY) -O binary -R .got.plt $< $@ =20 =20 -%.lnk: %.o $(src)/build32.lds +%.lnk: %.o $(srcdir)/build32.lds $(LD) $(LDFLAGS_DIRECT) -N -T $(filter %.lds,$^) -o $@ $< =20 clean-files :=3D cmdline.S reloc.S *.lnk *.bin diff --git a/xen/arch/x86/efi/Makefile b/xen/arch/x86/efi/Makefile index 81fda12a70ea..7af96629294a 100644 --- a/xen/arch/x86/efi/Makefile +++ b/xen/arch/x86/efi/Makefile @@ -3,7 +3,7 @@ include $(srctree)/common/efi/efi_common.mk quiet_cmd_objcopy_o_ihex =3D OBJCOPY $@ cmd_objcopy_o_ihex =3D $(OBJCOPY) -I ihex -O binary $< $@ =20 -$(obj)/%.o: $(src)/%.ihex FORCE +$(obj)/%.o: $(srcdir)/%.ihex FORCE $(call if_changed,objcopy_o_ihex) =20 $(obj)/boot.init.o: $(obj)/buildid.o diff --git a/xen/build.mk b/xen/build.mk index 65d8dbc13828..7b48b7eb1404 100644 --- a/xen/build.mk +++ b/xen/build.mk @@ -8,7 +8,7 @@ define cmd_banner mv -f $@.tmp $@ endef =20 -.banner: tools/xen.flf FORCE +.banner: $(srctree)/tools/xen.flf FORCE $(call if_changed,banner) =20 targets +=3D .banner @@ -33,14 +33,14 @@ define cmd_compile.h fi endef =20 -include/xen/compile.h: include/xen/compile.h.in .banner FORCE +include/xen/compile.h: $(srctree)/include/xen/compile.h.in .banner FORCE @cat .banner $(call if_changed,compile.h) =20 targets +=3D include/xen/compile.h =20 -include $(wildcard .asm-offsets.s.d) -asm-offsets.s: arch/$(TARGET_ARCH)/$(TARGET_SUBARCH)/asm-offsets.c +asm-offsets.s: $(srctree)/arch/$(TARGET_ARCH)/$(TARGET_SUBARCH)/asm-offset= s.c $(CC) $(call cpp_flags,$(c_flags)) -S -g0 -o $@.new -MQ $@ $< $(call move-if-changed,$@.new,$@) =20 diff --git a/xen/include/Makefile b/xen/include/Makefile index a3977a8bfccd..9fbe9f0de772 100644 --- a/xen/include/Makefile +++ b/xen/include/Makefile @@ -52,7 +52,7 @@ $(obj)/compat/%.h: $(obj)/compat/%.i $(srcdir)/Makefile $= (srctree)/tools/compat- $(obj)/compat/%.i: $(obj)/compat/%.c $(srcdir)/Makefile $(CPP) $(filter-out -Wa$(comma)% -include %/include/xen/config.h,$(XEN_CF= LAGS)) $(cppflags-y) -o $@ $< =20 -$(obj)/compat/%.c: $(src)/public/%.h $(srcdir)/xlat.lst $(srcdir)/Makefile= $(srctree)/tools/compat-build-source.py +$(obj)/compat/%.c: $(srcdir)/public/%.h $(srcdir)/xlat.lst $(srcdir)/Makef= ile $(srctree)/tools/compat-build-source.py mkdir -p $(@D) $(PYTHON) $(srctree)/tools/compat-build-source.py $(srcdir)/xlat.lst <$< = >$@.new mv -f $@.new $@ --=20 Anthony PERARD