mirror of
https://git.yoctoproject.org/poky
synced 2026-05-02 18:32:15 +02:00
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
This commit is contained in:
@@ -714,9 +714,15 @@ def base_after_parse_two(d):
|
||||
def base_after_parse(d):
|
||||
import bb, os
|
||||
|
||||
# Make sure MACHINE *isn't* exported
|
||||
# Make sure MACHINE isn't exported
|
||||
# (breaks binutils at least)
|
||||
bb.data.delVarFlag('MACHINE', 'export', d)
|
||||
bb.data.setVarFlag('MACHINE', 'unexport', 1, d)
|
||||
|
||||
# Make sure DISTRO isn't exported
|
||||
# (breaks sysvinit at least)
|
||||
bb.data.delVarFlag('DISTRO', 'export', d)
|
||||
bb.data.setVarFlag('DISTRO', 'unexport', 1, d)
|
||||
|
||||
mach_arch = bb.data.getVar('MACHINE_ARCH', d, 1)
|
||||
old_arch = bb.data.getVar('PACKAGE_ARCH', d, 1)
|
||||
|
||||
Reference in New Issue
Block a user