File tree Expand file tree Collapse file tree 4 files changed +10
-4
lines changed Expand file tree Collapse file tree 4 files changed +10
-4
lines changed Original file line number Diff line number Diff line change @@ -34,6 +34,10 @@ set_target_properties(${CMAKE_PROJECT_NAME} PROPERTIES
3434 CXX_STANDARD_REQUIRED ON
3535 CXX_EXTENSIONS ON
3636)
37+
38+ target_compile_options (${CMAKE_PROJECT_NAME} PUBLIC -Wall -Wextra -Werror)
39+
40+
3741# Add lib subdirectory
3842add_subdirectory (ext )
3943
Original file line number Diff line number Diff line change @@ -2,7 +2,9 @@ FROM ubuntu:22.04 AS builder
22LABEL authors="Clemens Elflein"
33
44RUN apt-get update && apt-get install -y \
5- gcc-arm-none-eabi \
5+ gcc-arm-none-eabi git \
6+ libasio-dev iproute2 \
7+ python3 python3-venv python3-pip \
68 cmake \
79 make \
810 && rm -rf /var/lib/apt/lists/*
Original file line number Diff line number Diff line change @@ -27,7 +27,7 @@ add_compile_definitions(CORTEX_USE_FPU=TRUE)
2727set (TARGET_FLAGS "-mcpu=cortex-m7 -mfpu=fpv5-d16 -mfloat-abi=hard -fomit-frame-pointer -falign-functions=16 -mthumb -fno-common -flto" )
2828
2929set (CMAKE_C_FLAGS "${CMAKE_C_FLAGS} ${TARGET_FLAGS} " )
30- set (CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wall -Wextra -Werror -Wpedantic - fdata-sections -ffunction-sections" )
30+ set (CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -fdata-sections -ffunction-sections" )
3131if (CMAKE_BUILD_TYPE MATCHES Debug)
3232 set (CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -O0 -g3 -DDEBUG_BUILD" )
3333endif ()
@@ -36,7 +36,7 @@ if(CMAKE_BUILD_TYPE MATCHES Release)
3636endif ()
3737
3838set (CMAKE_ASM_FLAGS "${CMAKE_C_FLAGS} -x assembler-with-cpp -MMD -MP" )
39- set (CMAKE_CXX_FLAGS "${CMAKE_C_FLAGS} -fno-rtti -fno-exceptions -fno-threadsafe-statics" )
39+ set (CMAKE_CXX_FLAGS "${CMAKE_C_FLAGS} -fno-rtti -fno-exceptions -fno-threadsafe-statics -Wno-volatile " )
4040
4141set (CMAKE_C_LINK_FLAGS "${TARGET_FLAGS} " )
4242set (CMAKE_C_LINK_FLAGS "${CMAKE_C_LINK_FLAGS} --specs=nosys.specs" )
You can’t perform that action at this time.
0 commit comments