Commit Debian 3.0 (quilt) metadata (manually cleaned up) archive/raspbian/1%9-1+rpi1 raspbian/1%9-1+rpi1
authorPeter Michael Green <plugwash@raspbian.org>
Sat, 12 Oct 2019 13:53:52 +0000 (13:53 +0000)
committerPeter Michael Green <plugwash@raspbian.org>
Sat, 12 Oct 2019 13:57:03 +0000 (13:57 +0000)
[dgit (9.9) quilt-fixup]

debian/patches/raspbian-triplet.patch [new file with mode: 0644]
debian/patches/series

diff --git a/debian/patches/raspbian-triplet.patch b/debian/patches/raspbian-triplet.patch
new file mode 100644 (file)
index 0000000..02c93a0
--- /dev/null
@@ -0,0 +1,32 @@
+hack to replace arm version in triplet returned by config.guess
+with the one we want for raspbian.
+
+--- /dev/null
++++ llvm-toolchain-9-9/cmake/config.guess.hack
+@@ -0,0 +1,2 @@
++#!/bin/bash -e
++$(dirname "$0")/config.guess | sed -r s/arm[a-zA-Z0-9]*/armv6/
+--- llvm-toolchain-9-9.orig/cmake/modules/GetHostTriple.cmake
++++ llvm-toolchain-9-9/cmake/modules/GetHostTriple.cmake
+@@ -18,7 +18,7 @@ function( get_host_triple var )
+     if(CMAKE_HOST_SYSTEM_NAME STREQUAL Windows AND NOT MSYS)
+       message(WARNING "unable to determine host target triple")
+     else()
+-      set(config_guess ${LLVM_MAIN_SRC_DIR}/cmake/config.guess)
++      set(config_guess ${LLVM_MAIN_SRC_DIR}/cmake/config.guess.hack)
+       execute_process(COMMAND sh ${config_guess}
+         RESULT_VARIABLE TT_RV
+         OUTPUT_VARIABLE TT_OUT
+--- llvm-toolchain-9-9.orig/compiler-rt/cmake/base-config-ix.cmake
++++ llvm-toolchain-9-9/compiler-rt/cmake/base-config-ix.cmake
+@@ -203,8 +203,8 @@ macro(test_targets)
+       if(WIN32)
+         test_target_arch(arm "" "" "")
+       else()
+-        test_target_arch(arm "" "-march=armv7-a" "-mfloat-abi=soft")
+-        test_target_arch(armhf "" "-march=armv7-a" "-mfloat-abi=hard")
++        test_target_arch(arm "" "" "-mfloat-abi=soft")
++        test_target_arch(armhf "" "" "-mfloat-abi=hard")
+         test_target_arch(armv6m "" "-march=armv6m" "-mfloat-abi=soft")
+       endif()
+     elseif("${COMPILER_RT_DEFAULT_TARGET_ARCH}" MATCHES "aarch32")
index 4b2f3e78b955d54e07a5feef76bd24b2d8ae7273..d57fe871c12a2ce2eba3fde5ac3e23567ddcc749 100644 (file)
@@ -131,3 +131,5 @@ clang-riscv64-rv64gc.diff
 
 #try-to-unbreak-thinlto.diff
 D67877.patch
+
+raspbian-triplet.patch