The standard linux-yocto builds using config fragments, but it's a supported option to use the standard defconfig.
However, our enhanced config checking means that defconfig will often cause configure warnings. Add a test suite that exercises a defconfig build is successful without any warnings. Signed-off-by: Ross Burton <ross.bur...@arm.com> --- .../oeqa/selftest/cases/kerneldevelopment.py | 20 ++++++++++++++++++- 1 file changed, 19 insertions(+), 1 deletion(-) diff --git a/meta/lib/oeqa/selftest/cases/kerneldevelopment.py b/meta/lib/oeqa/selftest/cases/kerneldevelopment.py index b1623a1885..a0e770071c 100644 --- a/meta/lib/oeqa/selftest/cases/kerneldevelopment.py +++ b/meta/lib/oeqa/selftest/cases/kerneldevelopment.py @@ -1,6 +1,6 @@ import os from oeqa.selftest.case import OESelftestTestCase -from oeqa.utils.commands import runCmd, get_bb_var +from oeqa.utils.commands import bitbake, runCmd, get_bb_var from oeqa.utils.git import GitRepo class KernelDev(OESelftestTestCase): @@ -65,3 +65,21 @@ class KernelDev(OESelftestTestCase): self.assertTrue(os.path.exists(readme)) result = runCmd('tail -n 1 %s' % readme) self.assertEqual(result.output, patch_content) + + +class KernelConfigs(OESelftestTestCase): + def test_defconfig(self): + """ + Test that a kernel build with the default defconfig doesn't produce any + build warnings from the config checker. + """ + self.write_config(''' +KCONF_AUDIT_LEVEL = "1" +KMETA_AUDIT_WERROR = "1" +KBUILD_DEFCONFIG = "unset" +KBUILD_DEFCONFIG:aarch64 = "defconfig" +KBUILD_DEFCONFIG:x86-64 = "x86_64_defconfig" +# BSPs can append KERNEL_FEATURES, so force it empty so we just use defconfig +KERNEL_FEATURES:forcevariable = "" +''') + bitbake('virtual/kernel -c kernel_configcheck -f') -- 2.25.1
-=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#160401): https://lists.openembedded.org/g/openembedded-core/message/160401 Mute This Topic: https://lists.openembedded.org/mt/88348769/21656 Group Owner: openembedded-core+ow...@lists.openembedded.org Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub [arch...@mail-archive.com] -=-=-=-=-=-=-=-=-=-=-=-