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

Re: [for-4.19][PATCH] build: Allow setting KBUILD_DEFCONFIG in the environment


  • To: Michal Orzel <michal.orzel@xxxxxxx>
  • From: Jan Beulich <jbeulich@xxxxxxxx>
  • Date: Wed, 25 Oct 2023 11:10:32 +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=xLyhuqfG3K26sdi4WRteel/HdL17xlYkKTFEfqVH4I4=; b=octZMf68ifENgXh8BuOkAIQZqpRQiJeWCiYFsqD4jyT3sJoBrUAfUmkEx/MZ8IiRMCYzeTLMaB3iLI+HOVbSt6A+aKcnu/Bt5tEbeoaAx1c2+XI37rdLD/PVt7uLvBugplCOvngpH/KSRmq2dROCoVa5qy687esRMkiwWdU1U6qqHGdrgfZAocSrufgYyouY7Th00aNENr64ndF8qgdzadU26DA7TQ/lqP0/A8PH4jrkKKbnQU9hBfINxw+tHb7itEy+IVN7stG1FsitL0jZaSd69u4RR+kDmcOx0WB5xS5MO9nQcSnkKUUtDRDFiNtF0BTkZMqrJLCQlWmz8OnmrA==
  • Arc-seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=IAkwbw4tOEhdgYJU9WZ252S44BLhAmumEIyINYz7s4opHSC4GU2X6Pfn0UQ7R2L73CPIDQsOM2zPuUBXfwdY9E3B2m14Xoh7Tnf2RIzWdIA58c1EtMCAXjm0ynd+fu6FcHKFWxM8AtyMysC8yOybBwxs3L0KCItjIGa87DKyqYuUAQUe+DnOCq/1I9V6U5Xwlv2I/e2f+iHpA4OVd6fSJ2sHSqluiQ3l6zZAQN8nOFIL9c0padAfKAUnOrxlfiQmnGIJ50Ag+c5wE1ykwXT/YnPHlYW4kakokSfPw/iVw3isIZXAe5XaTVqi+I/CV+NGT5w1PgtWxbYw0l9B433/BQ==
  • 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: Wed, 25 Oct 2023 09:10:51 +0000
  • List-id: Xen developer discussion <xen-devel.lists.xenproject.org>

On 25.10.2023 10:28, Michal Orzel wrote:
> At the moment, in order to use a different defconfig target than default,
> one needs to specify KBUILD_DEFCONFIG=<target> on the command line.
> Switch to weak assignment, so that it can be also obtained from
> environment similar to other KCONFIG/KBUILD variables.
> 
> This change will activate the use of KBUILD_DEFCONFIG variable in CI
> build jobs that so far had no effect.

I'm certainly okay with the change, but the above sentence looks misleading
to me: Yes, the envvar was ignored so far, but isn't it the case that the
envvar as specified in CI matches what Makefile set it to (taking into
account that for RISC-V riscv64_defconfig aliases tiny64_defconfig), and
hence the specifications in build.yaml could be dropped (until such time
where truly an override was intended)?

Jan

> Note, that we will deviate from Linux in this regard.
> 
> Signed-off-by: Michal Orzel <michal.orzel@xxxxxxx>
> ---
> In case of reluctance to this approach, we can always do:
>  make -C xen defconfig KBUILD_DEFCONFIG=${KBUILD_DEFCONFIG}
> in automation/scripts/build.
> 
> Also, Linux defers setting the variable to arch specific Makefile, so it is 
> not
> sth mandated by the top level Makefile or documentation.
> ---
>  xen/Makefile | 3 ++-
>  1 file changed, 2 insertions(+), 1 deletion(-)
> 
> diff --git a/xen/Makefile b/xen/Makefile
> index fd0e63d29efb..40feefff4ab5 100644
> --- a/xen/Makefile
> +++ b/xen/Makefile
> @@ -256,7 +256,8 @@ export YACC = $(if $(BISON),$(BISON),bison)
>  export LEX = $(if $(FLEX),$(FLEX),flex)
>  
>  # Default file for 'make defconfig'.
> -export KBUILD_DEFCONFIG := $(ARCH)_defconfig
> +# May be overruled on the command line or set in the environment.
> +export KBUILD_DEFCONFIG ?= $(ARCH)_defconfig
>  
>  # Copy CFLAGS generated by "Config.mk" so they can be reused later without
>  # reparsing Config.mk by e.g. arch/x86/boot/.




 


Rackspace

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