All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] amend.bbclass: handle PACKAGE_ARCH change in an amend.inc
@ 2010-11-17 13:55 Eric Bénard
  2010-11-18 18:03 ` Denys Dmytriyenko
  0 siblings, 1 reply; 10+ messages in thread
From: Eric Bénard @ 2010-11-17 13:55 UTC (permalink / raw)
  To: openembedded-devel

* setting PACKAGE_ARCH = "${MACHINE_ARCH}" in and amend.inc actually
leads to a packaga with the correct machine arch but the
work/stage/stamp dirs are not correct because MULTIMACH_ARCH is not
updated after amend.inc is parsed.

* this patch updates MULTIMACH_ARCH if PACKAGE_ARCH is changed in
amend.inc

Signed-off-by: Eric Bénard <eric@eukrea.com>
---
 classes/amend.bbclass |    7 +++++++
 1 files changed, 7 insertions(+), 0 deletions(-)

diff --git a/classes/amend.bbclass b/classes/amend.bbclass
index a03de64..da60611 100644
--- a/classes/amend.bbclass
+++ b/classes/amend.bbclass
@@ -42,5 +42,11 @@ python () {
             depends = set()
         depends |= set(newdata)
     d.setVar("__depends", depends)
+
+    mach_arch = bb.data.getVar('MACHINE_ARCH', d, 1)
+    pkg_arch = bb.data.getVar('PACKAGE_ARCH', d, 1)
+    multi_arch = bb.data.getVar('MULTIMACH_ARCH', d, 1)
+    if pkg_arch and pkg_arch == mach_arch and pkg_arch != multi_arch:
+        multi_arch = pkg_arch
+        bb.data.setVar('MULTIMACH_ARCH', multi_arch, d)
 }
-- 
1.7.2.3




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

end of thread, other threads:[~2010-11-21 23:18 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-11-17 13:55 [PATCH] amend.bbclass: handle PACKAGE_ARCH change in an amend.inc Eric Bénard
2010-11-18 18:03 ` Denys Dmytriyenko
2010-11-18 18:11   ` Eric Bénard
2010-11-18 18:46     ` Paul Menzel
2010-11-21 15:19     ` [PATCH] " Eric Bénard
2010-11-21 16:28       ` Khem Raj
2010-11-21 17:53       ` Chris Larson
2010-11-21 18:46         ` Eric Bénard
2010-11-21 19:42         ` Eric Bénard
2010-11-21 23:16           ` Chris Larson

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.