File tree Expand file tree Collapse file tree 2 files changed +11
-1
lines changed Expand file tree Collapse file tree 2 files changed +11
-1
lines changed Original file line number Diff line number Diff line change @@ -11,7 +11,7 @@ idf_build_get_property(elf EXECUTABLE GENERATOR_EXPRESSION)
1111
1212add_custom_command (
1313 OUTPUT "idf_libs"
14- COMMAND ${CMAKE_SOURCE_DIR} /tools/copy-libs.sh ${IDF_TARGET} "${CONFIG_ESPTOOLPY_OCT_FLASH} " "${CONFIG_SPIRAM_MODE_OCT} "
14+ COMMAND ${CMAKE_SOURCE_DIR} /tools/copy-libs.sh ${IDF_TARGET} "${CONFIG_ESPTOOLPY_OCT_FLASH} " "${CONFIG_SPIRAM_MODE_OCT} " " ${CONFIG_IDF_TARGET_ARCH_XTENSA} "
1515 DEPENDS ${elf}
1616 WORKING_DIRECTORY ${CMAKE_SOURCE_DIR}
1717 VERBATIM
Original file line number Diff line number Diff line change 22# config
33
44IDF_TARGET=$1
5+ IS_XTENSA=$4
56OCT_FLASH=
67OCT_PSRAM=
78if [ " $2 " = " y" ]; then
@@ -281,6 +282,15 @@ cat pio_start.txt > "$AR_PLATFORMIO_PY"
281282rm pio_end.txt 1pio_start.txt pio_start.txt
282283
283284echo " ASFLAGS=[" >> " $AR_PLATFORMIO_PY "
285+ if [ " $IS_XTENSA " = " y" ]; then
286+ echo " \" -mlongcalls\" " >> " $AR_PLATFORMIO_PY "
287+ else
288+ echo " \" -march=rv32imc\" " >> " $AR_PLATFORMIO_PY "
289+ fi
290+ echo " ]," >> " $AR_PLATFORMIO_PY "
291+ echo " " >> " $AR_PLATFORMIO_PY "
292+
293+ echo " ASPPFLAGS=[" >> " $AR_PLATFORMIO_PY "
284294set -- $PIO_AS_FLAGS
285295for item; do
286296 echo " \" $item \" ," >> " $AR_PLATFORMIO_PY "
You can’t perform that action at this time.
0 commit comments