* [PATCH v2] native.bbclass: populate native recipe with it's files
@ 2017-03-02 23:25 Saul Wold
2017-03-02 23:37 ` Wold, Saul
0 siblings, 1 reply; 2+ messages in thread
From: Saul Wold @ 2017-03-02 23:25 UTC (permalink / raw)
To: openembedded-core, richard.purdie
This allows a native package's recipe-sysroot-native to be populated with
that packages native image files. This in turns allows it to be used by
scripts or other tools without creating un-necessary DEPENDS.
An example of this is systemtap-native and the crosstap script.
Signed-off-by: Saul Wold <sgw@linux.intel.com>
---
v2: removed the "before do_build"
meta/classes/native.bbclass | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/meta/classes/native.bbclass b/meta/classes/native.bbclass
index ec91fc3..6becf82 100644
--- a/meta/classes/native.bbclass
+++ b/meta/classes/native.bbclass
@@ -174,6 +174,11 @@ python native_virtclass_handler () {
addhandler native_virtclass_handler
native_virtclass_handler[eventmask] = "bb.event.RecipePreFinalise"
+python do_addto_recipe_sysroot () {
+ bb.build.exec_func("extend_recipe_sysroot", d)
+}
+addtask addto_recipe_sysroot after do_populate_sysroot
+
inherit nopackages
do_packagedata[stamp-extra-info] = ""
--
2.7.4
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH v2] native.bbclass: populate native recipe with it's files
2017-03-02 23:25 [PATCH v2] native.bbclass: populate native recipe with it's files Saul Wold
@ 2017-03-02 23:37 ` Wold, Saul
0 siblings, 0 replies; 2+ messages in thread
From: Wold, Saul @ 2017-03-02 23:37 UTC (permalink / raw)
To: openembedded-core@lists.openembedded.org,
richard.purdie@linuxfoundation.org
Drop this, apparently Richard already applied this and I was looking at
an older master branch when I sent this.
Sau!
On Thu, 2017-03-02 at 15:25 -0800, Saul Wold wrote:
> This allows a native package's recipe-sysroot-native to be populated
> with
> that packages native image files. This in turns allows it to be used
> by
> scripts or other tools without creating un-necessary DEPENDS.
>
> An example of this is systemtap-native and the crosstap script.
>
> Signed-off-by: Saul Wold <sgw@linux.intel.com>
> ---
> v2: removed the "before do_build"
> meta/classes/native.bbclass | 5 +++++
> 1 file changed, 5 insertions(+)
>
> diff --git a/meta/classes/native.bbclass
> b/meta/classes/native.bbclass
> index ec91fc3..6becf82 100644
> --- a/meta/classes/native.bbclass
> +++ b/meta/classes/native.bbclass
> @@ -174,6 +174,11 @@ python native_virtclass_handler () {
> addhandler native_virtclass_handler
> native_virtclass_handler[eventmask] = "bb.event.RecipePreFinalise"
>
> +python do_addto_recipe_sysroot () {
> + bb.build.exec_func("extend_recipe_sysroot", d)
> +}
> +addtask addto_recipe_sysroot after do_populate_sysroot
> +
> inherit nopackages
>
> do_packagedata[stamp-extra-info] = ""
> --
> 2.7.4
>
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2017-03-02 23:37 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-03-02 23:25 [PATCH v2] native.bbclass: populate native recipe with it's files Saul Wold
2017-03-02 23:37 ` Wold, Saul
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox