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

Re: [PATCH 2/3] automation: Change build script to use arch defconfig


  • To: Stefano Stabellini <sstabellini@xxxxxxxxxx>, Shawn Anastasio <sanastasio@xxxxxxxxxxxxxxxxxxxxx>
  • From: Jan Beulich <jbeulich@xxxxxxxx>
  • Date: Tue, 26 Sep 2023 09:19:27 +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=fGnjUXdxhokVouZOQo2/BP6HMsqCQCsIj4g15Gdy+zw=; b=YVfUXcbQhegHyBppQjBLtQmz0cYNBwG4+32S7x+SyV99lfiwyvr0eRhqW6sStchIBo4pbk0cvDeO28bKVzfo7UYlN5ySw3HATHVQ9MNbBYhnTaFCPqGDbICPfn2T+Dk4jsQnvu050n3TZNuxqLlvdn4j6LTnyb+vh2Dpfd5dDpCx4Axlx2DWI8N/ac2GGlostaI6JERgTWez2tWpuIV9s/ci65CTBCtRkmxXf4/6CgssrIdnZUVM3ZG+YaoUXWzSRoCbQDrN8hHAkNRcrlrqTa1VSe9gOXnleun5M/Zj0K/+znfrWW5whykONbmqhxewddwbo0li+M+n9mT5KVF+Eg==
  • Arc-seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=Y942MxYTN31eY7LdLeM5nklpO8wVysbRI8PCRpGqTGHxwGQT55AfOTTC5fJvL02v42oMRVRz2jqHzW/avS6B7EPckPhWa76O3UNfpih7qEJMs+CPOkURp9L5uJA++pQGjH8Yzxh46L6/96zpmQVcAe5xhmwWeALMSruVQHHXx+ir2Dlk7UUicWSwoWwJf43r5vq4AsRQbmZiFsX2FTCAPZBkD8CaLb7neBkBBNqkmkiH/y4bNbOmk8HP4Joqzu4iAExbATXFobyMVSjX3+TVGiCWPHc3koKlS0LXkvcMralmSyia+p90sf1vNPmmJe9xn/vE7J3Ai3BG7QxBLGwrCg==
  • Authentication-results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=suse.com;
  • Cc: xen-devel@xxxxxxxxxxxxxxxxxxxx, Timothy Pearson <tpearson@xxxxxxxxxxxxxxxxxxxxx>, Doug Goldstein <cardoe@xxxxxxxxxx>, Michal Orzel <michal.orzel@xxxxxxx>
  • Delivery-date: Tue, 26 Sep 2023 07:20:03 +0000
  • List-id: Xen developer discussion <xen-devel.lists.xenproject.org>

On 26.09.2023 01:12, Stefano Stabellini wrote:
> On Mon, 25 Sep 2023, Shawn Anastasio wrote:
>> Change automation build script to call the make defconfig target before
>> setting CONFIG_DEBUG and extra options. This fixes issues on Power where
>> the build fails without using the ppc64_defconfig.
>>
>> Signed-off-by: Shawn Anastasio <sanastasio@xxxxxxxxxxxxxxxxxxxxx>
>> Reported-by: Jan Beulich <jbeulich@xxxxxxxx>

Nit: Tags in chronological order please (also affects patch 1).

> What is the problem specifically? Is the issue that CONFIG_DEBUG enabled
> before make olddefconfig causes certain DEBUG options also to default to
> yes, and these additional options don't work well on Power?

No, the issue is that "make olddefconfig" takes the existing .config
without even considering the arch's default configuration that was
specified (KBUILD_DEFCONFIG).

>> --- a/automation/scripts/build
>> +++ b/automation/scripts/build
>> @@ -22,7 +22,12 @@ if [[ "${RANDCONFIG}" == "y" ]]; then
>>      # RANDCONFIG implies HYPERVISOR_ONLY
>>      HYPERVISOR_ONLY="y"
>>  else
>> -    echo "CONFIG_DEBUG=${debug}" > xen/.config
>> +    # Start off with arch's defconfig
>> +    make -C xen defconfig
>> +
>> +    # Drop existing CONFIG_DEBUG and replace with value of ${debug}
>> +    sed -i 's/^CONFIG_DEBUG=[yn]//g' xen/.config
>> +    echo "CONFIG_DEBUG=${debug}" >> xen/.config
>>
>>      if [[ -n "${EXTRA_XEN_CONFIG}" ]]; then
>>          echo "${EXTRA_XEN_CONFIG}" >> xen/.config

It never really became clear to me whether kconfig honors the first,
last, or any random setting in a .config that it takes as input, when
a certain option appears there more than once. The change you make
implies it's consistently "last" - can you confirm that's the actual
behavior of kconfig?

Jan



 


Rackspace

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