diff --git a/kernel/configs/README.md b/kernel/configs/README.md index 7e9a5e668c..e664095b44 100644 --- a/kernel/configs/README.md +++ b/kernel/configs/README.md @@ -55,6 +55,12 @@ into a fragment. If adding config entries for a new subsystem or feature, consider making a new fragment with an appropriately descriptive name. +If you want to disable an entire fragment for a specific architecture, you can add the tag `# !${arch}` in the first line of the fragment. You can also exclude multiple architectures on the same line. Note the `#` at the beginning of the line, this is required to avoid that the tag is interpreted as a configuration. +Example of valid exclusion: +``` +# !s390x !ppc64le +``` + The fragment gathering tool perfoms some basic sanity checks, and the `build-kernel.sh` will fail and report the error in the cases of: