add missing P4

This commit is contained in:
Jason2866
2024-09-17 14:00:58 +02:00
committed by GitHub
parent 02b4fe97a5
commit b1bc128119
+3 -3
View File
@@ -110,14 +110,14 @@ env.Append(
" ".join( " ".join(
[ [
"riscv32-esp-elf-objcopy" "riscv32-esp-elf-objcopy"
if mcu in ("esp32c2","esp32c3","esp32c6","esp32h2") if mcu in ("esp32c2","esp32c3","esp32c6","esp32h2","esp32p4")
else "xtensa-%s-elf-objcopy" % mcu, else "xtensa-%s-elf-objcopy" % mcu,
"--input-target", "--input-target",
"binary", "binary",
"--output-target", "--output-target",
"elf32-littleriscv" if mcu in ("esp32c2","esp32c3","esp32c6","esp32h2") else "elf32-xtensa-le", "elf32-littleriscv" if mcu in ("esp32c2","esp32c3","esp32c6","esp32h2","esp32p4") else "elf32-xtensa-le",
"--binary-architecture", "--binary-architecture",
"riscv" if mcu in ("esp32c2","esp32c3","esp32c6","esp32h2") else "xtensa", "riscv" if mcu in ("esp32c2","esp32c3","esp32c6","esp32h2","esp32p4") else "xtensa",
"--rename-section", "--rename-section",
".data=.rodata.embedded", ".data=.rodata.embedded",
"$SOURCE", "$SOURCE",