meta-skeleton: Add busybox config fragment example
PATCH v3 2/2 meta-skeleton: Add busybox config fragment example
This shows an example of the config fragment support that both the linux-yocto and busybox recipes use. This example is specific to busybox.
By adding busybox CONFIG options into a .cfg file and then adding that .cfg file to SRC_URI the merge_config.sh script will correctly handle these CONFIG options during the do_configure task. The merge_config.sh script uses a last-in wins method.
For more details about this, see the Kernel Development Manual Section 2.2.3
http://www.yoctoproject.org/docs/current/kernel-dev/kernel-dev.html#changing-the-configuration
v2: fixed FILESEXTRAPATHS
v3: Fixed kconfig line and added comments
--- meta-skeleton/recipes-core/busybox/busybox/no_rfkill.cfg | 1 + meta-skeleton/recipes-core/busybox/busybox_1.21.1.bbappend | 12 +++++ 2 files changed, 6 insertions(+) create mode 100644 meta-skeleton/recipes-core/busybox/busybox/no_rfkill.cfg create mode 100644 meta-skeleton/recipes-core/busybox/busybox_1.21.1.bbappend
meta-skeleton/recipes-core/busybox/busybox/no_rfkill.cfg new file +1 -0
@@ -0,0 +1 @@ +# CONFIG_RFKILL is not set
meta-skeleton/recipes-core/busybox/busybox_1.21.1.bbappend new file +12 -0
@@ -0,0 +1,12 @@ +# Example use of configuration fragments for busybox, which uses the same +# mechanism as the linux-yocto kernel recipe. +# +# The entries here will override any entries in the base busybox recipe +# +# More details can be found in the Kernel Dev Manual +# http://www.yoctoproject.org/docs/current/kernel-dev/kernel-dev.html#changing-the-configuration +FILESEXTRAPATHS_prepend := "${THISDIR}/${PN}:" + +SRC_URI += " \ + file://no_rfkill.cfg \ + "
Signature · 1 line
1.8.1.4
Quoted 9 lines · Saul Wold
This shows an example of the config fragment support that both the linux-yocto and busybox recipes use. This example is specific to busybox.
By adding busybox CONFIG options into a .cfg file and then adding that .cfg file to
SRC_URIthemerge_config.shscript will correctly handle these CONFIG options during thedo_configuretask. Themerge_config.shscript uses a last-in wins method.
Quoted 7 lines
For more details about this, see the Kernel Development Manual Section 2.2.3
http://www.yoctoproject.org/docs/current/kernel-dev/kernel-dev.html#changing-the-configurationv2: fixed FILESEXTRAPATHS
v3: Fixed kconfig line and added commentsSigned-off-by Saul Wold <[email protected]>
Quoted 32 lines
--- meta-skeleton/recipes-core/busybox/busybox/no_rfkill.cfg | 1 + meta-skeleton/recipes-core/busybox/busybox_1.21.1.bbappend | 12 +++++ 2 files changed, 6 insertions(+) create mode 100644 meta-skeleton/recipes-core/busybox/busybox/no_rfkill.cfg create mode 100644 meta-skeleton/recipes-core/busybox/busybox_1.21.1.bbappendmeta-skeleton/recipes-core/busybox/busybox/no_rfkill.cfg new file +1
-0@@ -0,0 +1 @@ +# CONFIG_RFKILL is not setmeta-skeleton/recipes-core/busybox/busybox_1.21.1.bbappend new file +12
-0@@ -0,0 +1,12 @@ +# Example use of configuration fragments for busybox, which uses the same +# mechanism as the linux-yocto kernel recipe. +# +# The entries here will override any entries in the base busybox recipe +# +# More details can be found in the Kernel Dev Manual +# http://www.yoctoproject.org/docs/current/kernel-dev/kernel-dev.html#changing-the-configuration +FILESEXTRAPATHS_prepend := "${THISDIR}/${PN}:" + +SRC_URI += " \ + file://no_rfkill.cfg \ + "
Signature · 3 lines
Darren Hart Intel Open Source Technology Center Yocto Project - Linux Kernel