Patchwork [2/6] linux-yocto-custom: provide defconfig guidance

login
register
mail settings
Submitter Bruce Ashfield
Date May 5, 2014, 2:10 p.m.
Message ID <09e275e174b670b511ee001ea7ef91077a0781df.1399297986.git.bruce.ashfield@windriver.com>
Download mbox | patch
Permalink /patch/71517/
State Accepted
Commit 70b11e54ffaa87e008bee444241cddf29f92f6bb
Headers show

Comments

Bruce Ashfield - May 5, 2014, 2:10 p.m.
As reported by Andrea, defconfigs created with savedefconfig should specify
their expansion mode as "--alldefconfig' for custom yocto recipes. To ensure
that this is documented, we can add a comment in the skeleton recipe.

Reported-by: Andrea Adami <andrea.adami@gmail.com>
Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
---
 meta-skeleton/recipes-kernel/linux/linux-yocto-custom.bb | 10 ++++++++++
 1 file changed, 10 insertions(+)

Patch

diff --git a/meta-skeleton/recipes-kernel/linux/linux-yocto-custom.bb b/meta-skeleton/recipes-kernel/linux/linux-yocto-custom.bb
index c3291064bb15..b1a0784c1b7d 100644
--- a/meta-skeleton/recipes-kernel/linux/linux-yocto-custom.bb
+++ b/meta-skeleton/recipes-kernel/linux/linux-yocto-custom.bb
@@ -32,6 +32,16 @@ 
 #   patches: patches can be merged into to the source git tree itself,
 #            added via the SRC_URI, or controlled via a BSP
 #            configuration.
+#
+#   defconfig: When a defconfig is provided, the linux-yocto configuration
+#              uses the filename as a trigger to use a 'allnoconfig' baseline
+#              before merging the defconfig into the build. 
+#
+#              If the defconfig file was created with make_savedefconfig, 
+#              not all options are specified, and should be restored with their
+#              defaults, not set to 'n'. To properly expand a defconfig like
+#              this, specify: KCONFIG_MODE="--alldefconfig" in the kernel
+#              recipe.
 #   
 #   example configuration addition:
 #            SRC_URI += "file://smp.cfg"