Support new linux_arm32_hfp_toolchain
This commit is contained in:
committed by
Stanislav Erokhin
parent
43bfeb5c33
commit
ddaf477849
@@ -417,9 +417,9 @@ runtimeDefinitions.linux_x64 = USE_GCC_UNWIND=1 KONAN_LINUX=1 KONAN_X64=1 \
|
||||
USE_ELF_SYMBOLS=1 ELFSIZE=64 KONAN_HAS_CXX11_EXCEPTION_FUNCTIONS=1
|
||||
|
||||
# Raspberry Pi
|
||||
gccToolchain.linux_arm32_hfp = target-gcc-toolchain-3-linux-x86-64
|
||||
gccToolchain.linux_arm32_hfp = arm-unknown-linux-gnueabihf-gcc-8.3.0-glibc-2.19-kernel-4.9
|
||||
|
||||
targetToolchain.linux_x64-linux_arm32_hfp = target-gcc-toolchain-3-linux-x86-64/x86_64-unknown-linux-gnu
|
||||
targetToolchain.linux_x64-linux_arm32_hfp = $gccToolchain.linux_arm32_hfp/arm-unknown-linux-gnueabihf
|
||||
targetToolchain.mingw_x64-linux_arm32_hfp = msys2-mingw-w64-x86_64-clang-llvm-lld-compiler_rt-8.0.1
|
||||
targetToolchain.macos_x64-linux_arm32_hfp = $llvmHome.macos_x64
|
||||
|
||||
@@ -428,28 +428,25 @@ emulatorDependency.linux_x64-linux_arm32_hfp = qemu-arm-static-5.1.0-linux-2
|
||||
emulatorExecutable.linux_x64-linux_arm32_hfp = qemu-arm-static-5.1.0-linux-2/qemu-arm
|
||||
|
||||
dependencies.linux_x64-linux_arm32_hfp = \
|
||||
target-gcc-toolchain-3-linux-x86-64 \
|
||||
target-sysroot-2-raspberrypi \
|
||||
arm-unknown-linux-gnueabihf-gcc-8.3.0-glibc-2.19-kernel-4.9 \
|
||||
libffi-3.2.1-2-linux-x86-64
|
||||
dependencies.mingw_x64-linux_arm32_hfp = \
|
||||
libffi-3.2.1-mingw-w64-x86-64 \
|
||||
target-gcc-toolchain-3-linux-x86-64 \
|
||||
target-sysroot-2-raspberrypi
|
||||
arm-unknown-linux-gnueabihf-gcc-8.3.0-glibc-2.19-kernel-4.9 \
|
||||
libffi-3.2.1-mingw-w64-x86-64
|
||||
dependencies.macos_x64-linux_arm32_hfp = \
|
||||
libffi-3.2.1-3-darwin-macos \
|
||||
target-gcc-toolchain-3-linux-x86-64 \
|
||||
target-sysroot-2-raspberrypi
|
||||
arm-unknown-linux-gnueabihf-gcc-8.3.0-glibc-2.19-kernel-4.9 \
|
||||
libffi-3.2.1-3-darwin-macos
|
||||
|
||||
quadruple.linux_arm32_hfp = armv6-unknown-linux-gnueabihf
|
||||
quadruple.linux_arm32_hfp = arm-unknown-linux-gnueabihf
|
||||
linkerNoDebugFlags.linux_arm32_hfp = -S
|
||||
linkerDynamicFlags.linux_arm32_hfp = -shared
|
||||
linkerOptimizationFlags.linux_arm32_hfp = --gc-sections
|
||||
targetSysRoot.linux_arm32_hfp = target-sysroot-2-raspberrypi
|
||||
targetSysRoot.linux_arm32_hfp = $gccToolchain.linux_arm32_hfp/arm-unknown-linux-gnueabihf/sysroot
|
||||
# We could reuse host toolchain here.
|
||||
linkerKonanFlags.linux_arm32_hfp = -Bstatic -lstdc++ -Bdynamic -ldl -lm -lpthread \
|
||||
--defsym __cxa_demangle=Konan_cxa_demangle --no-threads
|
||||
# targetSysroot-relative.
|
||||
libGcc.linux_arm32_hfp = lib/gcc/arm-linux-gnueabihf/4.8.3
|
||||
libGcc.linux_arm32_hfp = ../../lib/gcc/arm-unknown-linux-gnueabihf/8.3.0
|
||||
targetCpu.linux_arm32_hfp = arm1136jf-s
|
||||
targetCpuFeatures.linux_arm32_hfp = +dsp,+strict-align,+vfp2,-crypto,-d16,-fp-armv8,-fp-only-sp,-fp16,-neon,-thumb-mode,-vfp3,-vfp4
|
||||
clangFlags.linux_arm32_hfp = -cc1 -target-cpu $targetCpu.linux_arm32_hfp -mfloat-abi hard -emit-obj -disable-llvm-optzns -x ir
|
||||
@@ -459,10 +456,7 @@ clangDebugFlags.linux_arm32_hfp = -O0
|
||||
clangDynamicFlags.linux_arm32_hfp = -mrelocation-model pic
|
||||
dynamicLinker.linux_arm32_hfp = /lib/ld-linux-armhf.so.3
|
||||
# targetSysRoot relative
|
||||
abiSpecificLibraries.linux_arm32_hfp = \
|
||||
../lib/arm-linux-gnueabihf \
|
||||
lib/arm-linux-gnueabihf \
|
||||
usr/lib/arm-linux-gnueabihf
|
||||
abiSpecificLibraries.linux_arm32_hfp = lib usr/lib
|
||||
runtimeDefinitions.linux_arm32_hfp = USE_GCC_UNWIND=1 KONAN_LINUX=1 \
|
||||
KONAN_ARM32=1 USE_ELF_SYMBOLS=1 ELFSIZE=32 KONAN_NO_UNALIGNED_ACCESS=1
|
||||
|
||||
|
||||
Reference in New Issue
Block a user