-
Notifications
You must be signed in to change notification settings - Fork 173
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix setting a config with an already-existing conflicting value #300
Fix setting a config with an already-existing conflicting value #300
Conversation
Thank you for the patch. Could you please split
into a separate patch? Also, could you amend the commit message and give an example, that didn’t work before, and works now? |
Fix setting a config value in kconfig-inclusions when there's already a conflicting existing value in defconfig. For example, setting CONFIG_SYSTEM_TRUSTED_KEYS would have no effect, because there would already be a setting for this specified by Debian's default config. With this, it _might_ be possible to remove the need for kconfig-force-inclusions, but that still needs to be checked. Signed-off-by: Saikrishna Arcot <sarcot@microsoft.com>
Becuase of kpatch-inclusions having quotes around the string, but the value from `scripts/config` having the quotes stripped, the comparison fails due to one side having quotes but the other side not having quotes. This effectively adds support for setting string kconfigs in kconfig-inclusion. Signed-off-by: Saikrishna Arcot <sarcot@microsoft.com>
7161c29
to
7f8d898
Compare
Commits have been split into two separate commits |
@davidpil2002 could you confirm that with this fix, you can overwrite |
@saiarcot895 its still not working so well, pls see the error below:
In the kconfig-inclusion I add the follow values:
Note: So for now, I will not include your fix. |
@davidpil2002 kindly reminder to review and confirm so we can merge this one. |
Hi @liat-grozovik , I reviewed/tested locally the community fix, it's solved some config entries, but still had errors and not supported all the kernel configuration that required. |
For With them in |
well in general Linux kernel config support setting |
@saiarcot895 |
@davidpil2002 I can, but for using my fix, you don't need me to update the sonic-buildimage pointer. You should be able to rebase your private branch on top of the current master branch (or do a merge from the current master branch) and test your changes that way. |
Backport of #298 & #300 In order to support the Secure Boot feature it required some modifications when building the Linux Kernel. This PR contained the kernel configuration aggregations to support it. sonic-buildimage PR link: sonic-net/sonic-buildimage#14963 HLD: sonic-net/SONiC#1028
Fix setting a config value in kconfig-inclusions when there's already a conflicting existing value in defconfig.
For example, trying to overwrite
CONFIG_SYSTEM_TRUSTED_KEYS
would have no effect, because there's already a value specified in the file, and the existing value takes precedence.Also support verifying the value of strings (and not just y/m/n settings).
CONFIG_SYSTEM_TRUSTED_KEYS
takes a string value, and the current code doesn't completely handle strings.Fixes #299.
Signed-off-by: Saikrishna Arcot sarcot@microsoft.com