1/5/2024 0 Comments Coderunner compile flagshuge number of auto-added ESP include paths omitted for clarity. but what ends up being passed to the toolchain is, for instance: "C:\\Users\\rob\\AppData\\Local\\Arduino15\\packages\\esp32\\tools\\xtensa-esp32-elf-gcc\\gcc8_4_r1/bin/xtensa-esp32-elf-g++" -DHAVE_CONFIG_H "-DMBEDTLS_CONFIG_FILE=\"mbedtls/esp_config.h\"" -DUNITY_INCLUDE_CONFIG_H -DWITH_POSIX -D_GNU_SOURCE "-DIDF_VER=\"v4.-gc69f0ec32\"" -DESP_PLATFORM "-IC:\\Users\\rob\\AppData\\Local\\Arduino15\\packages\\esp32\\hardware\\esp32\\2.0.0/tools/sdk/esp32/include/config" this call:Īrduino-cli compile -libraries c:\temp\_jenkins_work\libraries\ubxlib -fqbn esp32:esp32:esp32doit-devkit-v1 -v -build-path c:\temp\_jenkins_work\build -build-property "_flags=\"-DU_CFG_TEST_UART_B=1\" \"-DU_CFG_TEST_PIN_UART_A_CTS=-1\" \"-DU_CFG_TEST_PIN_UART_A_RTS=-1\" \"-DU_CFG_TEST_PIN_UART_A_RXD=26\" \"-DU_CFG_TEST_PIN_UART_B_TXD=27\" \"-DU_CFG_TEST_PIN_UART_B_RXD=14\" \"-DU_RUNNER_TOP_STR=port\" \"-DU_CELL_TEST_CFG_BANDMASK1=0x000010ULL\" \"-DU_CFG_APP_CELL_LOC_AUTHENTICATION_TOKEN=xxxxxxxxxxxxxxxxxxxxxx\"" c:\projects\ubxlib_priv\port/platform/arduino\app/app.ino The form I am using is the -build-property "_flags=. I'm using arduino-cli to compile a large lump of C code (on ESP32), including a library, and I would like to pass conditional compilation flags to all of that code via the command-line -build-property option but I can't seem to make it work, my flags are not propagated.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |