Fixing STM32 and Nuttx build.
JerryScript-DCO-1.0-Signed-off-by: Ruben Ayrapetyan r.ayrapetyan@samsung.com
This commit is contained in:
+6
-2
@@ -97,6 +97,10 @@ project (Jerry CXX C ASM)
|
|||||||
message(FATAL_ERROR "Currently, external build with Jerry's libc is not supported")
|
message(FATAL_ERROR "Currently, external build with Jerry's libc is not supported")
|
||||||
endif()
|
endif()
|
||||||
else()
|
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)
|
set(USE_EXTERNAL_LIBC TRUE)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
@@ -194,9 +198,9 @@ project (Jerry CXX C ASM)
|
|||||||
# Platform-specific
|
# Platform-specific
|
||||||
# MCU
|
# MCU
|
||||||
# stm32f3
|
# 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
|
# 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
|
# Debug
|
||||||
set(FLAGS_COMMON_DEBUG "-nostdlib")
|
set(FLAGS_COMMON_DEBUG "-nostdlib")
|
||||||
|
|||||||
@@ -49,12 +49,14 @@ project (Jerry_Plugins CXX ASM)
|
|||||||
# MCU
|
# MCU
|
||||||
# STM32F3
|
# STM32F3
|
||||||
set(INCLUDE_THIRD_PARTY_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/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/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/Libraries/CMSIS/Include
|
||||||
${CMAKE_SOURCE_DIR}/third-party/STM32F3-Discovery_FW_V1.1.0)
|
${CMAKE_SOURCE_DIR}/third-party/STM32F3-Discovery_FW_V1.1.0)
|
||||||
# STM32F4
|
# STM32F4
|
||||||
set(INCLUDE_THIRD_PARTY_MCU_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/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/STM32F4xx_StdPeriph_Driver/inc
|
||||||
${CMAKE_SOURCE_DIR}/third-party/STM32F4-Discovery_FW_V1.1.0/Libraries/CMSIS/Include
|
${CMAKE_SOURCE_DIR}/third-party/STM32F4-Discovery_FW_V1.1.0/Libraries/CMSIS/Include
|
||||||
|
|||||||
Reference in New Issue
Block a user