File tree Expand file tree Collapse file tree 2 files changed +0
-24
lines changed Expand file tree Collapse file tree 2 files changed +0
-24
lines changed Original file line number Diff line number Diff line change @@ -227,18 +227,6 @@ generate_flags () {
227227 sed -i ' s/LENGTH = 0x200000/LENGTH = CM4_BINARY_END - CM4_BINARY_START/g' " $ARDUINOVARIANT " /linker_script.ld
228228 sed -i ' s/LENGTH = 0x1c0000/LENGTH = CM4_BINARY_START - 0x8040000/g' " $ARDUINOVARIANT " /linker_script.ld
229229 fi
230- if [[ $ARDUINOVARIANT == * NANO_RP2040* ]]; then
231- set +e
232- HAS_2NDSTAGE_SECTION=` grep second_stage_ota " $ARDUINOVARIANT " /linker_script.ld`
233- set -e
234- if [ x" $HAS_2NDSTAGE_SECTION " == x ]; then
235- echo " Adding second stage bootloader section to Nano RP2040 Connect"
236- SECOND_STAGE_SECTION=" .second_stage_ota : {\n \
237- KEEP (*(.second_stage_ota))\n \
238- } > FLASH"
239- sed -i " s?.flash_begin?${SECOND_STAGE_SECTION} \n .flash_begin?g" $ARDUINOVARIANT /linker_script.ld
240- fi
241- fi
242230 done
243231 echo " done."
244232}
Original file line number Diff line number Diff line change @@ -253,18 +253,6 @@ generate_flags () {
253253 gsed -i ' s/LENGTH = 0x200000/LENGTH = CM4_BINARY_END - CM4_BINARY_START/g' " $ARDUINOVARIANT " /linker_script.ld
254254 gsed -i ' s/LENGTH = 0x1c0000/LENGTH = CM4_BINARY_START - 0x8040000/g' " $ARDUINOVARIANT " /linker_script.ld
255255 fi
256- if [[ $ARDUINOVARIANT == * NANO_RP2040* ]]; then
257- set +e
258- HAS_2NDSTAGE_SECTION=` grep second_stage_ota " $ARDUINOVARIANT " /linker_script.ld`
259- set -e
260- if [ x" $HAS_2NDSTAGE_SECTION " == x ]; then
261- echo " Adding second stage bootloader section to Nano RP2040 Connect"
262- SECOND_STAGE_SECTION=" .second_stage_ota : {\n \
263- KEEP (*(.second_stage_ota))\n \
264- } > FLASH"
265- gsed -i " s?.flash_begin?${SECOND_STAGE_SECTION} \n .flash_begin?g" $ARDUINOVARIANT /linker_script.ld
266- fi
267- fi
268256 done
269257 echo " done."
270258}
You can’t perform that action at this time.
0 commit comments