* [PATCH 0/2] Patches pending from O.S. Systems' tree
@ 2012-02-08 12:22 Otavio Salvador
2012-02-08 12:22 ` [PATCH 1/2] cross.bbclass: add virtclass handler Otavio Salvador
` (2 more replies)
0 siblings, 3 replies; 4+ messages in thread
From: Otavio Salvador @ 2012-02-08 12:22 UTC (permalink / raw)
To: openembedded-core
This has removed the map_dependencies from the cross class as we were
handling those by hand anyway in meta-chicken.
The following changes since commit 06b740d4ca077fb4c89ee6d1065fabb02da45ec6:
classes/buildhistory: sort list fields in package info (2012-02-08 10:43:01 +0000)
are available in the git repository at:
git://github.com/OSSystems/oe-core master
https://github.com/OSSystems/oe-core/tree/HEAD
Otavio Salvador (2):
cross.bbclass: add virtclass handler
useradd.bbclass: skip processing on virtclass-cross extended packages
meta/classes/cross.bbclass | 17 +++++++++++++++++
meta/classes/useradd.bbclass | 3 +++
2 files changed, 20 insertions(+), 0 deletions(-)
--
1.7.2.5
^ permalink raw reply [flat|nested] 4+ messages in thread
* [PATCH 1/2] cross.bbclass: add virtclass handler
2012-02-08 12:22 [PATCH 0/2] Patches pending from O.S. Systems' tree Otavio Salvador
@ 2012-02-08 12:22 ` Otavio Salvador
2012-02-08 12:22 ` [PATCH 2/2] useradd.bbclass: skip processing on virtclass-cross extended packages Otavio Salvador
2012-02-10 15:54 ` [PATCH 0/2] Patches pending from O.S. Systems' tree Saul Wold
2 siblings, 0 replies; 4+ messages in thread
From: Otavio Salvador @ 2012-02-08 12:22 UTC (permalink / raw)
To: openembedded-core
Allow use of BBCLASSEXTEND with 'cross' and use of virtclass-cross in
recipes.
Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
---
meta/classes/cross.bbclass | 17 +++++++++++++++++
1 files changed, 17 insertions(+), 0 deletions(-)
diff --git a/meta/classes/cross.bbclass b/meta/classes/cross.bbclass
index 5681ab9..8da3048 100644
--- a/meta/classes/cross.bbclass
+++ b/meta/classes/cross.bbclass
@@ -55,6 +55,23 @@ libexecdir = "${exec_prefix}/libexec/${CROSS_TARGET_SYS_DIR}"
do_populate_sysroot[sstate-inputdirs] = "${SYSROOT_DESTDIR}/${STAGING_DIR_NATIVE}"
+python cross_virtclass_handler () {
+ if not isinstance(e, bb.event.RecipePreFinalise):
+ return
+
+ classextend = e.data.getVar('BBCLASSEXTEND', True) or ""
+ if "cross" not in classextend:
+ return
+
+ pn = e.data.getVar("PN", True)
+ if not pn.endswith("-cross"):
+ return
+
+ bb.data.setVar("OVERRIDES", e.data.getVar("OVERRIDES", False) + ":virtclass-cross", e.data)
+}
+
+addhandler cross_virtclass_handler
+
do_install () {
oe_runmake 'DESTDIR=${D}' install
}
--
1.7.2.5
^ permalink raw reply related [flat|nested] 4+ messages in thread
* [PATCH 2/2] useradd.bbclass: skip processing on virtclass-cross extended packages
2012-02-08 12:22 [PATCH 0/2] Patches pending from O.S. Systems' tree Otavio Salvador
2012-02-08 12:22 ` [PATCH 1/2] cross.bbclass: add virtclass handler Otavio Salvador
@ 2012-02-08 12:22 ` Otavio Salvador
2012-02-10 15:54 ` [PATCH 0/2] Patches pending from O.S. Systems' tree Saul Wold
2 siblings, 0 replies; 4+ messages in thread
From: Otavio Salvador @ 2012-02-08 12:22 UTC (permalink / raw)
To: openembedded-core
Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
---
meta/classes/useradd.bbclass | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
diff --git a/meta/classes/useradd.bbclass b/meta/classes/useradd.bbclass
index 8eb6444..1fed755 100644
--- a/meta/classes/useradd.bbclass
+++ b/meta/classes/useradd.bbclass
@@ -3,6 +3,7 @@
# and support files needed to add and modify user and group accounts
DEPENDS_append = "${USERADDDEPENDS}"
USERADDDEPENDS = " base-passwd shadow-native shadow-sysroot shadow"
+USERADDDEPENDS_virtclass-cross = ""
USERADDDEPENDS_virtclass-native = ""
USERADDDEPENDS_virtclass-nativesdk = ""
@@ -104,10 +105,12 @@ useradd_sysroot_sstate () {
do_install[prefuncs] += "${SYSROOTFUNC}"
SYSROOTFUNC = "useradd_sysroot"
+SYSROOTFUNC_virtclass-cross = ""
SYSROOTFUNC_virtclass-native = ""
SYSROOTFUNC_virtclass-nativesdk = ""
SSTATEPREINSTFUNCS += "${SYSROOTPOSTFUNC}"
SYSROOTPOSTFUNC = "useradd_sysroot_sstate"
+SYSROOTPOSTFUNC_virtclass-cross = ""
SYSROOTPOSTFUNC_virtclass-native = ""
SYSROOTPOSTFUNC_virtclass-nativesdk = ""
--
1.7.2.5
^ permalink raw reply related [flat|nested] 4+ messages in thread
* Re: [PATCH 0/2] Patches pending from O.S. Systems' tree
2012-02-08 12:22 [PATCH 0/2] Patches pending from O.S. Systems' tree Otavio Salvador
2012-02-08 12:22 ` [PATCH 1/2] cross.bbclass: add virtclass handler Otavio Salvador
2012-02-08 12:22 ` [PATCH 2/2] useradd.bbclass: skip processing on virtclass-cross extended packages Otavio Salvador
@ 2012-02-10 15:54 ` Saul Wold
2 siblings, 0 replies; 4+ messages in thread
From: Saul Wold @ 2012-02-10 15:54 UTC (permalink / raw)
To: Patches and discussions about the oe-core layer
On 02/08/2012 04:22 AM, Otavio Salvador wrote:
> This has removed the map_dependencies from the cross class as we were
> handling those by hand anyway in meta-chicken.
>
> The following changes since commit 06b740d4ca077fb4c89ee6d1065fabb02da45ec6:
>
> classes/buildhistory: sort list fields in package info (2012-02-08 10:43:01 +0000)
>
> are available in the git repository at:
> git://github.com/OSSystems/oe-core master
> https://github.com/OSSystems/oe-core/tree/HEAD
>
> Otavio Salvador (2):
> cross.bbclass: add virtclass handler
> useradd.bbclass: skip processing on virtclass-cross extended packages
>
> meta/classes/cross.bbclass | 17 +++++++++++++++++
> meta/classes/useradd.bbclass | 3 +++
> 2 files changed, 20 insertions(+), 0 deletions(-)
>
Merged to OE-core
Thanks
Sau!
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2012-02-10 16:03 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-02-08 12:22 [PATCH 0/2] Patches pending from O.S. Systems' tree Otavio Salvador
2012-02-08 12:22 ` [PATCH 1/2] cross.bbclass: add virtclass handler Otavio Salvador
2012-02-08 12:22 ` [PATCH 2/2] useradd.bbclass: skip processing on virtclass-cross extended packages Otavio Salvador
2012-02-10 15:54 ` [PATCH 0/2] Patches pending from O.S. Systems' tree Saul Wold
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.