From patchwork Wed Feb 26 11:33:32 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Anthony PERARD X-Patchwork-Id: 11406273 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 5E4151580 for ; Wed, 26 Feb 2020 11:35:36 +0000 (UTC) Received: from lists.xenproject.org (lists.xenproject.org [192.237.175.120]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 3B7392467B for ; Wed, 26 Feb 2020 11:35:36 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=fail reason="signature verification failed" (1024-bit key) header.d=citrix.com header.i=@citrix.com header.b="eCkNA8nI" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 3B7392467B Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=citrix.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=xen-devel-bounces@lists.xenproject.org Received: from localhost ([127.0.0.1] helo=lists.xenproject.org) by lists.xenproject.org with esmtp (Exim 4.89) (envelope-from ) id 1j6ux5-00014y-NK; Wed, 26 Feb 2020 11:34:07 +0000 Received: from all-amaz-eas1.inumbo.com ([34.197.232.57] helo=us1-amaz-eas2.inumbo.com) by lists.xenproject.org with esmtp (Exim 4.89) (envelope-from ) id 1j6ux4-00014k-VC for xen-devel@lists.xenproject.org; Wed, 26 Feb 2020 11:34:06 +0000 X-Inumbo-ID: e1290dc2-588b-11ea-93fd-12813bfff9fa Received: from esa1.hc3370-68.iphmx.com (unknown [216.71.145.142]) by us1-amaz-eas2.inumbo.com (Halon) with ESMTPS id e1290dc2-588b-11ea-93fd-12813bfff9fa; Wed, 26 Feb 2020 11:33:59 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=citrix.com; s=securemail; t=1582716840; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=TrEmM9S+ZA/KCTjEvmHrc1p0DZcJsOGD1PRU1zC8OWg=; b=eCkNA8nI7wnYJ0eWaZ1EbX1Sq0KjO64NildluY7+iPYoPYvNorS+7O45 RI+0b7/nFeFnPOsW7y8XmAXGz0WbGJQI8JNNj3lgeYSpvxCdfIUKPfI/g +s/XMRhuBOBUKCBRbtcXsrL6cXjRWu/lisHddBr0lS/KM2nLhCU8iG2tA w=; Authentication-Results: esa1.hc3370-68.iphmx.com; dkim=none (message not signed) header.i=none; spf=None smtp.pra=anthony.perard@citrix.com; spf=Pass smtp.mailfrom=anthony.perard@citrix.com; spf=None smtp.helo=postmaster@mail.citrix.com Received-SPF: None (esa1.hc3370-68.iphmx.com: no sender authenticity information available from domain of anthony.perard@citrix.com) identity=pra; client-ip=162.221.158.21; receiver=esa1.hc3370-68.iphmx.com; envelope-from="anthony.perard@citrix.com"; x-sender="anthony.perard@citrix.com"; x-conformance=sidf_compatible Received-SPF: Pass (esa1.hc3370-68.iphmx.com: domain of anthony.perard@citrix.com designates 162.221.158.21 as permitted sender) identity=mailfrom; client-ip=162.221.158.21; receiver=esa1.hc3370-68.iphmx.com; envelope-from="anthony.perard@citrix.com"; x-sender="anthony.perard@citrix.com"; x-conformance=sidf_compatible; x-record-type="v=spf1"; x-record-text="v=spf1 ip4:209.167.231.154 ip4:178.63.86.133 ip4:195.66.111.40/30 ip4:85.115.9.32/28 ip4:199.102.83.4 ip4:192.28.146.160 ip4:192.28.146.107 ip4:216.52.6.88 ip4:216.52.6.188 ip4:162.221.158.21 ip4:162.221.156.83 ip4:168.245.78.127 ~all" Received-SPF: None (esa1.hc3370-68.iphmx.com: no sender authenticity information available from domain of postmaster@mail.citrix.com) identity=helo; client-ip=162.221.158.21; receiver=esa1.hc3370-68.iphmx.com; envelope-from="anthony.perard@citrix.com"; x-sender="postmaster@mail.citrix.com"; x-conformance=sidf_compatible IronPort-SDR: zXbEm6XMazR6Wi9VUSAR+O8oXeVXboFVhBpmQ1rBjmWytPaPet1QYvvJ7K0JftKgZtARAGV2gS t2FvBR4BOh4fMYElwnS2SAGHvxwQ9XFaIYqvfAmeYQrmDzJZMzlMVJ4TypW4AZT/fsWQcRN8/A IBgzmU4XTw+Nw2LSDVhoSUHL0Gir5imGdgOojVMMUnUMLASYJaSkgVzvZLyfVmAvcEqL7HHnB8 jj6Bg4+7km5kJGOkDgzt3aWqQhMHDb7r3mjb89EIesycwHU44foWTm3h4y8drrdT2+2GKFu5R0 GAI= X-SBRS: 2.7 X-MesageID: 13211001 X-Ironport-Server: esa1.hc3370-68.iphmx.com X-Remote-IP: 162.221.158.21 X-Policy: $RELAYED X-IronPort-AV: E=Sophos;i="5.70,487,1574139600"; d="scan'208";a="13211001" From: Anthony PERARD To: Date: Wed, 26 Feb 2020 11:33:32 +0000 Message-ID: <20200226113355.2532224-1-anthony.perard@citrix.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Subject: [Xen-devel] [XEN PATCH v3 00/23] xen: Build system improvements X-BeenThere: xen-devel@lists.xenproject.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Xen developer discussion List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Cc: Kevin Tian , Stefano Stabellini , Julien Grall , Wei Liu , Konrad Rzeszutek Wilk , George Dunlap , Tim Deegan , Ian Jackson , Jan Beulich , Andrew Cooper , Anthony PERARD , Daniel De Graaf , Volodymyr Babchuk , =?utf-8?q?Roger_Pau_Monn?= =?utf-8?q?=C3=A9?= Errors-To: xen-devel-bounces@lists.xenproject.org Sender: "Xen-devel" Patch series available in this git branch: https://xenbits.xen.org/git-http/people/aperard/xen-unstable.git br.build-system-xen-v3 v3: - new patches that do some cleanup or fix issues - have rework most patches, to have better commit message or change the coding style, or fix issues that I've seen. There were some cases where CFLAGS were missing. See patch notes for details - introduce if_changed*. That plenty of new patches on top of what we had in v2. (those changes ignore CONFIG_LTO=y, I'll see about fixing that later) (There is more to come in order to use fixdep from Linux, but that's not ready) v2.1: - some fixes v2: Rather than taking Kbuild and making it work with Xen, the v2 takes the opposite approach of slowly transforming our current build system into Kbuild. That have the advantage of keeping all the feature we have and making the patches much easier to review. Kconfig update is done in an other patch series. Hi, I have work toward building Xen (the hypervisor) with Linux's build system, Kbuild. The main reason for that is to be able to have out-of-tree build. It's annoying when a build fail because of the pvshim. Other benefit is a much faster rebuild, and `make clean` doesn't take ages, and better dependencies to figure out what needs to be rebuild. So, we are not there yet, but the series already contain quite a few improvement and cleanup. More patches are going to be added to the series. Cheers, Anthony PERARD (23): xen/include: remove include of Config.mk Makefile: Fix install-tests xen/build: Remove confusing comment on the %.s:%.S rule xen/build: remove use of AFLAGS-y xen/build: Allow to test clang .include without asm symlink xen/build: Fix section-renaming of libfdt and libelf xen/build: Use obj-y += subdir/ instead of subdir-y xen/build: use $(clean) shorthand for clean targets xen/build: extract clean target from Rules.mk xen/build: run targets csopes,tags,.. without Rules.mk xen/build: make tests in test/ directly xen/build: Move as-option-add to xen/ xen/build: include include/config/auto.conf in main Makefile xen/build: use new $(c_flags) and $(a_flags) instead of $(CFLAGS) xen/build: have the root Makefile generates the CFLAGS xen/build: introduce if_changed and if_changed_rule xen/build: Start using if_changed xen/build: use if_changed on built_in.o xen/build: Use if_changed_rules with %.o:%.c targets xen/build: factorise generation of the linker scripts xen/build: Use if_changed for prelink*.o xen,symbols: rework file symbols selection xen/build: use if_changed to build guest_%.o .gitignore | 1 + Config.mk | 17 -- Makefile | 6 +- xen/Makefile | 257 ++++++++++++++++++++----- xen/Rules.mk | 269 +++++++++++++++------------ xen/arch/arm/Makefile | 33 ++-- xen/arch/arm/Rules.mk | 93 --------- xen/arch/arm/arch.mk | 88 +++++++++ xen/arch/arm/arm32/Makefile | 2 +- xen/arch/arm/arm64/Makefile | 2 +- xen/arch/arm/efi/Makefile | 2 +- xen/arch/x86/Makefile | 55 +++--- xen/arch/x86/Rules.mk | 91 +-------- xen/arch/x86/acpi/Makefile | 2 +- xen/arch/x86/arch.mk | 84 +++++++++ xen/arch/x86/cpu/Makefile | 4 +- xen/arch/x86/efi/Makefile | 9 +- xen/arch/x86/guest/Makefile | 4 +- xen/arch/x86/hvm/Makefile | 6 +- xen/arch/x86/mm/Makefile | 19 +- xen/arch/x86/mm/hap/Makefile | 15 +- xen/arch/x86/mm/shadow/Makefile | 15 +- xen/arch/x86/x86_64/Makefile | 2 +- xen/common/Makefile | 10 +- xen/common/libelf/Makefile | 14 +- xen/common/libfdt/Makefile | 11 +- xen/drivers/Makefile | 14 +- xen/drivers/acpi/Makefile | 6 +- xen/drivers/passthrough/Makefile | 8 +- xen/drivers/passthrough/vtd/Makefile | 2 +- xen/include/Makefile | 4 +- xen/lib/Makefile | 2 +- xen/scripts/Kbuild.include | 134 +++++++++++++ xen/scripts/Makefile.clean | 30 +++ xen/tools/symbols.c | 22 ++- xen/xsm/Makefile | 2 +- xen/xsm/flask/Makefile | 21 ++- xen/xsm/flask/ss/Makefile | 2 +- 38 files changed, 870 insertions(+), 488 deletions(-) create mode 100644 xen/arch/arm/arch.mk create mode 100644 xen/arch/x86/arch.mk create mode 100644 xen/scripts/Makefile.clean