From 09bfb7f35d4625f975bd25e9a01c4ce6e0588da6 Mon Sep 17 00:00:00 2001 From: Felipe Sateler Date: Thu, 12 Oct 2017 21:19:55 -0300 Subject: [PATCH] Remove autodetection of raspberry cpus In debian we don't actually target raspberries, and guessing based on the build machine is wrong too Bug-Debian: https://bugs.debian.org/878347 Gbp-Pq: Name Remove-autodetection-of-raspberry-cpus.patch --- CMakeLists.txt | 15 --------------- 1 file changed, 15 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index d69280f..5e066ab 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -380,21 +380,6 @@ elseif(MINGW) set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -mstackrealign") endif() -# support for building on Raspberry Pi 1/2/3 and BBB -if(CMAKE_COMPILER_IS_GNUCXX AND CMAKE_SYSTEM_PROCESSOR STREQUAL "armv7l") - foreach(flag CMAKE_C_FLAGS CMAKE_CXX_FLAGS) - set(${flag} "${${flag}} -mfloat-abi=hard") - set(${flag} "${${flag}} -mfpu=neon") - endforeach() -elseif(CMAKE_COMPILER_IS_GNUCXX AND CMAKE_SYSTEM_PROCESSOR STREQUAL "armv6l") - foreach(flag CMAKE_C_FLAGS CMAKE_CXX_FLAGS) - set(${flag} "${${flag}} -march=armv6") - set(${flag} "${${flag}} -mtune=arm1176jzf-s") - set(${flag} "${${flag}} -mfloat-abi=hard") - set(${flag} "${${flag}} -mfpu=vfp") - endforeach() -endif() - if (NO_GPL3) add_definitions(-DNO_GPL3) endif() -- 2.30.2