소스 검색

Inherit the PIO environment instead of copy-pasting it.

saybur 2 년 전
부모
커밋
f1190a1ec4
1개의 변경된 파일2개의 추가작업 그리고 19개의 파일을 삭제
  1. 2 19
      platformio.ini

+ 2 - 19
platformio.ini

@@ -100,26 +100,9 @@ build_flags =
 
 ; ZuluSCSI RP2040 hardware platform, as above, but with audio output support enabled
 [env:ZuluSCSI_RP2040_Audio]
-platform = raspberrypi@1.8.0
-framework = arduino
-board = ZuluSCSI_RP2040
-extra_scripts = src/build_bootloader.py
-board_build.ldscript = lib/ZuluSCSI_platform_RP2040/rp2040.ld
-ldscript_bootloader = lib/ZuluSCSI_platform_RP2040/rp2040_btldr.ld
-lib_deps =
-    SdFat=https://github.com/rabbitholecomputing/SdFat#2.2.0-gpt
-    minIni
-    ZuluSCSI_platform_RP2040
-    SCSI2SD
+extends = env:ZuluSCSI_RP2040
 build_flags =
-    -O2 -Isrc -ggdb -g3
-    -Wall -Wno-sign-compare -Wno-ignored-qualifiers
-    -DSPI_DRIVER_SELECT=3
-    -DSD_CHIP_SELECT_MODE=2
-    -DENABLE_DEDICATED_SPI=1
-    -DHAS_SDIO_CLASS
-    -DUSE_ARDUINO=1
-    -DZULUSCSI_V2_0
+    ${env:ZuluSCSI_RP2040.build_flags}
     -DENABLE_AUDIO_OUTPUT
 
 ; Variant of RP2040 platform, based on Raspberry Pico board and a carrier PCB