mirror of
https://github.com/espressif/esp-idf.git
synced 2024-10-05 20:47:46 -04:00
Merge branch 'bugfix/set_toolchain_prefix_manually' into 'master'
cmake: assign toolchain prefix manually Closes RDT-90 See merge request espressif/esp-idf!16872
This commit is contained in:
commit
09f5c1d32e
@ -687,6 +687,11 @@ endmenu\n" >> ${IDF_PATH}/Kconfig
|
|||||||
rm -rf esp32
|
rm -rf esp32
|
||||||
rm -rf mycomponents
|
rm -rf mycomponents
|
||||||
|
|
||||||
|
print_status "toolchain prefix is set in project description file"
|
||||||
|
clean_build_dir
|
||||||
|
idf.py reconfigure
|
||||||
|
grep "prefix.*esp.*elf-" $PWD/build/project_description.json || failure "toolchain prefix not set or determined by CMake"
|
||||||
|
|
||||||
# idf.py subcommand options, (using monitor with as example)
|
# idf.py subcommand options, (using monitor with as example)
|
||||||
print_status "Can set options to subcommands: print_filter for monitor"
|
print_status "Can set options to subcommands: print_filter for monitor"
|
||||||
clean_build_dir
|
clean_build_dir
|
||||||
|
@ -5,6 +5,7 @@ set(CMAKE_SYSTEM_NAME Generic)
|
|||||||
set(CMAKE_C_COMPILER xtensa-esp32-elf-gcc)
|
set(CMAKE_C_COMPILER xtensa-esp32-elf-gcc)
|
||||||
set(CMAKE_CXX_COMPILER xtensa-esp32-elf-g++)
|
set(CMAKE_CXX_COMPILER xtensa-esp32-elf-g++)
|
||||||
set(CMAKE_ASM_COMPILER xtensa-esp32-elf-gcc)
|
set(CMAKE_ASM_COMPILER xtensa-esp32-elf-gcc)
|
||||||
|
set(_CMAKE_TOOLCHAIN_PREFIX xtensa-esp32-elf-)
|
||||||
|
|
||||||
|
|
||||||
remove_duplicated_flags("-mlongcalls -Wno-frame-address ${CMAKE_C_FLAGS}" UNIQ_CMAKE_C_FLAGS)
|
remove_duplicated_flags("-mlongcalls -Wno-frame-address ${CMAKE_C_FLAGS}" UNIQ_CMAKE_C_FLAGS)
|
||||||
|
@ -5,6 +5,7 @@ set(CMAKE_SYSTEM_NAME Generic)
|
|||||||
set(CMAKE_C_COMPILER riscv32-esp-elf-gcc)
|
set(CMAKE_C_COMPILER riscv32-esp-elf-gcc)
|
||||||
set(CMAKE_CXX_COMPILER riscv32-esp-elf-g++)
|
set(CMAKE_CXX_COMPILER riscv32-esp-elf-g++)
|
||||||
set(CMAKE_ASM_COMPILER riscv32-esp-elf-gcc)
|
set(CMAKE_ASM_COMPILER riscv32-esp-elf-gcc)
|
||||||
|
set(_CMAKE_TOOLCHAIN_PREFIX riscv32-esp-elf-)
|
||||||
|
|
||||||
remove_duplicated_flags("-march=rv32imc ${CMAKE_C_FLAGS}" UNIQ_CMAKE_C_FLAGS)
|
remove_duplicated_flags("-march=rv32imc ${CMAKE_C_FLAGS}" UNIQ_CMAKE_C_FLAGS)
|
||||||
set(CMAKE_C_FLAGS "${UNIQ_CMAKE_C_FLAGS}" CACHE STRING "C Compiler Base Flags" FORCE)
|
set(CMAKE_C_FLAGS "${UNIQ_CMAKE_C_FLAGS}" CACHE STRING "C Compiler Base Flags" FORCE)
|
||||||
|
@ -5,6 +5,7 @@ set(CMAKE_SYSTEM_NAME Generic)
|
|||||||
set(CMAKE_C_COMPILER riscv32-esp-elf-gcc)
|
set(CMAKE_C_COMPILER riscv32-esp-elf-gcc)
|
||||||
set(CMAKE_CXX_COMPILER riscv32-esp-elf-g++)
|
set(CMAKE_CXX_COMPILER riscv32-esp-elf-g++)
|
||||||
set(CMAKE_ASM_COMPILER riscv32-esp-elf-gcc)
|
set(CMAKE_ASM_COMPILER riscv32-esp-elf-gcc)
|
||||||
|
set(_CMAKE_TOOLCHAIN_PREFIX riscv32-esp-elf-)
|
||||||
|
|
||||||
remove_duplicated_flags("-march=rv32imc ${CMAKE_C_FLAGS}"
|
remove_duplicated_flags("-march=rv32imc ${CMAKE_C_FLAGS}"
|
||||||
UNIQ_CMAKE_C_FLAGS)
|
UNIQ_CMAKE_C_FLAGS)
|
||||||
|
@ -5,6 +5,7 @@ set(CMAKE_SYSTEM_NAME Generic)
|
|||||||
set(CMAKE_C_COMPILER riscv32-esp-elf-gcc)
|
set(CMAKE_C_COMPILER riscv32-esp-elf-gcc)
|
||||||
set(CMAKE_CXX_COMPILER riscv32-esp-elf-g++)
|
set(CMAKE_CXX_COMPILER riscv32-esp-elf-g++)
|
||||||
set(CMAKE_ASM_COMPILER riscv32-esp-elf-gcc)
|
set(CMAKE_ASM_COMPILER riscv32-esp-elf-gcc)
|
||||||
|
set(_CMAKE_TOOLCHAIN_PREFIX riscv32-esp-elf-)
|
||||||
|
|
||||||
remove_duplicated_flags("-march=rv32imc ${CMAKE_C_FLAGS}" UNIQ_CMAKE_C_FLAGS)
|
remove_duplicated_flags("-march=rv32imc ${CMAKE_C_FLAGS}" UNIQ_CMAKE_C_FLAGS)
|
||||||
set(CMAKE_C_FLAGS "${UNIQ_CMAKE_C_FLAGS}" CACHE STRING "C Compiler Base Flags" FORCE)
|
set(CMAKE_C_FLAGS "${UNIQ_CMAKE_C_FLAGS}" CACHE STRING "C Compiler Base Flags" FORCE)
|
||||||
|
@ -5,6 +5,7 @@ set(CMAKE_SYSTEM_NAME Generic)
|
|||||||
set(CMAKE_C_COMPILER xtensa-esp32s2-elf-gcc)
|
set(CMAKE_C_COMPILER xtensa-esp32s2-elf-gcc)
|
||||||
set(CMAKE_CXX_COMPILER xtensa-esp32s2-elf-g++)
|
set(CMAKE_CXX_COMPILER xtensa-esp32s2-elf-g++)
|
||||||
set(CMAKE_ASM_COMPILER xtensa-esp32s2-elf-gcc)
|
set(CMAKE_ASM_COMPILER xtensa-esp32s2-elf-gcc)
|
||||||
|
set(_CMAKE_TOOLCHAIN_PREFIX xtensa-esp32s2-elf-)
|
||||||
|
|
||||||
remove_duplicated_flags("-mlongcalls ${CMAKE_C_FLAGS}" UNIQ_CMAKE_C_FLAGS)
|
remove_duplicated_flags("-mlongcalls ${CMAKE_C_FLAGS}" UNIQ_CMAKE_C_FLAGS)
|
||||||
set(CMAKE_C_FLAGS "${UNIQ_CMAKE_C_FLAGS}" CACHE STRING "C Compiler Base Flags" FORCE)
|
set(CMAKE_C_FLAGS "${UNIQ_CMAKE_C_FLAGS}" CACHE STRING "C Compiler Base Flags" FORCE)
|
||||||
|
@ -5,6 +5,7 @@ set(CMAKE_SYSTEM_NAME Generic)
|
|||||||
set(CMAKE_C_COMPILER xtensa-esp32s3-elf-gcc)
|
set(CMAKE_C_COMPILER xtensa-esp32s3-elf-gcc)
|
||||||
set(CMAKE_CXX_COMPILER xtensa-esp32s3-elf-g++)
|
set(CMAKE_CXX_COMPILER xtensa-esp32s3-elf-g++)
|
||||||
set(CMAKE_ASM_COMPILER xtensa-esp32s3-elf-gcc)
|
set(CMAKE_ASM_COMPILER xtensa-esp32s3-elf-gcc)
|
||||||
|
set(_CMAKE_TOOLCHAIN_PREFIX xtensa-esp32s3-elf-)
|
||||||
|
|
||||||
remove_duplicated_flags("-mlongcalls ${CMAKE_C_FLAGS}" UNIQ_CMAKE_C_FLAGS)
|
remove_duplicated_flags("-mlongcalls ${CMAKE_C_FLAGS}" UNIQ_CMAKE_C_FLAGS)
|
||||||
set(CMAKE_C_FLAGS "${UNIQ_CMAKE_C_FLAGS}" CACHE STRING "C Compiler Base Flags" FORCE)
|
set(CMAKE_C_FLAGS "${UNIQ_CMAKE_C_FLAGS}" CACHE STRING "C Compiler Base Flags" FORCE)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user