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

Re: [XEN PATCH 14/15] Config.mk: move $(cc-option, ) to config/compiler-testing.mk


  • To: Anthony PERARD <anthony.perard@xxxxxxxxxx>
  • From: Jan Beulich <jbeulich@xxxxxxxx>
  • Date: Tue, 30 May 2023 12:43:42 +0200
  • 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=u/Gk5s24qJpyUc563MFjEoO9z5tiyu0lNPjN1g6jPiI=; b=StMY/eeu5QUrOkmcNXORJ4uiDZmJ4tMq+W52yaIKzYl8d1UjxKxgA/9Hc699RhKZN51G2QR4W1eEVRa4CAkKSyqi1+Ss/lDWeqX2jIBATuaCKCVnxIxmotJTEegPwY1HVe9UEDl4TBAOEc0dnN3/flzTKhavfcQ18SsrVW+ec4LGttnrVwtIFka88FbApD9pLvgpVUcrIssBY3P5RSiIeiT2rjVQm/4r8tQj1sqZi/5D/xjiOTsf1q3pb9LJEtlp607sCD99c0VjBPPEasNnDuwGE+2yYxWO3M8ZQuxAw0eM60o+zVJjaCu5jiqkOVoeXcFx0F4XQNoBV/IfGYLKkw==
  • Arc-seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=AHg0ntIg/W4U6JvX+xPMDl/UtGky6BA8cvhZ3Ul7uE6OiBnsAKvQ6PuJnNBd5zb8nB7TpclmHyjvg8XkmgyRrnYJwgx2HHydEfRykKHl9WOgKF/7MZkwJ2his+ycdWpKjCmK8iaA8TqxuW101UZAaLKxhpv0FF809aEIAn7jGxww9MxbmS3jdEBhxjizkz/4WrMHLMDQrHr9c8gMhaKWgbR7Fyi1MKezs9ZXJpQiTA7G9Pglf2PKC2kn3C+jLyYyQM3uNYt7gzauHj8c64S+ISNqo0HTRw04tncWNYvRWo99WOluCHy3k8Z+G9izdsVSyUUOWpxGTkBdyuKwqSuvjA==
  • 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>, Julien Grall <julien@xxxxxxx>, Stefano Stabellini <sstabellini@xxxxxxxxxx>, Wei Liu <wl@xxxxxxx>, xen-devel@xxxxxxxxxxxxxxxxxxxx
  • Delivery-date: Tue, 30 May 2023 10:44:05 +0000
  • List-id: Xen developer discussion <xen-devel.lists.xenproject.org>

On 23.05.2023 18:38, Anthony PERARD wrote:
> In xen/, it isn't necessary to include Config.mk in every Makefile in
> subdirectories as nearly all necessary variables should be calculated
> in xen/Makefile. But some Makefile make use of the macro $(cc-option,)
> that is only available in Config.mk.
> 
> Extract $(cc-option,) from Config.mk so we can use it without
> including Config.mk and thus without having to recalculate some CFLAGS
> which would be ignored.
> 
> Signed-off-by: Anthony PERARD <anthony.perard@xxxxxxxxxx>

When I saw the title and in particular the new file's name which is
already mentioned there, I did expect something entirely different,
perhaps related to the testing of Xen. May I suggest e.g.
compiler-probing.mk or maybe even simply compiler.mk? (I'm also
uncertain about "compiler", tbh - I could e.g. see Kbuild.include's
as-option-add to also be useful outside of xen/, and hence at some
point wanting moving to some common file.)

> --- a/Config.mk
> +++ b/Config.mk
> @@ -18,6 +18,7 @@ realpath = $(wildcard $(foreach file,$(1),$(shell cd -P 
> $(dir $(file)) && echo "
>  or       = $(if $(strip $(1)),$(1),$(if $(strip $(2)),$(2),$(if $(strip 
> $(3)),$(3),$(if $(strip $(4)),$(4)))))
>  
>  -include $(XEN_ROOT)/.config
> +include $(XEN_ROOT)/config/compiler-testing.mk

Possibly being one of the few users of the top-level .config, I wonder
about the ordering of these includes. This isn't to say that I consider
wrong the order in which you have it now, but I could see the opposite
order as potentially useful, too.

Jan



 


Rackspace

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