Browse Source

Increase irom0_0_seg for PR builds (again), supports #2008

Marcel Stör 6 years ago
parent
commit
9dc574d2b7
1 changed files with 5 additions and 0 deletions
  1. 5 0
      tools/pr-build.sh

+ 5 - 0
tools/pr-build.sh

@@ -19,6 +19,11 @@ sed -E -i.bak 's@// ?#define DEVELOP_VERSION@#define DEVELOP_VERSION@' user_conf
 sed -i 's@//#define BUILD_FATFS@#define BUILD_FATFS@' user_config.h
 cat user_config.h
 
+cd "$TRAVIS_BUILD_DIR"/ld || exit
+ # increase irom0_0_seg size for all modules build
+ sed -E -i.bak 's@(.*irom0_0_seg *:.*len *=) *[^,]*(.*)@\1 0x200000\2@' nodemcu.ld
+ cat nodemcu.ld
+
 # change to "root" directory no matter where the script was started from
 cd "$TRAVIS_BUILD_DIR" || exit
 make clean