From patchwork Fri Sep 13 17:11:56 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: David Hunter X-Patchwork-Id: 13803853 Received: from mail-yw1-f174.google.com (mail-yw1-f174.google.com [209.85.128.174]) (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 9A4D826289; Fri, 13 Sep 2024 17:12:32 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.128.174 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1726247554; cv=none; b=OK77OCMdy3KkTg+DlQp5Nk8GBreghB/+yyuOEJAMVApbFyYmhBT1BU4KZtai6lV02I78cYlCERsu++hJ0YvX4LTRmNKi6wHkpLfhEnM22WH3X5BJ4Kx+0uPQR1J5z5wChW6cWuI/BWqVE2FadjyA19cNKzlx2ILn78WApTG/Av4= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1726247554; c=relaxed/simple; bh=5s4pHxScMXinrqMWKPx8Wxitl3qhy7p2inOOujWbj+c=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=jUNFXk9Cy5bWQFrjF2qRfhluQ59nlZH4g9LgU60/mLw7k8M+oWlQlqwe+SSIzvKfSeRJVOPabHtCwshj3N0/zQbP8V6zenpD183tXR2QkNucBTmTRvimGOc4sRQtcp1luj48Q2pyftpiG3i5kgbbE+rUxT6Zqqdj0KD9ua05E5s= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=NP5vOEx4; arc=none smtp.client-ip=209.85.128.174 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="NP5vOEx4" Received: by mail-yw1-f174.google.com with SMTP id 00721157ae682-6d3f017f80eso10114787b3.1; Fri, 13 Sep 2024 10:12:32 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1726247551; x=1726852351; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=OStyQo3RAb1kmIIdt9oQl7TguiBZ/JW1YDsQDt08JLc=; b=NP5vOEx4P7C9xGTICIZIgttiRc4wH+G5ZdF/xPw4t41HcrwOasmEJsSl3eiIwGWPjK fh4fI4e9eOMMh138OT2g8aKUD8piU/s38W30CLFQWYVkmemGanNHSy/JRjtzBe5rcaRv 3KcQ/RjyYQlrmacY2LjhLZWUiuEkLMg6FyODMOmuN/AyMxFZ+/B0ujyfm6hIN36rYwHX IiFv91rEDRMjlOe6mwFUp6YVKjkBxqI23mgiH9XcyKu0WmeQoK5Acfg7+p/PH3G3/4Ie JHuHLuBMJTLE8B7NiYRopStMjXZSNweEAdxyvRCmZ5zAzJvlyvYvKNEPRcQxyAjEonuw xGgg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1726247551; x=1726852351; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=OStyQo3RAb1kmIIdt9oQl7TguiBZ/JW1YDsQDt08JLc=; b=OlWqRMRj3N2Y4IT/pz3dWf4JWgIx7HPIe29mU+hOInUMaxI7daOc0R7OPbUkKUiVCu WsdpRhoebMf+1Ru+0HeF/boHxmFmrgvxey5ceR8QwPRUa5T+YTGYsLqq431NZhT+MxJG w1/+qHlV2mj9VsbslBciUeMVJSufRDz/+6iSMuHsYLdR/gCUTZLXq7XHv4YK55cqGXPf Bv3HosBkIY0ek+LN+jNOtKfZ04EIUF6t7n9Qsl/V9KfqYLfVbVrq/Ixlhl4HEGCXbcGe FDr7BHXsos8lE8ho+CJ14LbHXKdsw/SZ3g+o4m9hAKjm0CB0e+6j7pIqKxV5gra0lrEy IThw== X-Forwarded-Encrypted: i=1; AJvYcCUFTeX3hAQ3NxSpVHDx0EoKkFnYORosxeiZ6IuJlOpzxBduiyXhj5v/Mk/XTWJXv245Ykv1E8B2jLpoeFk=@vger.kernel.org, AJvYcCVvvKNS16G37H365hE6sdu8rtpJ/aEYm/HFPr3vsUifplqoe1eCV9DKuKKRWDAXT9cB32hieXfW2kfG/XaS@vger.kernel.org X-Gm-Message-State: AOJu0YyPp4hdJ02Ny7PA+mQov39eJtaf7l689v6MZte9L8vGYJVyrsap 7M/pFzhkkMDROdMS7czxx46VKnNXP1piLR1AsAOMTH0QgEZLY8DbeH3/uw== X-Google-Smtp-Source: AGHT+IE3UaUfr+CoRIBNfq9UYZkK2yz/E+INkWVGrTf4grW78eSWFs1+xYfj/AKtlW1aHrIXQBoRgA== X-Received: by 2002:a05:690c:2f0e:b0:6d1:f545:3d55 with SMTP id 00721157ae682-6dbcc2613f0mr27867117b3.12.1726247551461; Fri, 13 Sep 2024 10:12:31 -0700 (PDT) Received: from localhost (57-135-107-183.static4.bluestreamfiber.net. [57.135.107.183]) by smtp.gmail.com with ESMTPSA id 00721157ae682-6dbbf1f38fbsm5778907b3.22.2024.09.13.10.12.30 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 13 Sep 2024 10:12:31 -0700 (PDT) From: David Hunter To: Masahiro Yamada Cc: David Hunter , linux-kbuild@vger.kernel.org, linux-kernel@vger.kernel.org, shuah@kernel.org, javier.carrasco.cruz@gmail.com Subject: [PATCH 1/7] linux-kbuild: fix: config option can be bool Date: Fri, 13 Sep 2024 13:11:56 -0400 Message-ID: <20240913171205.22126-2-david.hunter.linux@gmail.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20240913171205.22126-1-david.hunter.linux@gmail.com> References: <20240913171205.22126-1-david.hunter.linux@gmail.com> Precedence: bulk X-Mailing-List: linux-kbuild@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Select configs that do not have a prompt. Config options can be bool or tristate. Ensure that bool options are also selected. Signed-off-by: David Hunter --- scripts/kconfig/streamline_config.pl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/kconfig/streamline_config.pl b/scripts/kconfig/streamline_config.pl index d51cd7ac15d2..a828d7ab7e26 100755 --- a/scripts/kconfig/streamline_config.pl +++ b/scripts/kconfig/streamline_config.pl @@ -238,7 +238,7 @@ sub read_kconfig { } # configs without prompts must be selected - } elsif ($state ne "NONE" && /^\s*(tristate\s+\S|prompt\b)/) { + } elsif ($state ne "NONE" && /^\s*((bool|tristate)\s+\S|prompt\b)/) { # note if the config has a prompt $prompts{$config} = 1; From patchwork Fri Sep 13 17:11:57 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: David Hunter X-Patchwork-Id: 13803854 Received: from mail-yw1-f180.google.com (mail-yw1-f180.google.com [209.85.128.180]) (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 08F3984A57; Fri, 13 Sep 2024 17:12:36 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.128.180 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1726247558; cv=none; b=ixn5k1gruI5EKDmJM4a9CRmeFUQuld8B4NjQswyx1bXK1B9YAvxU+Tlawfs9ckomtuoqC7Hqe+COpmmRtZW2eZcCftvz1Ypzwwfs7dnXuaphi18ESkm7fO7DV+JH2ektj/oZHeUKFZb9l2azDypHJfB69cs0gPNmV0D2Mq5Ftkc= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1726247558; c=relaxed/simple; bh=gfIBBX5HQovdeZCeeMgLJiHeNO4lHGit5OFph2ZVRA0=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=cEKXHXSOSbUhyT7nRT7ZvGkhPVJ2HkD430pLZ3bxP5R0BXhb+Yfx/KqF0FFuIp0w+VJN+gC0SD2ZNlniSE06xjvy7W6KAAR/AOz8yNK9OOq9vPyh2Z3PXa5+uMZxzVBY84YcpO0t94bW6EfzxjwIBx2nVjRZuzpSmzGBrl9OdHg= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=ZZlS1ZC5; arc=none smtp.client-ip=209.85.128.180 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="ZZlS1ZC5" Received: by mail-yw1-f180.google.com with SMTP id 00721157ae682-6b5b65b1b9fso19247557b3.2; Fri, 13 Sep 2024 10:12:36 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1726247556; x=1726852356; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=6M7ObXrMB4UkFb/Zj7afK7ol0HldwVxv8ot4KGpGZhM=; b=ZZlS1ZC58jAg3iM9yQUDhMreMZVAiRti345WMa4zJ3mfifIEl7r0qnWQI3AOlMfG2v KqyVAcFLj4K4fWUi5RN/De/gzWoBWxw+W5PXUW/clNrw2aZ7k+u59FQLTMwa6Eebj/nS HG6qIQ22holflTpCAXkjTvIFkXI1oMU1JfCRmW0/Hf8U9wh6Y090rf28w3K9FnbIFmFD F0shPkBkAsq/QjvdKXlhhQEcnWzSLPDFq/auPlZ/dc893gYnHnhTLKz60dFxk1pqBmXp ltMUSjPMYiz3fCQISA9f/2lrVuJIyE5NFqPMnbP6Wyyi7tuGfuH8AJXYlEh1V8cJWVEO 8cLw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1726247556; x=1726852356; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=6M7ObXrMB4UkFb/Zj7afK7ol0HldwVxv8ot4KGpGZhM=; b=kNxiUHnlPnhjl+JywkVHUfixU5f2KUU8evLca6ELVNIc6N+bPb6ioCA/lQ4EVmR8Ji r47lbswzy1pfpohFZqPmb0mV5CvpTqfmY1OcF9qfA9zfCxdvHrpZeSeQbGfPdG7qcQ3C rxEdmG1nalp7xMhiOq1E5q2I3Q7UQNcd8POFFKv9ORs5zlBO4dNxjdvPR+VTfsAW7iDV uradqKN+vp4ipwznDKEeLkPv2H/f0qQRQ9BU/8BxUNee/xS3mJUx/QpHbczFg2eMnOMf O4fmraeVQfE34TSkM2JMg/IIlwYPvMxPO225BQJUgMqFoNbvDegBkIFdVS2XJIGMSLqq KUaw== X-Forwarded-Encrypted: i=1; AJvYcCVA2G3hGAThS39cli8tfM85R2hqvumkFAKvIqy+2fBsPFgw74+dQBSLVRydljse547HzxouNTpxamq9G84=@vger.kernel.org, AJvYcCVoX5vKjONPoRBJFy/4T0rfP7Gx677yHSG2w3M0LTXSpJiBaHupjkvWql50+4x5nKbpYVpV2zTzZSHPVl4J@vger.kernel.org X-Gm-Message-State: AOJu0Yy9YoAXt1cNbAYOx3hMP98rKcWdhMtGmzUITIiLjNUyb+G87fTN 6HiRfWDNUnrTz4HeGpOF477+f95NzcciOSuSraF3pVE6hEbtNAtJSBfmiA== X-Google-Smtp-Source: AGHT+IFtOACW0/KpsabaZnrciDKM1vzyAvGZ9qu/Rw6QnhquvvPkXsqmZ+RfKX9+dtugQX6DPuEspw== X-Received: by 2002:a05:690c:6a87:b0:6db:d776:5e29 with SMTP id 00721157ae682-6dbd7765ec8mr18053087b3.17.1726247555904; Fri, 13 Sep 2024 10:12:35 -0700 (PDT) Received: from localhost (57-135-107-183.static4.bluestreamfiber.net. [57.135.107.183]) by smtp.gmail.com with ESMTPSA id 00721157ae682-6dbcd85f5d2sm3215067b3.60.2024.09.13.10.12.35 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 13 Sep 2024 10:12:35 -0700 (PDT) From: David Hunter To: Masahiro Yamada Cc: David Hunter , linux-kbuild@vger.kernel.org, linux-kernel@vger.kernel.org, shuah@kernel.org, javier.carrasco.cruz@gmail.com Subject: [PATCH 2/7] linux-kbuild: fix: missing variable operator Date: Fri, 13 Sep 2024 13:11:57 -0400 Message-ID: <20240913171205.22126-3-david.hunter.linux@gmail.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20240913171205.22126-1-david.hunter.linux@gmail.com> References: <20240913171205.22126-1-david.hunter.linux@gmail.com> Precedence: bulk X-Mailing-List: linux-kbuild@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Put in the dollar sign for the variable '$config'. That way, the debug message has more meaning. Signed-off-by: David Hunter --- scripts/kconfig/streamline_config.pl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/kconfig/streamline_config.pl b/scripts/kconfig/streamline_config.pl index a828d7ab7e26..ddc630f2264a 100755 --- a/scripts/kconfig/streamline_config.pl +++ b/scripts/kconfig/streamline_config.pl @@ -503,7 +503,7 @@ sub parse_config_selects # Check if something other than a module selects this config if (defined($orig_configs{$conf}) && $orig_configs{$conf} ne "m") { - dprint "$conf (non module) selects config, we are good\n"; + dprint "$conf (non module) selects $config, we are good\n"; # we are good with this return; } From patchwork Fri Sep 13 17:11:58 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: David Hunter X-Patchwork-Id: 13803855 Received: from mail-yw1-f174.google.com (mail-yw1-f174.google.com [209.85.128.174]) (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 7443584E14; Fri, 13 Sep 2024 17:12:41 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.128.174 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1726247562; cv=none; b=ggY4D43ET6HP+H3v1+Jlj35Asks7/8qDH0eDb6VbfBXByhGqtiJafDx++zghu90jPaUUDDl6Vl6jhcbpEoPWrUWLd3QAYe348xWkqOJSkogg+nnacPDSrLqIJSGqpD5s7zLqXEb8kbGvG1zews4+g0xrseld9CNn6b3a5F62n1M= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1726247562; c=relaxed/simple; bh=2PuKDWXgJpjBk9CDwbD0GM6AxbKOkBxN66BpmL4XKBY=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=mCyGFtZDuwA3HsSW37Cg+YWrdXyHTRE84fB6ZNF+y57YPNt2kGe6qVWUp8geVLekiYwXRbpzwme2zidqt7rqVWBDq3XOvYRyHNQQ5zyLsmTHPmiLoRJgugdRGXfjYzxVlX8gD03XOS6Eg0dda4DM5wHL9LWHHeMVLWDwl6X+i+g= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=M+uvKpst; arc=none smtp.client-ip=209.85.128.174 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="M+uvKpst" Received: by mail-yw1-f174.google.com with SMTP id 00721157ae682-6db9f7969fdso19961977b3.0; Fri, 13 Sep 2024 10:12:41 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1726247560; x=1726852360; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=7Z1VhSdcP9ko/rAeK53mf5eEs2n8E25Al2LdRBjlHms=; b=M+uvKpstk/Xrxp0sgPKmwiu0WrWBZUj2+w+SGd5eVeFfXGmj+6gxHeZnOAxwwsIiW1 PkOg6KDelYw+I2FIZza1pzR8AcIcFbtmC1PnFavczA7Hth7jU3u3FQkipknZrMcEr0ec R1/rnB110vNbw1OY9Rx8rrtWBXLEP8faiQVicccgICcbsbnvSTdXxGCLfzKmx8OiWDGG 5/UJLm5UN42oh8I6kjOUtV9EijD6uj/T2gqu5kVQ0LrMs256LWiq7ZC6X3tQ1j47t96U MaRbZnNMyTy4M0VeS8Gq3bRh6bNYCnVneZaRMPRzmK3YGwA0MqjXLo5qPlOV6d9J+iZZ UzOQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1726247560; x=1726852360; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=7Z1VhSdcP9ko/rAeK53mf5eEs2n8E25Al2LdRBjlHms=; b=ogjhNKwTMlVeWfstKjdbUreHXPT70PMEV86i/19bnG9jz+7cxb3ANIwKG6RzBe/P3g AAphBecSh3dTPf8FsGdSX2DONA9Smup83fAzowxoH70itVWQPrwLzaOKf+9K//TuLoR2 XMBXP+uTie9cc6KWUMrVd+KYWRyC7sFhg/VH+DQVcvSC90ee9eRhzyBAGSazhx0G6LsA il0S/iNR3X8LmeYtkq8jDV2U6dhXzEGxYnjVAFJbtpoCOVXgjz6oKQE7WJIh08gSWdKT jkhg5gPKhGdswrquFfzr10Jf1x/6LMwpmSfPcYlKsylRL4tpuAwga/2LG/AU+iORiltb B0Ag== X-Forwarded-Encrypted: i=1; AJvYcCUUaqvXvU+k3t1O7FUYiwBzyIBY57fQVN6HWaO5KPYD5YQUkt/t0Xf2WycdITcVgoSyOTQp4j32OxPQUecl@vger.kernel.org, AJvYcCV0DZ1urt617/ofZYUOeis9E08863RXdLyyTfS9EIZaEcQklGBgKsGNDS0L8trmHan5sI3yGShwOSe/qbo=@vger.kernel.org X-Gm-Message-State: AOJu0YxKZ8m/HEF0bGbghljkmxy8CNeYbdmp92VRBHxNkpUtQ1u0Dm/0 kK5fkHf6EgJWypfZgNSNmKKfMPJkrGN9yzMdC9No+X1/W87nn5D6CJFsow== X-Google-Smtp-Source: AGHT+IF8ddnaLbOh/Kr2qZrSb3wZkZO7UXfAKc0RSIDuFTMgS6ShbK7fvXxYkPiGhxpUJJ8cyzZAqg== X-Received: by 2002:a05:690c:480a:b0:652:e900:550a with SMTP id 00721157ae682-6dbb715b1bfmr60094077b3.19.1726247560268; Fri, 13 Sep 2024 10:12:40 -0700 (PDT) Received: from localhost (57-135-107-183.static4.bluestreamfiber.net. [57.135.107.183]) by smtp.gmail.com with ESMTPSA id 00721157ae682-6dbbf1f38fbsm5779237b3.22.2024.09.13.10.12.39 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 13 Sep 2024 10:12:39 -0700 (PDT) From: David Hunter To: Masahiro Yamada Cc: David Hunter , linux-kbuild@vger.kernel.org, linux-kernel@vger.kernel.org, shuah@kernel.org, javier.carrasco.cruz@gmail.com Subject: [PATCH 3/7] linux-kbuild: fix: ensure all defaults are tracked Date: Fri, 13 Sep 2024 13:11:58 -0400 Message-ID: <20240913171205.22126-4-david.hunter.linux@gmail.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20240913171205.22126-1-david.hunter.linux@gmail.com> References: <20240913171205.22126-1-david.hunter.linux@gmail.com> Precedence: bulk X-Mailing-List: linux-kbuild@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Track default options on the second line. On the second line of some config entries, default and depndency options sometimes appear. In those instances, the state will be "NEW" and not "DEP". Signed-off-by: David Hunter --- scripts/kconfig/streamline_config.pl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/kconfig/streamline_config.pl b/scripts/kconfig/streamline_config.pl index ddc630f2264a..bb1f19a1ab5e 100755 --- a/scripts/kconfig/streamline_config.pl +++ b/scripts/kconfig/streamline_config.pl @@ -220,7 +220,7 @@ sub read_kconfig { $depends{$config} = $1; } elsif ($state eq "DEP" && /^\s*depends\s+on\s+(.*)$/) { $depends{$config} .= " " . $1; - } elsif ($state eq "DEP" && /^\s*def(_(bool|tristate)|ault)\s+(\S.*)$/) { + } elsif (($state eq "DEP" || $state eq "NEW") && /^\s*def(_(bool|tristate)|ault)\s+(\S.*)$/) { my $dep = $3; if ($dep !~ /^\s*(y|m|n)\s*$/) { $dep =~ s/.*\sif\s+//; From patchwork Fri Sep 13 17:11:59 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: David Hunter X-Patchwork-Id: 13803856 Received: from mail-yb1-f170.google.com (mail-yb1-f170.google.com [209.85.219.170]) (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 7F0FC126BEA; Fri, 13 Sep 2024 17:12:45 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.219.170 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1726247567; cv=none; b=ORv7MwwH3u38L3n2ddCwCZ+z4Jfb22qRS/VBBLqh5VnfrJdj6vg7bhHjo6VWVK6EQ7JPxFDQ7ppt9WMiIFn1ZjZ5ZoEu4D+nfUPCrKEs39NcYhp35eDP3YILK3+QM6U9fBKrJZ4kME927x6NB3uFkkuWnZ3V/BX+p+Af4Wo+sI8= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1726247567; c=relaxed/simple; bh=SIkPlVRol/taIjaTDlehF8X8yskEweJFW8WetvyI4Cc=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=sQJRz/KrLB4REdQps1LpzX+mphBLmwr5zlvyuKEUy5qH0giiMHIUFt6ioJXK+vXdnUIfu/Tmwba4j/XIvQQ2lV6pqnzXEWOeCL9SUDgETMB7+zsRn5UzUd9Kqa/JocK8lOkwPLcJVyw2pTPkdKGbtTA6XLu3Cy2ZqKDtIb859Yo= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=E0wcaXpr; arc=none smtp.client-ip=209.85.219.170 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="E0wcaXpr" Received: by mail-yb1-f170.google.com with SMTP id 3f1490d57ef6-e05f25fb96eso1203359276.1; Fri, 13 Sep 2024 10:12:45 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1726247564; x=1726852364; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=dsEn+TQ9mze2i6QSH/8M8y8UocCy5ZXHseZjovcKxlk=; b=E0wcaXprZKiyqYkIP9WWfiSHo59qRSqP4R54G4z/VglriNPJ9glB3Dqx4VGsCYVNTw kou5F+dt3K/FeikrOQOhZBdzyGlPEKnEJmzfv3nvSaLonS92Nr1gq76XyEY73HJ9Iu/K 8khAJNBxjgH/zihEk4iyXDY7ASUbCaTYyUMC0sfJcuzA0YrDVukycU3ojtXhxpD3YRXq QkLWGILkd9pJFRaHleug8DoIn1jFy9jk3VZT38OLmbBcBJ/ka03TG8WTBIUWenHe88wz Cp2DGpcbW8u5uxSFZcEwJxU7BnM5Ji3Wnu3JE3C2vNnf/LV7ZxmZya/2pQeFwRQ8n4Op e9rA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1726247564; x=1726852364; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=dsEn+TQ9mze2i6QSH/8M8y8UocCy5ZXHseZjovcKxlk=; b=Ah33sYJS/2Dzd84mGUdDvp0xYZAlleh4kvEBKU30jswSZ0uwSssllehVSuMecVu+rz PQhbIB+ZU4QewrGlCZw2Jn2oGV/vixeEtAa8eWuk4wTLMjieyCpPS6lMFWJybLIprb6d G3PLSYa9sNIoKMejWHLnSwaNYIr9F3LJisos9dA5QRTo+vBQsGmR4v+ktpYx0iiilF5t kl/bggFQbmdxMTzCrntu2A7fXv6dtqFWcs3VxMcfI2osIjTnXNMebWOcvtK4j64IkCRQ fOkVbaN4K8xeV++n1enp8LBEO0tjWG3gwQlEg9qD4KR/XRsrgkvHn4ow3oiABKS+ZeDk mzaw== X-Forwarded-Encrypted: i=1; AJvYcCUHBEk91nwCCZQ+chOO8qgzxII/YvaG+nEe2WEiJjL0To6Eb2uJlnBVf2RFzgJZEMTdEuy8/CwAvSl2wGmT@vger.kernel.org, AJvYcCVTAm7kU68TMr2EW+JLqPyYboVLzHW1jMZPxyiuxd4dwFqsvlKHKzgEf9iMoRw91FRO6NqsOgYY+MBgTDY=@vger.kernel.org X-Gm-Message-State: AOJu0YzZLDu+L42YY8xkk1pMKu/c9qUYI9O2LwpljPxtLgj2RDtACPOl RRF+eaQQyTNCso+iCGmoDz6MBaPSylIHrvV9gtVf8ZQebhCXfFOq X-Google-Smtp-Source: AGHT+IEoAH1jNdEWRtjFtt9UCltLTlhXRbTfknwy3jFaoc7rs2r0MVreOK+xU5LT1JDKmFspSiJy3A== X-Received: by 2002:a05:6902:cc4:b0:e13:ca39:f80d with SMTP id 3f1490d57ef6-e1db00e4d6dmr2356368276.38.1726247564240; Fri, 13 Sep 2024 10:12:44 -0700 (PDT) Received: from localhost (57-135-107-183.static4.bluestreamfiber.net. [57.135.107.183]) by smtp.gmail.com with ESMTPSA id 3f1490d57ef6-e1d7bb96c3asm1457757276.45.2024.09.13.10.12.43 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 13 Sep 2024 10:12:43 -0700 (PDT) From: David Hunter To: Masahiro Yamada Cc: David Hunter , linux-kbuild@vger.kernel.org, linux-kernel@vger.kernel.org, shuah@kernel.org, javier.carrasco.cruz@gmail.com Subject: [PATCH 4/7] linux-kbuild: fix: ensure selected configs were turned on in original Date: Fri, 13 Sep 2024 13:11:59 -0400 Message-ID: <20240913171205.22126-5-david.hunter.linux@gmail.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20240913171205.22126-1-david.hunter.linux@gmail.com> References: <20240913171205.22126-1-david.hunter.linux@gmail.com> Precedence: bulk X-Mailing-List: linux-kbuild@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Ensure that only modules that were turned on in the original config are turned on in the new config file. When ensuring that the config dependencies are met, turning on the config options in the new config leads to warnings and errors later in this script, especially for badly constructed original config files. One example could be a config option that is depended on by a module needed in the new config but is not turned on in the original config file. If this config needs to be selected, warnings will show up in the standard output. Signed-off-by: David Hunter --- scripts/kconfig/streamline_config.pl | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/scripts/kconfig/streamline_config.pl b/scripts/kconfig/streamline_config.pl index bb1f19a1ab5e..26e544744579 100755 --- a/scripts/kconfig/streamline_config.pl +++ b/scripts/kconfig/streamline_config.pl @@ -459,7 +459,9 @@ sub parse_config_depends next; } - if (!defined($configs{$conf})) { + # This script does not turn on any modules, so make sure the config + # options are on in the original. + if (!defined($configs{$conf}) && defined($orig_configs{$conf})) { # We must make sure that this config has its # dependencies met. $repeat = 1; # do again From patchwork Fri Sep 13 17:12:00 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: David Hunter X-Patchwork-Id: 13803857 Received: from mail-yb1-f171.google.com (mail-yb1-f171.google.com [209.85.219.171]) (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 57095762DF; Fri, 13 Sep 2024 17:12:50 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.219.171 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1726247571; cv=none; b=arNm+v+Znl+d5/2SBQufB3KutXbyRqUeGFT9trsvUk7sGpP2KA0Pmq11oKq+kWV4U4I2o+L7wHKiLGticg/CkBx8EJKOxGqOAmK/w/RSfoqVVwX4c8UlFox3hCkZwD/fiSp8y7DpAYNvSCWy+UfpVwU1K7u+UEYEFPFITxXqtjk= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1726247571; c=relaxed/simple; bh=iKiZGOlY0P3Ifn3hVDmvpWc1e64qyBJUtKhvcTfCY28=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=VhReid1CN53EeUsr4vjkx0HMfG20QDO4PCnVir1UHZIFxVWiSe18EP0Ojg8Xx6OSqyz4qm1J20FOI2j5mvRA90Y0ZgYejLdRKlU0mU3AZVSqfBACY6JQRLWqkRDkAKYGXpCwXDbTfIghWnp67Z4kTXRktGe4sUIRHFe9L3ypNxg= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=ALxmBjNW; arc=none smtp.client-ip=209.85.219.171 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="ALxmBjNW" Received: by mail-yb1-f171.google.com with SMTP id 3f1490d57ef6-e1a9dc3f0a3so2423945276.0; Fri, 13 Sep 2024 10:12:50 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1726247569; x=1726852369; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=krJcDs9wAiY/y/9z3DHqKaf2fJkxI7RljuOApVnY2pM=; b=ALxmBjNWbJ1GZMW0B7yFuVUt5jayD8thNXUrEyGLeiG4Q7OeWnckN17bLyXYleGeZM i+keyp/q+x1P1kIwI5fy6csYEPHAKL3Js5yYCalOH/sARKs0XGW5qhrwvq53RO6uom1h 62DCq7Do6p6l9lcyEwvblxHf+JpVv59srRT70lnmgL851EWUSKWLts27T1xHO5CTLtVc kELLIfyQOVgV3dQjjvKVtTFAY9QeE6DshwdVTHRAZ9AQH4lvXoJ5Ltzy/ioH2OrYCQGO 2b15CJ7Pu+ztXJDu3JPKxFKrBae3RQMvgyquuT0u9mvmOleHuksa7mikoh72efBiQlli 8Mtw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1726247569; x=1726852369; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=krJcDs9wAiY/y/9z3DHqKaf2fJkxI7RljuOApVnY2pM=; b=fL5PN5FS4YoukmeP1/7vk9+PP6xoXk4haRPndjHKPjRL4mjJjErlzPE1c1LbyFwevR roqDw168nMY5rYgzdH3i8pK8Rvk6qfD/2mjlh6AcLLzGh7oMcl50Ntj3F8Ek3O4hNV9v 1TQd709yGHmjL1B6b7zPOq65HiPT5gvc0LTPU5eB36WbgIA3eTmgr9a4S6cpqpw2J38x WL2B0VRQG9eIM8xfShHgPAMlOzFkckToBDxPw18AxZqdfWpUDeZdmlRKBrW7Jf7d3g/z zmgM6c6bGsqvwXcutx1BArAxnxl56NypWzr0lIougSYPR+HO8qbPnsvzxPateZRWXfJz 92Hg== X-Forwarded-Encrypted: i=1; AJvYcCVjpG1apnFvjbrEGoErMP+rWbmwXXx9fBKmsmasrEC2GHPpZlIReqygj8AWlBgmHe707B4EB1qvPFhwK2tq@vger.kernel.org, AJvYcCVzPgHgaX/gHAS9sdpwudRpnSkNf8pNEAhFUjWgmr4vLY3H6FVFv4ShDYkkO4GvPtggkrVybE5Q01pGZ4o=@vger.kernel.org X-Gm-Message-State: AOJu0YyAZ4CAb8nBGUXf1wEINI8v4C4nlYqv716mAlwEJ2uklH2s7n/8 MSJ7uloL4isY+x/j6y9h2wPbP/4B/YjThEt9YkCBDu9KXfGrqDz+ X-Google-Smtp-Source: AGHT+IHBPR22iib2eCJp1QtXctX0T2ZoVFyQ8tmwZePQ1rvLgcLzh+N/y0MR0u9sqFeIHjQDKdia6A== X-Received: by 2002:a25:660a:0:b0:e1d:a2ac:2791 with SMTP id 3f1490d57ef6-e1da2ac2aa2mr4323539276.4.1726247568999; Fri, 13 Sep 2024 10:12:48 -0700 (PDT) Received: from localhost (57-135-107-183.static4.bluestreamfiber.net. [57.135.107.183]) by smtp.gmail.com with ESMTPSA id 3f1490d57ef6-e1d7bb96cccsm1464259276.50.2024.09.13.10.12.47 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 13 Sep 2024 10:12:48 -0700 (PDT) From: David Hunter To: Masahiro Yamada Cc: David Hunter , linux-kbuild@vger.kernel.org, linux-kernel@vger.kernel.org, shuah@kernel.org, javier.carrasco.cruz@gmail.com Subject: [PATCH 5/7] linux-kbuild: fix: implement choice for kconfigs Date: Fri, 13 Sep 2024 13:12:00 -0400 Message-ID: <20240913171205.22126-6-david.hunter.linux@gmail.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20240913171205.22126-1-david.hunter.linux@gmail.com> References: <20240913171205.22126-1-david.hunter.linux@gmail.com> Precedence: bulk X-Mailing-List: linux-kbuild@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Properly implement the config entries that are within the choice keyword for kconfig. Currently, the script only stops the previous config entry when a choice keyword is encountered. When the keyword "choice" is encountered, do the following: - distribute the lines immediately following the "choice" keyword to each config entry inside the "choice" section. - process the config entries with the distributed lines. Signed-off-by: David Hunter --- scripts/kconfig/streamline_config.pl | 40 ++++++++++++++++++++++++++-- 1 file changed, 38 insertions(+), 2 deletions(-) diff --git a/scripts/kconfig/streamline_config.pl b/scripts/kconfig/streamline_config.pl index 26e544744579..593df824ead7 100755 --- a/scripts/kconfig/streamline_config.pl +++ b/scripts/kconfig/streamline_config.pl @@ -162,6 +162,10 @@ sub read_kconfig { my $source = "$ksource/$kconfig"; my $last_source = ""; + my $choice_activated = 0; + my $distribute = 0; + my $dist_string; + # Check for any environment variables used while ($source =~ /\$\((\w+)\)/ && $last_source ne $source) { @@ -214,6 +218,19 @@ sub read_kconfig { $state = "DEP"; } + if($choice_activated) { + $distribute = 0; + my $config_lines = "$_\n" . "$dist_string"; + my $tmpconfig = ".choice.kconfig"; + open (my $FH, '>', $tmpconfig); + print $FH $config_lines; + close($FH); + + read_kconfig($tmpconfig); + unlink($tmpconfig) or die "Can't delete $tmpconfig: $!\n"; + } + + # collect the depends for the config } elsif ($state eq "NEW" && /^\s*depends\s+on\s+(.*)$/) { $state = "DEP"; @@ -258,8 +275,27 @@ sub read_kconfig { $iflevel-- if ($iflevel); # stop on "help" and keywords that end a menu entry - } elsif (/^\s*(---)?help(---)?\s*$/ || /^(comment|choice|menu)\b/) { - $state = "NONE"; + } elsif (/^\s*(---)?help(---)?\s*$/ || /^(comment|menu)\b/) { + $state = "NONE"; + + # for choice, distribute the lines before each config entry + # to each config entry + } elsif (/^\s*choice\b/) { + $state = "CHOICE"; + $choice_activated = 1; + $distribute = 1; + } elsif(/^\s*endchoice/) { + $choice_activated = 0; + $dist_string = ""; + } + + if($choice_activated && $distribute) { + # do not put 'choice' inside of string to distribute + if($state eq "CHOICE") { + $state = "NONE"; + } else { + $dist_string .= "$_\n"; + } } } close($kinfile); From patchwork Fri Sep 13 17:12:01 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: David Hunter X-Patchwork-Id: 13803858 Received: from mail-yb1-f169.google.com (mail-yb1-f169.google.com [209.85.219.169]) (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 4821884A3E; Fri, 13 Sep 2024 17:12:54 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.219.169 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1726247575; cv=none; b=VqhSueTDL6HHQjRISn9ahrQ0dki9sEp7krKuR+H1e6ZokPAs8XkyID6ys4CJJU9aaPGey6Qcl3n3ondsgCtmQYAkuov/tHpf0Zf5dB6ztkffbzvIvRWLLSL/wrE2Pk1zeHRAHW2UXU59gDcTO87uR84302ZnppGGuUCD2PBMnsI= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1726247575; c=relaxed/simple; bh=TLzqV7JCetuMQpbKD8ox1HRkwL53yAAApRdw9uVgWe0=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=Dj9bdMxlUq65t6dQPOPGWbEWGEpGDCE/PgpuZ8CPXo2jPqihN+fpeQ7VjNqshGNKig16bwaLBnr7SpSXgao1cXzGYBxsxiaIHlfCa5Whyey5CNv/sBG6vjtGdygrhLhBWqNJBhQdLqwYwtq/ODIGJgo6EduRSHLIhTfu8rix+EY= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=i/RuwGeM; arc=none smtp.client-ip=209.85.219.169 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="i/RuwGeM" Received: by mail-yb1-f169.google.com with SMTP id 3f1490d57ef6-e1d74e6c8d8so2083228276.1; Fri, 13 Sep 2024 10:12:54 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1726247573; x=1726852373; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=8TvV1jSvRh8sp3W0eroe8/faKX5tDFXGg0EdBYo0nkU=; b=i/RuwGeMEMbywXTljS7lUGIqC5F9h0+0nA5z5rojVyz9aTc7VQQr9eRJdz9ceIcNBT Hd2ASUqrVLx+TU2CzeAhA7aGg3avpuz9I8tcvmhUk/UCTQ0uIsHKY0ztgedCcXDeyUBi 3vzWtIG6atWkZefbeRHTC67B4kg+p42exo5mhahm9u5jn8T07N63T6Slip5JRBDGw8m9 nm7MLf4fKYTa20JmHzwlLUbVvjrB+dS3IK98UBOSu0XP2Ddja0fTSfm9saV7Ox2yVU1i hSu4NUzbbwyw+3JsBXrN1v8zSV+wS87uid6HVnLQHwsetAU0hNlas7QUK76nqnSe47TQ uezg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1726247573; x=1726852373; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=8TvV1jSvRh8sp3W0eroe8/faKX5tDFXGg0EdBYo0nkU=; b=MzbipSgY9DQLxX3IU7DWduhr5eGO2XFBt8mpLGHKnQBGdEgq5SgBRGI+J53j0A74Is PvCMhXIkAsObY8M0MKxoSSbL3h77PLGGrBYizrzbrAFg3VskUUpIIOeEzAzwF+Fwtb5r /ffmBEHTmeXymJq3JOQ1EYJGR0A0j0xYYROer1tohr2D8JLI+9pAU52XPuDbLD+jZjxB 12vUz/ftf8PCN2kZPHbnZKzi0JB/qCPFou/j+AYwTB516koDQ6XzPN7EeyldkkznSBMs GmgGQ2KSbN4zDHFbXttmBJGCwOfLKK1UgWTj1Kp6O63Cky4roGIXJGxS/maFiyFHWqEh axYw== X-Forwarded-Encrypted: i=1; AJvYcCUinJewP462ZCOTcf/p3aD7B00ooZ7WGNcZXRpr+aa4dhZ+NbcxHWOMqelrGBrxN4PNMMDMblzzLhQqsHrB@vger.kernel.org, AJvYcCVhESOCrfq+RWLUnRKUSu7KDN816FbCyDaIo1Vgk+hlPjQIV8ZkffgT0maaK3EXe8qDAayHPZQ+T/FRs30=@vger.kernel.org X-Gm-Message-State: AOJu0Yy57jiB00fNe9tH79LFBJkI7DBwppqBME03SED78LHHiugScvSE d7+utRXuViofEsOLS3cdGqW22yrxb3MBtrYVhZx8OHfs1ngaehO+ X-Google-Smtp-Source: AGHT+IGrIQauC18AGyz13ocW2nuLqlB0zfJ7U/6Fgg1mr4VhAvZhdgvQICFqmLKnpRU7hSW+w2Q8UQ== X-Received: by 2002:a05:690c:a88:b0:6d6:aa50:9266 with SMTP id 00721157ae682-6dbb6b17febmr66123797b3.17.1726247573284; Fri, 13 Sep 2024 10:12:53 -0700 (PDT) Received: from localhost (57-135-107-183.static4.bluestreamfiber.net. [57.135.107.183]) by smtp.gmail.com with ESMTPSA id 00721157ae682-6db9642827csm14437667b3.27.2024.09.13.10.12.52 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 13 Sep 2024 10:12:52 -0700 (PDT) From: David Hunter To: Masahiro Yamada Cc: David Hunter , linux-kbuild@vger.kernel.org, linux-kernel@vger.kernel.org, shuah@kernel.org, javier.carrasco.cruz@gmail.com Subject: [PATCH 6/7] linux-kbuild: fix: configs with defaults do not need a prompt Date: Fri, 13 Sep 2024 13:12:01 -0400 Message-ID: <20240913171205.22126-7-david.hunter.linux@gmail.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20240913171205.22126-1-david.hunter.linux@gmail.com> References: <20240913171205.22126-1-david.hunter.linux@gmail.com> Precedence: bulk X-Mailing-List: linux-kbuild@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Ignore process select warnings for config entries that have a default option. Some config entries have no prompt and nothing selects them, but these config options are okay because they have a default option. Signed-off-by: David Hunter --- scripts/kconfig/streamline_config.pl | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/scripts/kconfig/streamline_config.pl b/scripts/kconfig/streamline_config.pl index 593df824ead7..948437aac535 100755 --- a/scripts/kconfig/streamline_config.pl +++ b/scripts/kconfig/streamline_config.pl @@ -144,6 +144,7 @@ my %selects; my %prompts; my %objects; my %config2kfile; +my %defaults; my $var; my $iflevel = 0; my @ifdeps; @@ -239,6 +240,7 @@ sub read_kconfig { $depends{$config} .= " " . $1; } elsif (($state eq "DEP" || $state eq "NEW") && /^\s*def(_(bool|tristate)|ault)\s+(\S.*)$/) { my $dep = $3; + $defaults{$config} = 1 ; if ($dep !~ /^\s*(y|m|n)\s*$/) { $dep =~ s/.*\sif\s+//; $depends{$config} .= " " . $dep; @@ -561,8 +563,16 @@ sub parse_config_selects # If no possible config selected this, then something happened. if (!defined($next_config)) { - print STDERR "WARNING: $config is required, but nothing in the\n"; - print STDERR " current config selects it.\n"; + + # Some config options have no prompt, and nothing selects them, but + # they stay turned on once the final checks for the configs + # are done. These configs have a default option, so turn off the + # warnings for configs with default options. + if(!defined($defaults{$config})) { + print STDERR "WARNING: $config is required, but nothing in the\n"; + print STDERR " current config selects it.\n"; + } + return; } From patchwork Fri Sep 13 17:12:02 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: David Hunter X-Patchwork-Id: 13803859 Received: from mail-yw1-f176.google.com (mail-yw1-f176.google.com [209.85.128.176]) (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 88E6C81AD7; Fri, 13 Sep 2024 17:12:59 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.128.176 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1726247581; cv=none; b=io8FjfRorMQbe6t3lWWO6vmsVBDR4q4H3kAiLe7H19qHu/2Ku9U5owG8evtDVhrHVBNDnIYP7WFG6IZgMS/o9HKw0/Y8gbp6dTNsgLn9jQHnD41+1cv6uwg4i5Hq5PAIc+WNZejYSEzyTnX0pK3e8kdMtL1pahXTctTxO58n6L8= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1726247581; c=relaxed/simple; bh=h2FS9wwlMOv3wwf7neE4FpMtuEaNqT5ZsukaE4Ktdyc=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=EeI4JhjAkctaQc+ec8TZyyrFeaCY5PJ29/IvNaN0R5jpdP0xjU3COydCOysoURaoX8tpkrgaloklnInI5vSK1SvVk44AVMYQlcEEwRNPOkXjRRqkwdDoeDyI7G7Lmg+6SYNko8rqTt0UwjxKtXpyJX0CbCgZOSfxseRCjYdj6Vc= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=cGBlSBYB; arc=none smtp.client-ip=209.85.128.176 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="cGBlSBYB" Received: by mail-yw1-f176.google.com with SMTP id 00721157ae682-68518bc1407so12498967b3.2; Fri, 13 Sep 2024 10:12:59 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1726247578; x=1726852378; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=lodPUkw76M0wAYUAWlmowp4aeuvIBGM0yxAx9nJPMd8=; b=cGBlSBYBR/SV+Ph88pNTKmVLFOIsbxXsvTbljGFVqqIO9dD17sWQiwPaNqxSaUTN0V IBqSQt3Hv0GMecShVJICjZytsleG9MTH1JOb0aPLfNvt2Os7qassAXd5hSfShHzVrHWR gTBv/LQXPYNzMNx6XrPNuOph4jyaOAbfn0Hs/wtTXBC6ZSYGJ0eO3yC5/9K0fZ7FMLoo XHREygbccNLFjYxb9CmLnNcCgjihYlebbOZ9V2YFkPbI4onpl6mkop7sSwRwI4nRT/Qw HNAy+RdZCJ5fDjxAqEOj+Ewbkcv/VlJDnuXbOI/pS97mVndphjNrtHyy/cUF4MVHEL3h TiFQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1726247578; x=1726852378; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=lodPUkw76M0wAYUAWlmowp4aeuvIBGM0yxAx9nJPMd8=; b=u/TCzRN3mCFlFLI9EUj3+W1XnLlxbhprsISiG0S+1wKeFZCeUF4LNWpCHNjPW3JE18 wf37gOq0zBGzQJsOCL9l5uSHcEeooCV4cOPX/+4ey5wdLMiARaVDTTA/g2eUXFXu63ns Y+KqiyzUysh4zsXHkP2Zh0xkc/QrV5TGxpZgQv9d6AFsMBaRsIW6fxczdTrFiAQLn0nu cX7R3yIDyudczkqEYKy1C/2olaC8YDa8LEp+D5eTZ1cc1rFRhNWiau1D66ERFvJ6Gdly aPHb7ryMMsa5bHYivFu4hFedEEl2y+zp5aeBFDqJYIBFHmFvrgfIjybvYE5couHa3Hhh UBog== X-Forwarded-Encrypted: i=1; AJvYcCV4biVfaFf2+hd9cayToO3Clv9rb8lUTTTeor0802EtqfdJ/xq/7HiaD1trhvw//cysBk9X1O64qQ/HbzI=@vger.kernel.org, AJvYcCX2iw+h/3sC0+t3mAanC8zAQ6HLIYHgetkAAlzcTwFllxK4akh51V2/jJwz70iXX6sMbSdA66S5jmDg4ZPu@vger.kernel.org X-Gm-Message-State: AOJu0YxyduXTpBcp8Ny87K5scEx7lRweRjUIiWS7petRqZZmcPm06W3/ zIAk3hEGKaOe+vbsmdQzpzpqkyx396FgrM07gewwDs9k+kh4MRFq X-Google-Smtp-Source: AGHT+IGuj4Rn/rdl6gaT3L62kE+18YqQTACYO1y2rAI4rwYpCNJoWUqwgYsIAvywKbqcCbRqeUPKjg== X-Received: by 2002:a05:690c:1d:b0:66a:ba89:d671 with SMTP id 00721157ae682-6dbcc5565bdmr35564967b3.35.1726247578555; Fri, 13 Sep 2024 10:12:58 -0700 (PDT) Received: from localhost (57-135-107-183.static4.bluestreamfiber.net. [57.135.107.183]) by smtp.gmail.com with ESMTPSA id 00721157ae682-6db9642d024sm14632357b3.4.2024.09.13.10.12.57 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 13 Sep 2024 10:12:58 -0700 (PDT) From: David Hunter To: Masahiro Yamada Cc: David Hunter , linux-kbuild@vger.kernel.org, linux-kernel@vger.kernel.org, shuah@kernel.org, javier.carrasco.cruz@gmail.com Subject: [PATCH 7/7] linux-kbuild: fix: process config options set to "y" Date: Fri, 13 Sep 2024 13:12:02 -0400 Message-ID: <20240913171205.22126-8-david.hunter.linux@gmail.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20240913171205.22126-1-david.hunter.linux@gmail.com> References: <20240913171205.22126-1-david.hunter.linux@gmail.com> Precedence: bulk X-Mailing-List: linux-kbuild@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 The goal of "make localmodconfig" is to turn off modules that are not necessary. Some modules are necessary because they are depended on by config options set with a "y." Process configs set to "y" so that the modules that are depended on will not be turned off later. Signed-off-by: David Hunter --- scripts/kconfig/streamline_config.pl | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/scripts/kconfig/streamline_config.pl b/scripts/kconfig/streamline_config.pl index 948437aac535..762bf80408c7 100755 --- a/scripts/kconfig/streamline_config.pl +++ b/scripts/kconfig/streamline_config.pl @@ -466,6 +466,11 @@ foreach my $line (@config_file) { if (/(CONFIG_[$valid]*)=(m|y)/) { $orig_configs{$1} = $2; + # all configs options set to 'y' need to be processed + if($2 eq "y") { + $configs{$1}= $2; + } + } } @@ -596,9 +601,11 @@ sub loop_depend { forloop: foreach my $config (keys %configs) { - # If this config is not a module, we do not need to process it - if (defined($orig_configs{$config}) && $orig_configs{$config} ne "m") { - next forloop; + # If this config is not set in the original config, + # we do not need to process it + if (defined($orig_configs{$config}) && $orig_configs{$config} ne "m" + && $orig_configs{$config} ne "y") { + next forloop; } $config =~ s/^CONFIG_//;