[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [XEN PATCH v8 06/47] build: avoid re-executing the main Makefile by introducing build.mk


  • To: Anthony PERARD <anthony.perard@xxxxxxxxxx>
  • From: Jan Beulich <jbeulich@xxxxxxxx>
  • Date: Mon, 6 Dec 2021 17:42:24 +0100
  • Arc-authentication-results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=suse.com; dmarc=pass action=none header.from=suse.com; dkim=pass header.d=suse.com; arc=none
  • Arc-message-signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=HZi3AxTdExXlR+Y06/82M2J28uaSxo3qoPiHhYf1K5o=; b=Lf/x9UxawKs+hoZtBW+G9XC4DmR7fbxzykBmtBYttTtFVUG3Vaa+wijZuz26yLqQfoFIs2/iiX8HlqXy5UuHIpxb8+mtOm1uKPS+G2ZyI8KVqEduaeD/taGVDuiaZW/33dNY03PSO/4gJpNDcIn5gHo4DfmVMCozZDcrGdYTY0TN80aYJfhGJkq8+4dNtC4zj6oSYYvUzoN/Eyr4UbSMN5iHIWgPJ/9G4HGYsenjtmuyyJCnEnJwTeiPYrcGyCSUfVMPCdf77No0KRGb9nl0X6ifrrQ9xi4fRZdb3lPwromF0/4pfRl5kLLiGeuSTkGZixFld9NeGoWjguJQ0wn6ZA==
  • Arc-seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=ZOo+ryosl4qWptBjRCNuGhyRdyXmJtQRK/gu8UW7Qw4VYd3LmxCZemzZWarI5e4MBfb4ebePCJipzj/xjZ6vpxH0U4eo0jGCxy+S/cqa+KHyZT1OB8lYzEHBEhVHMQBN6jFbDAwfgP0CQWkGrGSo4Byghq7VYp5qZ1lg7klnoyisI5fziVfbY1B/7nfhRbXHmNcZ/iQiT0ywwIP04e/qCBEamhQl0yMSPEPt64a4ToGS5TLbpJVAgOkawWlYIPWK/44Rs0RG+zn6A2k7iB9oGdUIfn7eqCxFYP2yVThMsEnxziR/tlzEv/Li5HrFUMG2HR9vxADBqi70BGGXaVK+KA==
  • Authentication-results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=suse.com;
  • Cc: Andrew Cooper <andrew.cooper3@xxxxxxxxxx>, George Dunlap <george.dunlap@xxxxxxxxxx>, Ian Jackson <iwj@xxxxxxxxxxxxxx>, Julien Grall <julien@xxxxxxx>, Stefano Stabellini <sstabellini@xxxxxxxxxx>, Wei Liu <wl@xxxxxxx>, xen-devel@xxxxxxxxxxxxxxxxxxxx
  • Delivery-date: Mon, 06 Dec 2021 16:42:42 +0000
  • List-id: Xen developer discussion <xen-devel.lists.xenproject.org>

On 25.11.2021 14:39, Anthony PERARD wrote:
> Currently, the xen/Makefile is re-parsed several times: once to start
> the build process, and several more time with Rules.mk including it.
> This makes it difficult to work with a Makefile used for several
> purpose, and it actually slow down the build process.
> 
> So this patch introduce "build.mk" which Rules.mk will use when
> present instead of the "Makefile" of a directory. (Linux's Kbuild
> named that file "Kbuild".)
> 
> We have a few targets to move to "build.mk" identified by them been
> build via "make -f Rules.mk" without changing directory.
> 
> As for the main targets like "build", we can have them depends on
> there underscore-prefix targets like "_build" without having to use
> "Rules.mk" while still retaining the check for unsupported
> architecture. (Those main rules are changed to be single-colon as
> there should only be a single recipe for them.)
> 
> With nearly everything needed to move to "build.mk" moved, there is a
> single dependency left from "Rules.mk": the variable $(TARGET), so its
> assignement is moved to the main Makefile.
> 
> Signed-off-by: Anthony PERARD <anthony.perard@xxxxxxxxxx>

Reviewed-by: Jan Beulich <jbeulich@xxxxxxxx>




 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.