esp32: Use uppercase variant names.
This is to support a future change to add the variant name to the build directory and therefore should be the same style as the board name. This work was funded through GitHub Sponsors. Signed-off-by: Jim Mussared <jim.mussared@gmail.com>
This commit is contained in:
parent
f007d0aa3d
commit
b5836e7252
|
@ -17,11 +17,11 @@
|
|||
"thumbnail": "",
|
||||
"url": "https://www.espressif.com/en/products/modules",
|
||||
"variants": {
|
||||
"idf3": "Compiled with IDF 3.x",
|
||||
"d2wd": "ESP32 D2WD",
|
||||
"spiram": "Support for SPIRAM / WROVER",
|
||||
"unicore": "ESP32 Unicore",
|
||||
"ota": "Support for OTA"
|
||||
"IDF3": "Compiled with IDF 3.x",
|
||||
"D2WD": "ESP32 D2WD",
|
||||
"SPIRAM": "Support for SPIRAM / WROVER",
|
||||
"UNICORE": "ESP32 Unicore",
|
||||
"OTA": "Support for OTA"
|
||||
},
|
||||
"vendor": "Espressif"
|
||||
}
|
||||
|
|
|
@ -3,7 +3,7 @@ set(SDKCONFIG_DEFAULTS
|
|||
boards/sdkconfig.ble
|
||||
)
|
||||
|
||||
if(MICROPY_BOARD_VARIANT STREQUAL "d2wd")
|
||||
if(MICROPY_BOARD_VARIANT STREQUAL "D2WD")
|
||||
set(SDKCONFIG_DEFAULTS
|
||||
${SDKCONFIG_DEFAULTS}
|
||||
boards/GENERIC/sdkconfig.d2wd
|
||||
|
@ -14,7 +14,7 @@ if(MICROPY_BOARD_VARIANT STREQUAL "d2wd")
|
|||
)
|
||||
endif()
|
||||
|
||||
if(MICROPY_BOARD_VARIANT STREQUAL "ota")
|
||||
if(MICROPY_BOARD_VARIANT STREQUAL "OTA")
|
||||
set(SDKCONFIG_DEFAULTS
|
||||
${SDKCONFIG_DEFAULTS}
|
||||
boards/GENERIC/sdkconfig.ota
|
||||
|
@ -25,7 +25,7 @@ if(MICROPY_BOARD_VARIANT STREQUAL "ota")
|
|||
)
|
||||
endif()
|
||||
|
||||
if(MICROPY_BOARD_VARIANT STREQUAL "spiram")
|
||||
if(MICROPY_BOARD_VARIANT STREQUAL "SPIRAM")
|
||||
set(SDKCONFIG_DEFAULTS
|
||||
${SDKCONFIG_DEFAULTS}
|
||||
boards/sdkconfig.spiram
|
||||
|
@ -36,7 +36,7 @@ if(MICROPY_BOARD_VARIANT STREQUAL "spiram")
|
|||
)
|
||||
endif()
|
||||
|
||||
if(MICROPY_BOARD_VARIANT STREQUAL "unicore")
|
||||
if(MICROPY_BOARD_VARIANT STREQUAL "UNICORE")
|
||||
set(SDKCONFIG_DEFAULTS
|
||||
${SDKCONFIG_DEFAULTS}
|
||||
boards/GENERIC/sdkconfig.unicore
|
||||
|
|
|
@ -18,6 +18,6 @@
|
|||
"url": "https://www.espressif.com/en/products/modules",
|
||||
"vendor": "Espressif",
|
||||
"variants": {
|
||||
"spiram-oct": "Support for Octal-SPIRAM"
|
||||
"SPIRAM_OCT": "Support for Octal-SPIRAM"
|
||||
}
|
||||
}
|
||||
|
|
|
@ -8,7 +8,7 @@ set(SDKCONFIG_DEFAULTS
|
|||
boards/GENERIC_S3/sdkconfig.board
|
||||
)
|
||||
|
||||
if(MICROPY_BOARD_VARIANT STREQUAL "spiram-oct")
|
||||
if(MICROPY_BOARD_VARIANT STREQUAL "SPIRAM_OCT")
|
||||
set(SDKCONFIG_DEFAULTS
|
||||
${SDKCONFIG_DEFAULTS}
|
||||
boards/sdkconfig.240mhz
|
||||
|
|
|
@ -24,7 +24,7 @@
|
|||
"thumbnail": "",
|
||||
"url": "https://www.tinypico.com/",
|
||||
"variants": {
|
||||
"idf3": "Compiled with IDF 3.x"
|
||||
"IDF3": "Compiled with IDF 3.x"
|
||||
},
|
||||
"vendor": "Unexpected Maker"
|
||||
}
|
||||
|
|
|
@ -55,10 +55,10 @@ function build_board {
|
|||
$MICROPY_AUTOBUILD_MAKE BOARD=$board BUILD=$build_dir && copy_artefacts $dest_dir $descr $fw_tag $build_dir $@
|
||||
rm -rf $build_dir
|
||||
|
||||
# Query variants from board.json and build them. Ignore the special "idf3"
|
||||
# Query variants from board.json and build them. Ignore the special "IDF3"
|
||||
# variant for ESP32 boards (this allows the downloads page to still have
|
||||
# the idf3 files for older releases that used to be explicitly built).
|
||||
for variant in `cat $board_json | python3 -c "import json,sys; print(' '.join(v for v in json.load(sys.stdin).get('variants', {}).keys() if v != 'idf3'))"`; do
|
||||
for variant in `cat $board_json | python3 -c "import json,sys; print(' '.join(v for v in json.load(sys.stdin).get('variants', {}).keys() if v != 'IDF3'))"`; do
|
||||
local variant_build_dir=$build_dir-$variant
|
||||
echo "building variant $descr $board $variant"
|
||||
$MICROPY_AUTOBUILD_MAKE BOARD=$board BOARD_VARIANT=$variant BUILD=$variant_build_dir && copy_artefacts $dest_dir $descr-$variant $fw_tag $variant_build_dir $@
|
||||
|
|
Loading…
Reference in New Issue