Skip to content

Commit

Permalink
Merge pull request #18 from Guillaumebeuzeboc/tests
Browse files Browse the repository at this point in the history
Tests
  • Loading branch information
Guillaumebeuzeboc committed Mar 18, 2021
2 parents 74466d2 + f65957b commit 8a1d371
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 2 additions & 0 deletions src/haricot/cmake/TopLevelCMake.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
cmake_minimum_required(VERSION 3.5)
project(workspace)

enable_testing()

set(cmd "dirname -z $(realpath CMakeLists.txt)")
execute_process(COMMAND bash -c ${cmd}
WORKING_DIRECTORY ${CMAKE_SOURCE_DIR}
Expand Down
4 changes: 2 additions & 2 deletions src/haricot/cmake/stm32/stm32l4xx.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,14 @@ endif()

set(CUBE_HOME "$ENV{CUBE}" CACHE INTERNAL "Copied from environment variable")

SET (CUBE_ROOT "${CUBE_HOME}/Repository/STM32Cube_FW_L4_V1.14.0")
SET (CUBE_ROOT "${CUBE_HOME}/Repository/STM32Cube_FW_L4_V1.16.0")

SET (LINKER_SCRIPT "${CUBE_ROOT}/Projects/NUCLEO-L476RG/Templates/SW4STM32/STM32L476RG_NUCLEO/STM32L476RGTx_FLASH.ld")

SET (CMAKE_SYSTEM_NAME Generic)
SET (CMAKE_SYSTEM_PROCESSOR arm)


SET(CMAKE_CXX_FLAGS "-mcpu=cortex-m4 -std=c++11 -fno-rtti -fno-exceptions -Wall -fdata-sections -ffunction-sections -MD -Wall -Wno-psabi" CACHE INTERNAL "cxx compiler flags")
SET(CMAKE_CXX_FLAGS "-mcpu=cortex-m4 -std=c++17 -fno-rtti -fno-exceptions -Wall -fdata-sections -ffunction-sections -MD -Wall -Wno-psabi" CACHE INTERNAL "cxx compiler flags")

SET (CMAKE_EXE_LINKER_FLAGS "-T ${LINKER_SCRIPT} -specs=nosys.specs -Wl,--gc-sections" CACHE INTERNAL "exe link flags")

0 comments on commit 8a1d371

Please sign in to comment.