Skip to content

Commit ab91e32

Browse files
committed
[PIO]Fix variant header changes
Signed-off-by: Frederic Pillon <[email protected]>
1 parent 90f2e34 commit ab91e32

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

Diff for: .github/actions/pio-build/entrypoint.sh

+4-3
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,10 @@ python3 -c "import json; import os; fp=open(os.path.expanduser('~/.platformio/pl
1313
}
1414

1515
# Fix for variant path change while not updated in PIO
16-
python3 -c "import json; import os; fp=open(os.path.expanduser('~/.platformio/platforms/ststm32/boards/remram_v1.json'), 'r+'); data=json.load(fp); data['build']['variant'] = 'STM32F7xx/REMRAM_V1'; fp.seek(0); fp.truncate(); json.dump(data, fp); fp.close()" || {
16+
python3 -c "import json; import os; fp=open(os.path.expanduser('~/.platformio/platforms/ststm32/boards/remram_v1.json'), 'r+'); data=json.load(fp); data['build']['variant'] = 'STM32F7xx/F765V\\\\\(G-I\\\\\)_F767VG_F767VI_F777VI'; data['build']['extra_flags'] = '-DSTM32F765xx -DCUSTOM_PERIPHERAL_PINS -DVARIANT_H=\\\\\"variant_REMRAM_V1.h\\\\\"'; fp.seek(0); fp.truncate(); json.dump(data, fp); fp.close()" || {
1717
exit 1
1818
}
19-
python3 -c "import json; import os; fp=open(os.path.expanduser('~/.platformio/platforms/ststm32/boards/blackpill_f103c8.json'), 'r+'); data=json.load(fp); data['build']['variant'] = 'STM32F1xx/PILL_F103XX'; fp.seek(0); fp.truncate(); json.dump(data, fp); fp.close()" || {
19+
python3 -c "import json; import os; fp=open(os.path.expanduser('~/.platformio/platforms/ststm32/boards/blackpill_f103c8.json'), 'r+'); data=json.load(fp); data['build']['variant'] = 'STM32F1xx/PILL_F103XX'; data['build']['extra_flags'] = '-DSTM32F1 -DSTM32F103xB -DVARIANT_H=\\\\\"variant_PILL_F103XX.h\\\\\"'; fp.seek(0); fp.truncate(); json.dump(data, fp); fp.close()" || {
2020
exit 1
2121
}
2222

@@ -33,6 +33,7 @@ tar --extract --bzip2 --file="$CMSIS_ARCHIVE" || {
3333
cd "$GITHUB_WORKSPACE/CI/build/" || {
3434
exit 1
3535
}
36-
python3 platformio-builder.py --board=blackpill_f103c8 --board=remram_v1
36+
# python3 platformio-builder.py --board=blackpill_f103c8 --board=remram_v1
37+
python3 platformio-builder.py --board=blackpill_f103c8
3738

3839
exit $?

0 commit comments

Comments
 (0)