use manual build

This commit is contained in:
brentru 2022-03-02 16:59:03 -05:00
parent a6a4c0d7c9
commit ef0633c0c8

View file

@ -62,7 +62,7 @@ ALL_PLATFORMS={
# Espressif # Espressif
"esp8266" : ["esp8266:esp8266:huzzah:eesz=4M3M,xtal=80", None], "esp8266" : ["esp8266:esp8266:huzzah:eesz=4M3M,xtal=80", None],
"esp32" : ["esp32:esp32:featheresp32:FlashFreq=80", None], "esp32" : ["esp32:esp32:featheresp32:FlashFreq=80", None],
"feather_esp32_v2" : ["manual:esp32:adafruit_feather_esp32_v2", None], "feather_esp32_v2" : ["espressif:esp32:adafruit_feather_esp32_v2", None],
"magtag" : ["esp32:esp32:adafruit_magtag29_esp32s2", "0xbfdd4eee"], "magtag" : ["esp32:esp32:adafruit_magtag29_esp32s2", "0xbfdd4eee"],
"funhouse" : ["esp32:esp32:adafruit_funhouse_esp32s2", "0xbfdd4eee"], "funhouse" : ["esp32:esp32:adafruit_funhouse_esp32s2", "0xbfdd4eee"],
"metroesp32s2" : ["esp32:esp32:adafruit_metro_esp32s2", "0xbfdd4eee"], "metroesp32s2" : ["esp32:esp32:adafruit_metro_esp32s2", "0xbfdd4eee"],
@ -219,7 +219,7 @@ def install_platform(platform):
print("Installing", platform, end=" ") print("Installing", platform, end=" ")
if platform == "adafruit:avr": # we have a platform dep if platform == "adafruit:avr": # we have a platform dep
install_platform("arduino:avr") install_platform("arduino:avr")
if platform == "manual:esp32": if platform == "espressif:esp32": # use "espressif:" prefix in arduino-cli rather than "esp32:" to manually install for a platform
manually_install_esp32_bsp() manually_install_esp32_bsp()
elif os.system("arduino-cli core install "+platform+" --additional-urls "+BSP_URLS+" > /dev/null") != 0: elif os.system("arduino-cli core install "+platform+" --additional-urls "+BSP_URLS+" > /dev/null") != 0:
ColorPrint.print_fail("FAILED to install "+platform) ColorPrint.print_fail("FAILED to install "+platform)