From patchwork Fri Jan 17 10:53:46 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Anthony PERARD X-Patchwork-Id: 11338769 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 4172A17EA for ; Fri, 17 Jan 2020 10:55:29 +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 1E0BB2082F for ; Fri, 17 Jan 2020 10:55:29 +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="ZQ0Tb0tq" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 1E0BB2082F 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 1isPGV-0004ra-UR; Fri, 17 Jan 2020 10:54:11 +0000 Received: from us1-rack-iad1.inumbo.com ([172.99.69.81]) by lists.xenproject.org with esmtp (Exim 4.89) (envelope-from ) id 1isPGU-0004rV-LS for xen-devel@lists.xenproject.org; Fri, 17 Jan 2020 10:54:10 +0000 X-Inumbo-ID: ab61b1e6-3917-11ea-b833-bc764e2007e4 Received: from esa6.hc3370-68.iphmx.com (unknown [216.71.155.175]) by us1-rack-iad1.inumbo.com (Halon) with ESMTPS id ab61b1e6-3917-11ea-b833-bc764e2007e4; Fri, 17 Jan 2020 10:54:01 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=citrix.com; s=securemail; t=1579258441; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=ki2V65V0svazw26nGqu3qSzzpqihu67qyh2l2jYb0pA=; b=ZQ0Tb0tq+WK4vc/DEk0OC2lJykVTV/zQOS9PESiHcKkgN/hAf2RINeZN N8mgV5pRBokqnqwQv+yUu/9OUPOBPd5Wzz9RT8VvzbR3pAcUEwm1I4lhY 0vxBoxIN6FXV6u4irn+qv4DzDC5H5vYYbw7IQHZ/86QfMe+faBudsOQkB k=; Authentication-Results: esa6.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 (esa6.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=esa6.hc3370-68.iphmx.com; envelope-from="anthony.perard@citrix.com"; x-sender="anthony.perard@citrix.com"; x-conformance=sidf_compatible Received-SPF: Pass (esa6.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=esa6.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 (esa6.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=esa6.hc3370-68.iphmx.com; envelope-from="anthony.perard@citrix.com"; x-sender="postmaster@mail.citrix.com"; x-conformance=sidf_compatible IronPort-SDR: rut13j3ksQJSgSpvikTlru35KBZgK515RCtsZe9dmDz4/5Q22yZlcEsF8zOv1cPoz1IEB330Ke sYg3Qut996VMIG6aRJt5UFfgXshxd4AAOZljRwK2RA4EpsLMqeA8gBzWDG+TtoHBLVkI7TmFyV VTSWu0bXrlgAf/vdN0IG8Eqk0aQ8AErY+Hw88zeVV4yqDwR6ZiiXkNfdCrug6SMyFyqVhRmz3D 4L5S3r/irnYh+e3hvqvtOFsT+DbhVrjXI92fQgQnwnZCyOF1oEpWIh5nSbeNAdCl6jV4fp/WWD H40= X-SBRS: 2.7 X-MesageID: 11498513 X-Ironport-Server: esa6.hc3370-68.iphmx.com X-Remote-IP: 162.221.158.21 X-Policy: $RELAYED X-IronPort-AV: E=Sophos;i="5.70,329,1574139600"; d="scan'208";a="11498513" From: Anthony PERARD To: Date: Fri, 17 Jan 2020 10:53:46 +0000 Message-ID: <20200117105358.607910-1-anthony.perard@citrix.com> X-Mailer: git-send-email 2.24.1 MIME-Version: 1.0 Subject: [Xen-devel] [XEN PATCH v2 00/12] 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: Anthony PERARD 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-v2 series is based on "[XEN PATCH v3 0/6] xen: Kconfig update with few extra" 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. v1: https://lists.xenproject.org/archives/html/xen-devel/2019-10/msg01609.html 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. XXX Known issue - make dist-tests is broken. I'll fix that latter. - efi build maybe broken (xen doesn't boot on albana which looks like to be one of the uefi host) Cheers, Anthony PERARD (12): xen/build: Remove left over -DMAX_PHYS_IRQS 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/include: remove include of Config.mk xen/test/livepatch: remove include of Config.mk xen/build: run targets csopes,tags,.. without Rules.mk xen/build: make tests in test/ directly xen/build: include include/config/auto.conf in main Makefile xen/build: use new $(c_flags) and $(a_flags) instead of $(CFLAGS) xen/build: introduce ccflags-y and CFLAGS_$@ xen/build: have the root Makefile generates the CFLAGS xen/Makefile | 211 +++++++++++++++++++++------ xen/Rules.mk | 135 +++++------------ xen/arch/arm/Makefile | 28 ++-- 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 | 46 +++--- xen/arch/x86/Rules.mk | 91 +----------- xen/arch/x86/acpi/Makefile | 2 +- xen/arch/x86/arch.mk | 87 +++++++++++ xen/arch/x86/cpu/Makefile | 4 +- xen/arch/x86/efi/Makefile | 2 +- xen/arch/x86/guest/Makefile | 4 +- xen/arch/x86/hvm/Makefile | 6 +- xen/arch/x86/mm/Makefile | 10 +- xen/arch/x86/mm/hap/Makefile | 6 +- xen/arch/x86/mm/shadow/Makefile | 6 +- xen/arch/x86/x86_64/Makefile | 2 +- xen/common/Makefile | 8 +- xen/common/libelf/Makefile | 4 +- xen/common/libfdt/Makefile | 4 +- 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 | 10 ++ xen/scripts/Makefile.clean | 33 +++++ xen/test/livepatch/Makefile | 2 - xen/xsm/Makefile | 2 +- xen/xsm/flask/Makefile | 4 +- xen/xsm/flask/ss/Makefile | 2 +- 35 files changed, 519 insertions(+), 413 deletions(-) create mode 100644 xen/arch/arm/arch.mk create mode 100644 xen/arch/x86/arch.mk create mode 100644 xen/scripts/Makefile.clean