1
0
Fork 0
mirror of https://github.com/Ysurac/openmptcprouter-feeds.git synced 2025-03-09 15:40:03 +00:00

Add tools needed for RPI FW update

This commit is contained in:
Ycarus (Yannick Chabanois) 2019-11-12 19:41:38 +01:00
parent 6aa439c47e
commit 0bd87ac039
6 changed files with 305 additions and 0 deletions

View file

@ -0,0 +1,20 @@
#
# CMake defines to cross-compile to ARM/Linux on BCM2708 using glibc.
#
SET(CMAKE_SYSTEM_NAME Linux)
SET(CMAKE_C_COMPILER arm-openwrt-linux-uclibcgnueabi-gcc)
SET(CMAKE_CXX_COMPILER arm-openwrt-linux-uclibcgnueabi-g++)
SET(CMAKE_ASM_COMPILER arm-openwrt-linux-uclibcgnueabi-gcc)
SET(CMAKE_SYSTEM_PROCESSOR arm)
add_definitions("-mcpu=arm1176jzf-s -mfpu=vfp -mfloat-abi=soft")
# rdynamic means the backtrace should work
IF (CMAKE_BUILD_TYPE MATCHES "Debug")
add_definitions(-rdynamic)
ENDIF()
# avoids annoying and pointless warnings from gcc
SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -U_FORTIFY_SOURCE")
SET(CMAKE_ASM_FLAGS "${CMAKE_ASM_FLAGS} -c")