22 lines
479 B
Python
22 lines
479 B
Python
Import("env")
|
|
import os
|
|
|
|
lib_path = os.path.join(
|
|
env.subst("$PROJECT_DIR"),
|
|
".pio", "libdeps", env.subst("$PIOENV"),
|
|
"Adafruit TinyUSB Library", "src"
|
|
)
|
|
|
|
conflicting = [
|
|
"tusb.c",
|
|
"common/tusb_fifo.c",
|
|
"device/usbd.c",
|
|
"device/usbd_control.c",
|
|
]
|
|
|
|
for f in conflicting:
|
|
path = os.path.join(lib_path, f)
|
|
if os.path.exists(path):
|
|
os.remove(path)
|
|
print(f"[extra_script] Removed {f} (provided by ESP32 core libarduino_tinyusb.a)")
|