diff options
author | Richard Purdie <richard@openedhand.com> | 2007-03-21 16:30:33 +0000 |
---|---|---|
committer | Richard Purdie <richard@openedhand.com> | 2007-03-21 16:30:33 +0000 |
commit | 1d48528c367541f387f619bd79c5297be860f9bb (patch) | |
tree | 3432ead191f775d6241f98d70d12964f53b161e4 /meta/classes | |
parent | 4ed98327c03d4167e41a85933d402a51191a3864 (diff) | |
download | poky-1d48528c367541f387f619bd79c5297be860f9bb.tar.gz |
base.bbclass: unexport DISTRO to prevent application compile failures
git-svn-id: https://svn.o-hand.com/repos/poky/trunk@1380 311d38ba-8fff-0310-9ca6-ca027cbcb966
Diffstat (limited to 'meta/classes')
-rw-r--r-- | meta/classes/base.bbclass | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/meta/classes/base.bbclass b/meta/classes/base.bbclass index e08a2be2d2..3cff42c138 100644 --- a/meta/classes/base.bbclass +++ b/meta/classes/base.bbclass | |||
@@ -714,9 +714,15 @@ def base_after_parse_two(d): | |||
714 | def base_after_parse(d): | 714 | def base_after_parse(d): |
715 | import bb, os | 715 | import bb, os |
716 | 716 | ||
717 | # Make sure MACHINE *isn't* exported | 717 | # Make sure MACHINE isn't exported |
718 | # (breaks binutils at least) | ||
718 | bb.data.delVarFlag('MACHINE', 'export', d) | 719 | bb.data.delVarFlag('MACHINE', 'export', d) |
719 | bb.data.setVarFlag('MACHINE', 'unexport', 1, d) | 720 | bb.data.setVarFlag('MACHINE', 'unexport', 1, d) |
721 | |||
722 | # Make sure DISTRO isn't exported | ||
723 | # (breaks sysvinit at least) | ||
724 | bb.data.delVarFlag('DISTRO', 'export', d) | ||
725 | bb.data.setVarFlag('DISTRO', 'unexport', 1, d) | ||
720 | 726 | ||
721 | mach_arch = bb.data.getVar('MACHINE_ARCH', d, 1) | 727 | mach_arch = bb.data.getVar('MACHINE_ARCH', d, 1) |
722 | old_arch = bb.data.getVar('PACKAGE_ARCH', d, 1) | 728 | old_arch = bb.data.getVar('PACKAGE_ARCH', d, 1) |