From dfc179e2b9e3929d79e14692651f1ab0c97082c7 Mon Sep 17 00:00:00 2001 From: Miquel Beltran Date: Sun, 21 May 2017 09:56:40 +0200 Subject: [PATCH] Support armv6 devices (Pi Zero) (#588) --- backend.native/konan.properties | 4 ++-- build.gradle | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/backend.native/konan.properties b/backend.native/konan.properties index b08f49b8be8..fc512f6b34a 100644 --- a/backend.native/konan.properties +++ b/backend.native/konan.properties @@ -86,8 +86,8 @@ dependencies.linux = \ libffi-3.2.1-2-linux-x86-64 # Raspberry Pi -arch.linux-raspberrypi = armv7 -quadruple.linux-raspberrypi = armv7-unknown-linux-gnueabihf +arch.linux-raspberrypi = armv6 +quadruple.linux-raspberrypi = armv6-unknown-linux-gnueabihf targetSysRoot.linux-raspberrypi = target-sysroot-1-raspberrypi libffiDir.linux-raspberrypi = libffi-3.2.1-2-raspberrypi libGcc.linux-raspberrypi = target-sysroot-1-raspberrypi/lib/gcc/arm-linux-gnueabihf/4.8.3/ diff --git a/build.gradle b/build.gradle index 795d131088a..74ad999326b 100644 --- a/build.gradle +++ b/build.gradle @@ -72,7 +72,7 @@ void setupCompilationFlags() { [(ext.host): ["--sysroot=${gccToolchainDir}/${gnuTriplet}/sysroot"], "raspberrypi": - ["-target", "armv7-unknown-linux-gnueabihf", + ["-target", "armv6-unknown-linux-gnueabihf", "-mfpu=vfp", "-mfloat-abi=hard", "--sysroot=$raspberryPiSysrootDir", // TODO: those two are hacks.