summaryrefslogtreecommitdiff
path: root/classes/base.bbclass
diff options
context:
space:
mode:
authorRichard Purdie <rpurdie@rpsys.net>2006-11-25 10:39:02 +0000
committerRichard Purdie <rpurdie@rpsys.net>2006-11-25 10:39:02 +0000
commitb4a32ba5e4b9047c97e926df2f5bf6d336158244 (patch)
treea9f840a975a8d6ab7ef474924d02d04b7127952f /classes/base.bbclass
parent3c46bd62fe6e385efc51ac79bac8fb07b579b2dc (diff)
base.bbclass: Try to ensure the MACHINE variable isn't exported (needs bitbake support to complete)
Diffstat (limited to 'classes/base.bbclass')
-rw-r--r--classes/base.bbclass5
1 files changed, 5 insertions, 0 deletions
diff --git a/classes/base.bbclass b/classes/base.bbclass
index f5aede6b8b..e1d0e8854a 100644
--- a/classes/base.bbclass
+++ b/classes/base.bbclass
@@ -706,6 +706,11 @@ def base_after_parse_two(d):
def base_after_parse(d):
import bb, os
+
+ # Make sure MACHINE *isn't* exported
+ bb.data.delVarFlag('MACHINE', 'export', d)
+ bb.data.setVarFlag('MACHINE', 'unexport', 1, d)
+
mach_arch = bb.data.getVar('MACHINE_ARCH', d, 1)
old_arch = bb.data.getVar('PACKAGE_ARCH', d, 1)
if (old_arch == mach_arch):