summaryrefslogtreecommitdiff
path: root/packages/qt/qt4_arch.inc
blob: 11bfed8a1c3af1e6bb35ad87303afa4b627bec0c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
def qt_arch(d):
	import bb, re
	arch = bb.data.getVar('TARGET_ARCH', d, 1)
	if re.match("^i.86$", arch):
		arch = "x86"
	elif re.match("^arm.*", arch):
		arch = "arm"
	elif arch == "x86_64":
		arch = "x86"
	elif arch == "mipsel":
		arch = "mips"
	return arch