Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 1 | inherit siteinfo |
2 | |||||
3 | ARM_INSTRUCTION_SET = "arm" | ||||
4 | |||||
5 | set_arch() { | ||||
6 | case ${TARGET_ARCH} in | ||||
7 | aarch64*) QT_ARCH=aarch64 ;; | ||||
8 | arm*) QT_ARCH=arm ;; | ||||
9 | i*86*) QT_ARCH=i386 ;; | ||||
10 | mips*) QT_ARCH=mips ;; | ||||
11 | powerpc*) QT_ARCH=powerpc ;; | ||||
12 | x86_64*) QT_ARCH=x86_64 ;; | ||||
13 | esac | ||||
14 | } | ||||
15 | |||||
16 | set_endian() { | ||||
17 | if [ ${SITEINFO_ENDIANNESS} = "le" ] ; then | ||||
18 | QT_ENDIAN="-little-endian" | ||||
19 | elif [ ${SITEINFO_ENDIANNESS} = "be" ] ; then | ||||
20 | QT_ENDIAN="-big-endian" | ||||
21 | fi | ||||
22 | } |