config.common.ubuntu and annotations problem CONFIG_SND_MAX_CARDS
Kleber Souza
kleber.souza at canonical.com
Tue Sep 15 07:44:00 UTC 2020
Hi Oliver,
On 13.09.20 20:32, Olivier SCHMITT wrote:
> Hello Dear All,
>
>
> I just wanted to point out that when changing the CONFIG_SND_MAX_CARDS parameter from 32 to eg 256.
>
> In the files:
>
> ./kernels/ubuntu-focal/debian.master/config/config.common.ubuntu
> ./ubuntu-focal.sav/debian.master/config/annotations
>
> the CONFIG_SND_MAX_CARDS parameters stay on:
> CONFIG_SND_MAX_CARDS policy<{'amd64': '32', 'arm64': '32', 'armhf': '32', 'i386': '32', 'ppc64el': '32', }>
>
> To finish kernel compilation i have to change to this manualy:
> CONFIG_SND_MAX_CARDS policy<{'amd64': '256', 'arm64': '256', 'armhf': '256', 'i386': '256', 'ppc64el': '256', }>
This is exactly what the annotations file was designed for. It's a mechanism used to
prevent config options to be changed either by "accident" or without the knowledge
why the current value was chosen in the past.
This is more useful for the Ubuntu Kernel team though, to help us make judgments
about config changes in order to not regress or have a negative impact on users.
If you are building a custom kernel and need to change some config options,
the enforcement of the annotations might not be so useful. In order to disable
it, you can edit the file 'debian.master/rules.d/hooks.mk' and either set
'do_enforce_all' to false or remove it from the file.
I hope it helps.
Best regards,
Kleber
More information about the kernel-team
mailing list