Skip to content

Commit

Permalink
apply PUYA patch to all available frameworks
Browse files Browse the repository at this point in the history
  • Loading branch information
psy0rz committed Feb 21, 2018
1 parent 10c73a0 commit 2bece45
Showing 1 changed file with 8 additions and 5 deletions.
13 changes: 8 additions & 5 deletions patches/check_puya_patch
Original file line number Diff line number Diff line change
@@ -1,9 +1,12 @@
#!/bin/bash

DIR=~/.platformio/packages/framework-arduinoespressif8266
PATCH=puya.patch

#not applied yet? (in upstream or otherwise)
if ! grep FLASH_QUIRK_WRITE_0_TO_1 $DIR/cores/esp8266/Esp.cpp >/dev/null; then
patch -p1 -d $DIR < $PATCH
fi
for DIR in ~/.platformio/packages/framework-arduinoespressif8266*/; do

#not applied yet? (in upstream or otherwise)
if ! grep FLASH_QUIRK_WRITE_0_TO_1 $DIR/cores/esp8266/Esp.cpp >/dev/null; then
echo "Patching $DIR"
patch -p1 -d $DIR < $PATCH
fi
done

0 comments on commit 2bece45

Please sign in to comment.