Remove autodetection of raspberry cpus
authorFelipe Sateler <fsateler@debian.org>
Fri, 13 Oct 2017 00:19:55 +0000 (21:19 -0300)
committerGeorges Khaznadar <georgesk@debian.org>
Sat, 13 Apr 2024 16:43:46 +0000 (18:43 +0200)
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

index ad5ea5b49e8764fc7521b4a5685db96318dfbc2b..699311c6d5e0e370d4a2a73a405f5752f08a281a 100644 (file)
@@ -420,21 +420,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()