From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-io1-f43.google.com (mail-io1-f43.google.com [209.85.166.43]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id EDE3D2F860 for ; Fri, 13 Sep 2024 20:39:52 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.166.43 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1726259995; cv=none; b=Agou7Gj0NuIF1WKi+zfMGQZr4iXTxcodzh2E6KveN9jQXlh8LXSHGKUbN1aTWGGahvkV8h0m1aFEbfxbT0xXAugSFaAPixrgNpLgk/aoojQtZgA0DgBUN6BuzjeyI5sd82s7vnBAR+Qi/FLjrlJhEYoYlEPTvbsTHQhibcGT9js= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1726259995; c=relaxed/simple; bh=a8njrOTyZnMxD4gOMQBRN2AsNq9RJbj4q5h2B0eOlN4=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=QOxi/diW1vy2sFOuSvEJxPyvdA3S+RyzjbchmptZt50tjRj0C34FFmTVOqpnrZalsu9VTrD5XBQuPM+YNo87zBPo5vfU07cBu5/5obtGmrfPtKPV8p4h/Dhw0QVZiKzbx9Y3aJ/IpJdDlhttbdanRxwZsrHZqjxOPkz6LaHNlq4= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linuxfoundation.org; spf=pass smtp.mailfrom=linuxfoundation.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=ce1C7qGC; arc=none smtp.client-ip=209.85.166.43 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linuxfoundation.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linuxfoundation.org Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="ce1C7qGC" Received: by mail-io1-f43.google.com with SMTP id ca18e2360f4ac-82ade877fbeso68945839f.0 for ; Fri, 13 Sep 2024 13:39:52 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=google; t=1726259992; x=1726864792; darn=vger.kernel.org; h=content-transfer-encoding:in-reply-to:from:content-language :references:cc:to:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=gzwULVxBpNCzh/Z3BSecHD8j1E6FKJZ9DzWkvDKTx/g=; b=ce1C7qGCCrhX1PCrquablvW1B2i6jKGvf2XUsCQhCvmrh1c/oTOpUvWuqPVjWBIOm4 8TTJMPQDucyEnCYHveFWqgWYV1+f4AAnEf/ZR/1o9KtHeetZT1GhVMUUaxriXeA9NYBu bc1GnFMArzU7PKNAkE95LHK/CGIhGjO1cYuOA= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1726259992; x=1726864792; h=content-transfer-encoding:in-reply-to:from:content-language :references:cc:to:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=gzwULVxBpNCzh/Z3BSecHD8j1E6FKJZ9DzWkvDKTx/g=; b=NT2vaeZKiZIO32JOJJoDinlsumqRzMEcQeOpfFRjdppG4ay8HHignNA2hrvfw4Xp8J XmOpKpzOPHDLZT9I9rKHOfBuvxHGLkoF3r9zatErqaas9wR+bB0eLq5d7FxeF+sfBFeM sOvn3mWexvKXANJehx59d7IYHmL2JBnQhbiMqk2/A1ztQDRrg1r9pI3/K9xjygScCT6u iOBO8LsCB1+kUvrVI6Cx6UomRe7ZvbAiA4QDkmEWOUSQPh66ekcl6weBWr+8tE674p/I /LOK+H44EAmwY1itoVwhgRNy18WadcoScLHkJ4oPunRMt2YSDn4xKlbc4N7RUTVF/Wc7 IVAQ== X-Gm-Message-State: AOJu0YwD0mrvkE3ZbDv2TUkciADBeDvSDGoxacWohDgOMiSEU19vfgW+ tiItn+dPzqavesDTgeQ/3iHKobk5y4202p3/hQuxgdQaREx8vXl9vUBIEappKmh3X3P57Ozu8Xk 7 X-Google-Smtp-Source: AGHT+IFQQbBxapaLVHCmXINHtpFP3T2z47bsvw1jiUlO1syu+QqWGPBVi/d9cR6128ME1x3V00OJCA== X-Received: by 2002:a05:6602:29aa:b0:82a:31d4:1aab with SMTP id ca18e2360f4ac-82d3783745amr489644839f.14.1726259992002; Fri, 13 Sep 2024 13:39:52 -0700 (PDT) Received: from [192.168.1.128] ([38.175.170.29]) by smtp.gmail.com with ESMTPSA id ca18e2360f4ac-82d492694b0sm1568639f.10.2024.09.13.13.39.50 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 13 Sep 2024 13:39:51 -0700 (PDT) Message-ID: Date: Fri, 13 Sep 2024 14:39:50 -0600 Precedence: bulk X-Mailing-List: linux-kbuild@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: To: David Hunter , Masahiro Yamada Cc: linux-kbuild@vger.kernel.org, linux-kernel@vger.kernel.org, shuah@kernel.org, javier.carrasco.cruz@gmail.com, Shuah Khan References: <20240913171205.22126-1-david.hunter.linux@gmail.com> Content-Language: en-US From: Shuah Khan In-Reply-To: <20240913171205.22126-1-david.hunter.linux@gmail.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit On 9/13/24 11:11, David Hunter wrote: Missing subject line for the cover-letter? > > Date: Fri, 13 Sep 2024 11:52:16 -0400 > Subject: [PATCH 0/7] linux-kbuild: fix: process configs set to "y" > > An assumption made in this script is that the config options do not need > to be processed because they will simply be in the new config file. This > assumption is incorrect. > > Process the config entries set to "y" because those config entries might > have dependencies set to "m". If a config entry is set to "m" and is not > loaded directly into the machine, the script will currently turn off > that config entry; however, if that turned off config entry is a > dependency for a "y" option. that means the config entry set to "y" > will also be turned off later when the conf executive file is called. > > Here is a model of the problem (arrows show dependency): > > Original config file > Config_1 (m) <-- Config_2 (y) > > Config_1 is not loaded in this example, so it is turned off. > After scripts/kconfig/streamline_config.pl, but before scripts/kconfig/conf > Config_1 (n) <-- Config_2 (y) > > After scripts/kconfig/conf > Config_1 (n) <-- Config_2 (n) > > > It should also be noted that any module in the dependency chain will > also be turned off, even if that module is loaded directly onto the > computer. Here is an example: > > Original config file > Config_1 (m) <-- Config_2 (y) <-- Config_3 (m) > > Config_3 will be loaded in this example. > After scripts/kconfig/streamline_config.pl, but before scripts/kconfig/conf > Config_1 (n) <-- Config_2 (y) <-- Config_3 (m) > > After scripts/kconfig/conf > Config_1 (n) <-- Config_2 (n) <-- Config_3 (n) > > > I discovered this problem when I ran "make localmodconfig" on a generic > Ubuntu config file. Many hardware devices were not recognized once the > kernel was installed and booted. Another way to reproduced the error I > had is to run "make localmodconfig" twice. The standard error might display > warnings that certain modules should be selected but no config files are > turned on that select that module. > > With the changes in this series patch, all modules are loaded properly > and all of the hardware is loaded when the kernel is installed and > booted. > > > David Hunter (7): > linux-kbuild: fix: config option can be bool > linux-kbuild: fix: missing variable operator > linux-kbuild: fix: ensure all defaults are tracked > linux-kbuild: fix: ensure selected configs were turned on in original > linux-kbuild: fix: implement choice for kconfigs > linux-kbuild: fix: configs with defaults do not need a prompt > linux-kbuild: fix: process config options set to "y" > > scripts/kconfig/streamline_config.pl | 77 ++++++++++++++++++++++++---- > 1 file changed, 66 insertions(+), 11 deletions(-) >