All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 1/2] meta-skeleton: layer.conf should also have .bbappend in BBFILES
@ 2013-08-13 16:44 Saul Wold
  2013-08-13 16:44 ` [PATCH 2/2] meta-skeleton: Add busybox config fragment example Saul Wold
  0 siblings, 1 reply; 3+ messages in thread
From: Saul Wold @ 2013-08-13 16:44 UTC (permalink / raw)
  To: openembedded-core

This will allow for an example recipe with a .bbappend to be found, such as
busybox or kernel configure fragments.

Signed-off-by: Saul Wold <sgw@linux.intel.com>
---
 meta-skeleton/conf/layer.conf | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/meta-skeleton/conf/layer.conf b/meta-skeleton/conf/layer.conf
index 99830d8..aca1633 100644
--- a/meta-skeleton/conf/layer.conf
+++ b/meta-skeleton/conf/layer.conf
@@ -2,7 +2,7 @@
 BBPATH .= ":${LAYERDIR}"
 
 # We have recipes-* directories, add to BBFILES
-BBFILES += "${LAYERDIR}/recipes-*/*/*.bb"
+BBFILES += "${LAYERDIR}/recipes-*/*/*.bb ${LAYERDIR}/recipes-*/*/*.bbappend"
 
 BBFILE_COLLECTIONS += "skeleton"
 BBFILE_PATTERN_skeleton = "^${LAYERDIR}/"
-- 
1.8.1.4



^ permalink raw reply related	[flat|nested] 3+ messages in thread

* [PATCH 2/2] meta-skeleton: Add busybox config fragment example
  2013-08-13 16:44 [PATCH 1/2] meta-skeleton: layer.conf should also have .bbappend in BBFILES Saul Wold
@ 2013-08-13 16:44 ` Saul Wold
  2013-08-13 17:18   ` Darren Hart
  0 siblings, 1 reply; 3+ messages in thread
From: Saul Wold @ 2013-08-13 16:44 UTC (permalink / raw)
  To: openembedded-core

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.

Signed-off-by: Saul Wold <sgw@linux.intel.com>
---
 meta-skeleton/recipes-core/busybox/busybox/no_rfkill.cfg   | 1 +
 meta-skeleton/recipes-core/busybox/busybox_1.21.1.bbappend | 5 +++++
 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

diff --git a/meta-skeleton/recipes-core/busybox/busybox/no_rfkill.cfg b/meta-skeleton/recipes-core/busybox/busybox/no_rfkill.cfg
new file mode 100644
index 0000000..42c6730
--- /dev/null
+++ b/meta-skeleton/recipes-core/busybox/busybox/no_rfkill.cfg
@@ -0,0 +1 @@
+CONFIG_RFKILL=n
diff --git a/meta-skeleton/recipes-core/busybox/busybox_1.21.1.bbappend b/meta-skeleton/recipes-core/busybox/busybox_1.21.1.bbappend
new file mode 100644
index 0000000..641f04a4
--- /dev/null
+++ b/meta-skeleton/recipes-core/busybox/busybox_1.21.1.bbappend
@@ -0,0 +1,5 @@
+FILESEXTRAPATHS := "${THISDIR}/${PN}"
+
+SRC_URI += " \
+	    file://no_rfkill.cfg \
+           "
-- 
1.8.1.4



^ permalink raw reply related	[flat|nested] 3+ messages in thread

* Re: [PATCH 2/2] meta-skeleton: Add busybox config fragment example
  2013-08-13 16:44 ` [PATCH 2/2] meta-skeleton: Add busybox config fragment example Saul Wold
@ 2013-08-13 17:18   ` Darren Hart
  0 siblings, 0 replies; 3+ messages in thread
From: Darren Hart @ 2013-08-13 17:18 UTC (permalink / raw)
  To: Saul Wold; +Cc: openembedded-core

On Tue, 2013-08-13 at 09:44 -0700, Saul Wold wrote:
> 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.
> 
> Signed-off-by: Saul Wold <sgw@linux.intel.com>
> ---
>  meta-skeleton/recipes-core/busybox/busybox/no_rfkill.cfg   | 1 +
>  meta-skeleton/recipes-core/busybox/busybox_1.21.1.bbappend | 5 +++++
>  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
> 
> diff --git a/meta-skeleton/recipes-core/busybox/busybox/no_rfkill.cfg b/meta-skeleton/recipes-core/busybox/busybox/no_rfkill.cfg
> new file mode 100644
> index 0000000..42c6730
> --- /dev/null
> +++ b/meta-skeleton/recipes-core/busybox/busybox/no_rfkill.cfg
> @@ -0,0 +1 @@
> +CONFIG_RFKILL=n

I would have thought "# CONFIG_RFKILL is not set" would have been the
correct string here.

Otherwise, thanks for doing this, this is a great use of meta-skeleton.

> diff --git a/meta-skeleton/recipes-core/busybox/busybox_1.21.1.bbappend b/meta-skeleton/recipes-core/busybox/busybox_1.21.1.bbappend
> new file mode 100644
> index 0000000..641f04a4
> --- /dev/null
> +++ b/meta-skeleton/recipes-core/busybox/busybox_1.21.1.bbappend
> @@ -0,0 +1,5 @@
> +FILESEXTRAPATHS := "${THISDIR}/${PN}"
> +
> +SRC_URI += " \
> +	    file://no_rfkill.cfg \
> +           "

-- 
Darren Hart
Intel Open Source Technology Center
Yocto Project - Linux Kernel




^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2013-08-13 17:18 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-08-13 16:44 [PATCH 1/2] meta-skeleton: layer.conf should also have .bbappend in BBFILES Saul Wold
2013-08-13 16:44 ` [PATCH 2/2] meta-skeleton: Add busybox config fragment example Saul Wold
2013-08-13 17:18   ` Darren Hart

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.