[oe-commits] Richard Purdie : base.bbclass: Back off the fatal error to a warning for now and try and recover

git version control git at git.openembedded.org
Tue Jun 28 14:07:37 UTC 2011


Module: openembedded-core.git
Branch: master
Commit: 3a8e115904a227fcecb61e81f5e540d1aebea352
URL:    http://git.openembedded.org/?p=openembedded-core.git&a=commit;h=3a8e115904a227fcecb61e81f5e540d1aebea352

Author: Richard Purdie <richard.purdie at linuxfoundation.org>
Date:   Tue Jun 28 14:47:10 2011 +0100

base.bbclass: Back off the fatal error to a warning for now and try and recover

Signed-off-by: Richard Purdie <richard.purdie at linuxfoundation.org>

---

 meta/classes/base.bbclass |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/meta/classes/base.bbclass b/meta/classes/base.bbclass
index 575352d..1f9baf9 100644
--- a/meta/classes/base.bbclass
+++ b/meta/classes/base.bbclass
@@ -368,7 +368,8 @@ python () {
         # if multiple differences are present?
         # Look through PACKAGE_ARCHS for the priority order?
         if pkgarch and pkgarch == mach_arch:
-            bb.fatal("Recipe %s is marked as only being architecture specific but seems to have machine specific packages?" % d.getVar("PN", True))
+            bb.data.setVar('PACAKGE_ARCH', "${MACHINE_ARCH}", d)
+            bb.warn("Recipe %s is marked as only being architecture specific but seems to have machine specific packages?! The recipe may as well mark itself as machine specific directly." % d.getVar("PN", True))
 }
 
 def check_gcc3(data):





More information about the Openembedded-commits mailing list