diff --git a/CMakeLists.txt b/CMakeLists.txt index 52ab6eccc..5c6846793 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -97,6 +97,10 @@ project (Jerry CXX C ASM) message(FATAL_ERROR "Currently, external build with Jerry's libc is not supported") endif() else() + if (NOT EXISTS "${EXTERNAL_LIBC_INTERFACE}") + message(FATAL_ERROR "External libc interface directory doesn't exist: ${EXTERNAL_LIBC_INTERFACE}") + endif() + set(USE_EXTERNAL_LIBC TRUE) endif() @@ -194,9 +198,9 @@ project (Jerry CXX C ASM) # Platform-specific # MCU # stm32f3 - set(LINKER_FLAGS_COMMON_MCU_STM32F3 "-T${CMAKE_SOURCE_DIR}/third-party/stm32f3.ld") + set(LINKER_FLAGS_COMMON_MCU_STM32F3 "-T${CMAKE_SOURCE_DIR}/third-party/STM32F3-Discovery_FW_V1.1.0/Project/Peripheral_Examples/FLASH_Program/TrueSTUDIO/FLASH_Program/STM32_FLASH.ld") # stm32f4 - set(LINKER_FLAGS_COMMON_MCU_STM32F4 "-T${CMAKE_SOURCE_DIR}/third-party/stm32f4.ld") + set(LINKER_FLAGS_COMMON_MCU_STM32F4 "-T${CMAKE_SOURCE_DIR}/third-party/STM32F4-Discovery_FW_V1.1.0/Project/Peripheral_Examples/FLASH_Program/TrueSTUDIO/FLASH_Program/stm32_flash.ld") # Debug set(FLAGS_COMMON_DEBUG "-nostdlib") diff --git a/plugins/CMakeLists.txt b/plugins/CMakeLists.txt index 40305bb40..574defc87 100644 --- a/plugins/CMakeLists.txt +++ b/plugins/CMakeLists.txt @@ -49,12 +49,14 @@ project (Jerry_Plugins CXX ASM) # MCU # STM32F3 set(INCLUDE_THIRD_PARTY_MCU_STM32F3 + ${CMAKE_SOURCE_DIR}/third-party/STM32F3-Discovery_FW_V1.1.0/Project/Demonstration ${CMAKE_SOURCE_DIR}/third-party/STM32F3-Discovery_FW_V1.1.0/Libraries/CMSIS/Device/ST/STM32F30x/Include ${CMAKE_SOURCE_DIR}/third-party/STM32F3-Discovery_FW_V1.1.0/Libraries/STM32F30x_StdPeriph_Driver/inc ${CMAKE_SOURCE_DIR}/third-party/STM32F3-Discovery_FW_V1.1.0/Libraries/CMSIS/Include ${CMAKE_SOURCE_DIR}/third-party/STM32F3-Discovery_FW_V1.1.0) # STM32F4 set(INCLUDE_THIRD_PARTY_MCU_STM32F4 + ${CMAKE_SOURCE_DIR}/third-party/STM32F4-Discovery_FW_V1.1.0/Project/Demonstration ${CMAKE_SOURCE_DIR}/third-party/STM32F4-Discovery_FW_V1.1.0/Libraries/CMSIS/ST/STM32F4xx/Include ${CMAKE_SOURCE_DIR}/third-party/STM32F4-Discovery_FW_V1.1.0/Libraries/STM32F4xx_StdPeriph_Driver/inc ${CMAKE_SOURCE_DIR}/third-party/STM32F4-Discovery_FW_V1.1.0/Libraries/CMSIS/Include