From 00efbe6d93dd02038cf6618cc495f21cdefd65df Mon Sep 17 00:00:00 2001 From: Tobias Reisinger Date: Tue, 17 Sep 2019 13:14:45 +0200 Subject: [PATCH] add: cmake toolchain for raspberry pi 1 --- toolchain-rpi.cmake | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 toolchain-rpi.cmake diff --git a/toolchain-rpi.cmake b/toolchain-rpi.cmake new file mode 100644 index 0000000..50512fc --- /dev/null +++ b/toolchain-rpi.cmake @@ -0,0 +1,5 @@ +set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -marm") +set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -mfpu=vfp") +set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -march=armv6zk+fp") +set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -mcpu=arm1176jzf-s") +set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -mtune=arm1176jzf-s")