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

Re: [XEN PATCH 15/15] build: remove Config.mk include from Rules.mk


  • To: Anthony PERARD <anthony.perard@xxxxxxxxxx>
  • From: Jan Beulich <jbeulich@xxxxxxxx>
  • Date: Tue, 30 May 2023 12:50:51 +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=CYVJoW2V+TtYrmw6ENM+NmRnA5VEBxjnlnPzOjcoZIc=; b=h6TvcC5dCnJSro5vVGADrqQd7wEAM7KWRfKGYIN2LOUOVXNE8UYGICbYp3WJiKn0+tRdC5ZBfzsYpiuJo8+RtK3T9IMhW5xQWWtJJfkx7d2/h6oj5PXEissO5dvQOo2VR47hMEvnqqI6MpWyHwRPP9VQ0sHUwAksZHGHgwY7NJKjIxE3ZKQMgFSflDP0987GA0GlUF/JGFhl51UfAQKWir72fi0cP7Gp/fCMieqtfDblGIzb6cAk8TdgqQJCkJAvW3bcZJDcz5a06kn2Ow2UphsYZuk8beVWLEDzQD6F5cMtSirLTlIQoZX60hwkeQD2o0y1ED1iwwe2cmeezF5uUQ==
  • Arc-seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=Wz7VPzYse55yDRSIc65PzCR0DPlG2sD3JBE809PEEVjQOl7tD7I9FlgvY+ayPXWAwInUpctZ/GrSnjXa1lZ71RK3zcK0wY2TIiEN1HaItz1ulrRvi928SC5rpBeOoXKzCBNDB1RG/lFbwiWKf9X37qIZJTm/5JnuZIMSB6Qh6hn7p44FoFu6EtlJrWrTM/QWkDwKs1Rn6zwLr/4cc2mLwrqxu9xo9GoT1CcdSprdBKcPZrqhQFQRVolb3+Ur2p8M7Ao9u2kONUMXLZqdtuPA73ctyO67DzWVmxh1AI2pdwGFIphXTv/ErBQ1KspksQRgDQBxLRRjiP/7Qz/8jOtp6w==
  • 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:51:05 +0000
  • List-id: Xen developer discussion <xen-devel.lists.xenproject.org>

On 23.05.2023 18:38, Anthony PERARD wrote:
> Everything needed to build the hypervisor should already be configured
> by "xen/Makefile", thus Config.mk shouldn't be needed.

"... by xen/Rules.mk." (Or else it sounds as if yo're removing its use
altogether.)

> --- a/xen/Makefile
> +++ b/xen/Makefile
> @@ -246,10 +246,14 @@ export TARGET_ARCH     := $(shell echo 
> $(XEN_TARGET_ARCH) | \
>                              sed -e 's/x86.*/x86/' -e s'/arm\(32\|64\)/arm/g' 
> \
>                                  -e s'/riscv.*/riscv/g')
>  
> +export XEN_COMPILE_ARCH XEN_TARGET_ARCH
>  export CONFIG_SHELL := $(SHELL)
>  export CC CXX LD NM OBJCOPY OBJDUMP ADDR2LINE
> +export CPP AR

For these two, could I talk you into editing the earlier line instead
of adding a new one?

> --- a/xen/scripts/Kbuild.include
> +++ b/xen/scripts/Kbuild.include
> @@ -8,6 +8,13 @@ empty   :=
>  space   := $(empty) $(empty)
>  space_escape := _-_SPACE_-_
>  pound   := \#
> +comma   := ,
> +open    := (
> +close   := )
> +
> +# fallbacks for GNU Make older than 3.81
> +realpath = $(wildcard $(foreach file,$(1),$(shell cd -P $(dir $(file)) && 
> echo "$$PWD/$(notdir $(file))")))
> +or       = $(if $(strip $(1)),$(1),$(if $(strip $(2)),$(2),$(if $(strip 
> $(3)),$(3),$(if $(strip $(4)),$(4)))))
>  
>  ###
>  # Name of target with a '.' as filename prefix. foo/bar.o => foo/.bar.o

As long as they're the same, the collision with Config.mk's will be
benign (for xen/Makefile), but I wonder whether, along the lines of
the earlier patch, these wouldn't better be extracted into e.g.
config/fallbacks.mk. (Whether the single-character macros are also
extracted into somewhere is of less importance to me, at least right
now.)

Jan



 


Rackspace

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