Skip to content

Commit 7162b22

Browse files
committed
Fix Mk2.5/S zip after change PO-based language translation support
Limit atmegaMK404 boards mem to 8,16,32
1 parent 0af8857 commit 7162b22

File tree

2 files changed

+49
-40
lines changed

2 files changed

+49
-40
lines changed

MK404-build.sh

+6-8
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
# 3. Install latest updates with 'sudo apt-get upgrade'
1111
#
1212
#
13-
# Version: 1.0.0-Build_14
13+
# Version: 1.0.0-Build_15
1414
# Change log:
1515
# 11 Feb 2021, 3d-gussner, Inital
1616
# 11 Feb 2021, 3d-gussner, Optional flags to check for updates
@@ -22,8 +22,9 @@
2222
# 18 Jun 2021, 3d-gussner, Added -g 3 and 4 for more details extrusion lines
2323
# 18 Jun 2021, 3d-gussner, Check for updates is default. Fix update if internet connection is lost.
2424
# 21 Jun 2021, 3d-gussner, Change board_flash argument to 'y' and firmware_version to 'f'
25-
# 25 Jan 2021, 3d-gussner, Allow upper and lower case in selection
25+
# 25 Jan 2022, 3d-gussner, Allow upper and lower case in selection
2626
# Add update option to release OR devel
27+
# 01 Jul 2022, 3d-gussner, Limit atmegaMK404 boards mem to 8,16,32
2728

2829
#### Start: Failures
2930
failures()
@@ -35,7 +36,7 @@ case "$1" in
3536
4) echo "$(tput setaf 1)Some packages are missing please install these!$(tput sgr0)" ; exit 4 ;;
3637
5) echo "$(tput setaf 1)Wrong printer chosen.$(tput sgr0) Following Printers are supported: MK25, MK25S, MK3 and MK3S" ; exit 5 ;;
3738
6) echo "$(tput setaf 1)Unsupported board flash size chosen.$(tput sgr0) Only '256', '384', '512', '1024' and '32M' are allowed." ; exit 6 ;;
38-
7) echo "$(tput setaf 1)Unsupported board mem size chosen.$(tput sgr0) Only '8', '16', '32' and '64' are allowed." ; exit 7 ;;
39+
7) echo "$(tput setaf 1)Unsupported board mem size chosen.$(tput sgr0) Only '8', '16' and '32' are allowed." ; exit 7 ;;
3940
8) echo "$(tput setaf 1)No firmware version file selected!$(tput sgr0)" ; echo "Add argument -f with path and hex filename to start MK404" ; exit 8 ;;
4041
9) echo "$(tput setaf 1)Tried to determine MK404 printer from hex file, but failed!$(tput sgr0)" ; "Add argument -p with 'MK25', 'MK25S', 'MK3' or 'MK3S' to start MK404" ; exit 9 ;;
4142
10) echo "$(tput setaf 1)Missing printer$(tput sgr0)" ; exit 10 ;;
@@ -76,7 +77,7 @@ while getopts c:f:g:m:n:p:u:x:y:?h flag
7677
# '?' 'h' argument usage and help
7778
if [ "$help_flag" == "1" ] ; then
7879
echo "***************************************"
79-
echo "* MK404-build.sh Version: 1.0.0-Build_14 *"
80+
echo "* MK404-build.sh Version: 1.0.0-Build_15 *"
8081
echo "***************************************"
8182
echo "Arguments:"
8283
echo "$(tput setaf 2)-c$(tput sgr0) Check for update"
@@ -101,7 +102,7 @@ echo " -m : '$(tput setaf 2)0$(tput sgr0)' no, '$(tput setaf 2)1$(tput sgr0)' y
101102
echo " -n : '$(tput setaf 2)0$(tput sgr0)' no, '$(tput setaf 2)1$(tput sgr0)' yes"
102103
echo " -p : '$(tput setaf 2)MK25$(tput sgr0)', '$(tput setaf 2)MK25S$(tput sgr0)', '$(tput setaf 2)MK3$(tput sgr0)' or '$(tput setaf 2)MK3S$(tput sgr0)'"
103104
echo " -u : '$(tput setaf 2)0$(tput sgr0)' no, '$(tput setaf 2)1$(tput sgr0)' release ', '$(tput setaf 2)2$(tput sgr0)' devel '"
104-
echo " -x : '$(tput setaf 2)8$(tput sgr0)',$(tput setaf 2)16$(tput sgr0)',$(tput setaf 2)32$(tput sgr0)' or '$(tput setaf 2)64$(tput sgr0)' Kb."
105+
echo " -x : '$(tput setaf 2)8$(tput sgr0)',$(tput setaf 2)16$(tput sgr0)' or $(tput setaf 2)32$(tput sgr0)' Kb."
105106
echo " -y : '$(tput setaf 2)256$(tput sgr0)','$(tput setaf 2)384$(tput sgr0)','$(tput setaf 2)512$(tput sgr0)','$(tput setaf 2)1024$(tput sgr0)''$(tput setaf 2)32M$(tput sgr0)'"
106107
echo
107108
echo "Example:"
@@ -160,9 +161,6 @@ if [ ! -z "$board_mem_flag" ] ; then
160161
elif [ "$board_mem_flag" == "32" ] ; then
161162
BOARD_MEM="0x7DFF"
162163
echo "Board mem size : $board_mem_flag Kb, $BOARD_MEM (hex)"
163-
elif [ "$board_mem_flag" == "64" ] ; then
164-
BOARD_MEM="0xFFFF"
165-
echo "Board mem size : $board_mem_flag Kb, $BOARD_MEM (hex)"
166164
else
167165
failures 7
168166
fi

PF-build.sh

+43-32
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@
5656
# Some may argue that this is only used by a script, BUT as soon someone accidentally or on purpose starts Arduino IDE
5757
# it will use the default Arduino IDE folders and so can corrupt the build environment.
5858
#
59-
# Version: 2.0.2-Build_69
59+
# Version: 2.0.2-Build_74
6060
# Change log:
6161
# 12 Jan 2019, 3d-gussner, Fixed "compiler.c.elf.flags=-w -Os -Wl,-u,vfprintf -lprintf_flt -lm -Wl,--gc-sections" in 'platform.txt'
6262
# 16 Jan 2019, 3d-gussner, Build_2, Added development check to modify 'Configuration.h' to prevent unwanted LCD messages that Firmware is unknown
@@ -177,8 +177,9 @@
177177
# Fix DEV_STATUS to set correctly on RC/BETA/ALPHA/DEVEL
178178
# Fix atmegaMK404 Board mem and flash modifications
179179
# Limit atmegaMK404 boards mem to 8,16,32
180-
# 20 Jun 2022, 3d-gussner, Change to Ardunio_boards v 1.0.5-1
181-
180+
# 20 Jun 2022, 3d-gussner, Change to Ardunio_boards v1.0.5-1
181+
# 20 Jun 2022, wavexx , New PO-based language translation support
182+
# 20 Jun 2022, 3d-gussner, fix Mk2.5/S zip after change PO-based language translation support
182183

183184
SCRIPT_PATH="$( cd "$(dirname "$0")" ; pwd -P )"
184185
export SRCDIR=$SCRIPT_PATH
@@ -235,7 +236,7 @@ while getopts b:c:d:g:h:i:j:l:m:n:o:p:v:x:y:?h flag
235236
# '?' 'h' argument usage and help
236237
if [ "$help_flag" == "1" ] ; then
237238
echo "***************************************"
238-
echo "* PF-build.sh Version: 2.0.2-Build_69 *"
239+
echo "* PF-build.sh Version: 2.0.2-Build_74 *"
239240
echo "***************************************"
240241
echo "Arguments:"
241242
echo "$(tput setaf 2)-b$(tput sgr0) Build/commit number"
@@ -261,15 +262,15 @@ echo " -b : '$(tput setaf 2)Auto$(tput sgr0)' needs git or a number"
261262
echo " -c : '$(tput setaf 2)0$(tput sgr0)' clean up, '$(tput setaf 2)1$(tput sgr0)' keep"
262263
echo " -d : '$(tput setaf 2)GOLD$(tput sgr0)', '$(tput setaf 2)RC$(tput sgr0)', '$(tput setaf 2)BETA$(tput sgr0)', '$(tput setaf 2)ALPHA$(tput sgr0)', '$(tput setaf 2)DEBUG$(tput sgr0)', '$(tput setaf 2)DEVEL$(tput sgr0)' and '$(tput setaf 2)UNKNOWN$(tput sgr0)'"
263264
echo " -g : '$(tput setaf 2)0$(tput sgr0)' no '$(tput setaf 2)1$(tput sgr0)' lite '$(tput setaf 2)2$(tput sgr0)' fancy '$(tput setaf 2)3$(tput sgr0)' lite with Quad_HR '$(tput setaf 2)4$(tput sgr0)' fancy with Quad_HR"
264-
echo " -i : '$(tput setaf 2)1.8.5$(tput sgr0)', '$(tput setaf 2)1.8.13$(tput sgr0)', '$(tput setaf 2)1.8.19$(tput sgr0)'"
265+
echo " -i : '$(tput setaf 2)1.8.5$(tput sgr0)', '$(tput setaf 2)1.8.19$(tput sgr0)'"
265266
echo " -j : '$(tput setaf 2)0$(tput sgr0)' no, '$(tput setaf 2)1$(tput sgr0)' yes"
266267
echo " -l : '$(tput setaf 2)ALL$(tput sgr0)' for multi language or '$(tput setaf 2)EN_ONLY$(tput sgr0)' for English only"
267268
echo " -m : '$(tput setaf 2)0$(tput sgr0)' no, '$(tput setaf 2)1$(tput sgr0)' yes '$(tput setaf 2)2$(tput sgr0)' with MMU2"
268269
echo " -n : '$(tput setaf 2)0$(tput sgr0)' no, '$(tput setaf 2)1$(tput sgr0)' yes"
269270
echo " -o : '$(tput setaf 2)1$(tput sgr0)' force or '$(tput setaf 2)0$(tput sgr0)' block output and delays"
270271
echo " -p : '$(tput setaf 2)0$(tput sgr0)' no, '$(tput setaf 2)1$(tput sgr0)' yes"
271272
echo " -v : '$(tput setaf 2)All$(tput sgr0)' or variant file name"
272-
echo " -x : '$(tput setaf 2)8$(tput sgr0)' or '$(tput setaf 2)64$(tput sgr0)' Kb."
273+
echo " -x : '$(tput setaf 2)8$(tput sgr0)','$(tput setaf 2)16$(tput sgr0)'or'$(tput setaf 2)32$(tput sgr0)' Kb."
273274
echo " -y : '$(tput setaf 2)256$(tput sgr0)','$(tput setaf 2)384$(tput sgr0)','$(tput setaf 2)512$(tput sgr0)','$(tput setaf 2)1024$(tput sgr0)''$(tput setaf 2)32M$(tput sgr0)'"
274275
echo
275276
echo "Example:"
@@ -345,25 +346,21 @@ if [ ! -z "$board_mem_flag" ] ; then
345346
BOARD_MEM="0x7DFF"
346347
echo "Board mem size : $board_mem_flag Kb, $BOARD_MEM (hex)"
347348
OUTPUT_FILENAME_SUFFIX="${OUTPUT_FILENAME_SUFFIX}_RAM-$board_mem_flag"
348-
elif [ "$board_mem_flag" == "64" ] ; then
349-
BOARD_MEM="0xFFFF"
350-
echo "Board mem size : $board_mem_flag Kb, $BOARD_MEM (hex)"
351-
OUTPUT_FILENAME_SUFFIX="${OUTPUT_FILENAME_SUFFIX}_RAM-$board_mem_flag"
352349
else
353-
echo "Unsupported board mem size chosen. Only '8', '64' are allowed."
350+
echo "Unsupported board mem size chosen. Only '8', '16' and '32' are allowed."
354351
failures 5
355352
fi
356353
fi
357354

358355
#Start: Check if Arduino IDE version is correct
359356
if [ ! -z "$IDE_flag" ]; then
360-
if [[ "$IDE_flag" == "1.8.5" || "$IDE_flag" == "1.8.13" || "$IDE_flag" == "1.8.19" ]]; then
357+
if [[ "$IDE_flag" == "1.8.5" || "$IDE_flag" == "1.8.19" ]]; then
361358
ARDUINO_ENV="${IDE_flag}"
362359
else
363-
ARDUINO_ENV="1.8.5"
360+
ARDUINO_ENV="1.8.19"
364361
fi
365362
else
366-
ARDUINO_ENV="1.8.5"
363+
ARDUINO_ENV="1.8.19"
367364
fi
368365
#End: Check if Arduino IDE version is correct
369366

@@ -546,7 +543,7 @@ fi
546543
#### Start: Set build environment
547544
set_build_env_variables()
548545
{
549-
BUILD_ENV="1.0.6"
546+
BUILD_ENV="1.0.7"
550547
BOARD="prusa_einsy_rambo"
551548
BOARD_PACKAGE_NAME="PrusaResearch"
552549
if [ "$ARDUINO_ENV" == "1.8.19" ]; then
@@ -1022,12 +1019,15 @@ prepare_code_for_compiling()
10221019
MOTHERBOARD=$(grep --max-count=1 "\bMOTHERBOARD\b" $SCRIPT_PATH/Firmware/variants/$VARIANT.h | sed -e's/ */ /g' |cut -d ' ' -f3)
10231020
# Check development status
10241021
FW_FLAV=$(grep --max-count=1 "//#define FW_FLAVOR\b" $SCRIPT_PATH/Firmware/Configuration.h|cut -d ' ' -f1)
1022+
#echo "FLAV:$FW_FLAV"
10251023
if [[ "$FW_FLAV" != "//#define" ]] ; then
10261024
FW_FLAVOR=$(grep --max-count=1 "\bFW_FLAVOR\b" $SCRIPT_PATH/Firmware/Configuration.h| sed -e's/ */ /g'|cut -d ' ' -f3)
1025+
#echo "FLAVOR:$FW_FLAVOR"
10271026
FW_FLAVERSION=$(grep --max-count=1 "\bFW_FLAVERSION\b" $SCRIPT_PATH/Firmware/Configuration.h| sed -e's/ */ /g'|cut -d ' ' -f3)
10281027
if [[ "$FW_FLAVOR" != "//#define FW_FLAVOR" ]] ; then
10291028
FW="$FW-$FW_FLAVOR"
10301029
DEV_CHECK="$FW_FLAVOR"
1030+
#echo "DEV:$DEV_CHECK"
10311031
if [ ! -z "$FW_FLAVERSION" ] ; then
10321032
FW="$FW$FW_FLAVERSION"
10331033
fi
@@ -1193,24 +1193,28 @@ prepare_variant_for_compiling()
11931193
compile_en_firmware()
11941194
{
11951195
## Check board mem size
1196-
CURRENT_BOARD_MEM=$(grep "#define RAMEND" $BUILD_ENV_PATH/hardware/tools/avr/avr/include/avr/iom2560.h | sed -e's/.* //g'|cut -d ' ' -f3|tr -d $'\n')
1196+
CURRENT_BOARD_MEM=$(grep "#define RAMEND" $BUILD_ENV_PATH/hardware/tools/avr/avr/include/avr/iom2560.h | sed -e's/.* //g'|cut -d ' ' -f2 |tr -d ' \t\n\r')
11971197
if [ $CURRENT_BOARD_MEM != "0x21FF" ] ; then
1198-
echo "Board mem has been already modified or not reset"
1198+
echo "$(tput setaf 1)Board mem has been modified or not reset$(tput sgr 0)"
11991199
echo "Current:" $CURRENT_BOARD_MEM
12001200
PS3="Select $(tput setaf 2)Yes$(tput sgr 0) if you want to reset it."
12011201
select yn in "Yes" "No"; do
12021202
case $yn in
12031203
Yes)
12041204
echo "Resetting board mem size"
12051205
sed -i -- "s/^#define RAMEND .*$/#define RAMEND 0x21FF/g" $BUILD_ENV_PATH/hardware/tools/avr/avr/include/avr/iom2560.h
1206+
BOARD_MEM_MODIFIED=0
12061207
break
12071208
;;
12081209
*)
12091210
echo "Continuing with modified mem size"
1211+
BOARD_MEM_MODIFIED=1
12101212
break
12111213
;;
12121214
esac
12131215
done
1216+
else
1217+
BOARD_MEM_MODIFIED=0
12141218
fi
12151219
## Modify board mem size
12161220
if [[ ! -z $BOARD_MEM && "$BOARD_MEM" != "0x21FF" ]] ; then
@@ -1220,13 +1224,14 @@ compile_en_firmware()
12201224
read -t 5 -p "To cancel press $(tput setaf 1)CRTL+C$(tput sgr 0)"
12211225
echo ""
12221226
sed -i -- "s/^#define RAMEND 0x21FF/#define RAMEND ${BOARD_MEM}/g" $BUILD_ENV_PATH/hardware/tools/avr/avr/include/avr/iom2560.h
1227+
BOARD_MEM_MODIFIED=1
12231228
fi
12241229

12251230
## Check board flash size
1226-
CURRENT_BOARD_FLASH=$(grep "#define FLASHEND" $BUILD_ENV_PATH/hardware/tools/avr/avr/include/avr/iom2560.h | sed -e's/.* //g'|cut -d ' ' -f3|tr -d $'\n')
1227-
CURRENT_BOARD_maximum_size=$(grep "prusa_einsy_rambo.upload.maximum_size" $BUILD_ENV_PATH/portable/packages/$BOARD_PACKAGE_NAME/hardware/avr/$BOARD_VERSION/boards.txt |cut -d '=' -f2|tr -d $'\n')
1231+
CURRENT_BOARD_FLASH=$(grep "#define FLASHEND" $BUILD_ENV_PATH/hardware/tools/avr/avr/include/avr/iom2560.h | sed -e's/.* //g'|cut -d ' ' -f2 |tr -d ' \t\n\r')
1232+
CURRENT_BOARD_maximum_size=$(grep "prusa_einsy_rambo.upload.maximum_size" $BUILD_ENV_PATH/portable/packages/$BOARD_PACKAGE_NAME/hardware/avr/$BOARD_VERSION/boards.txt |cut -d '=' -f2|tr -d ' \t\n\r')
12281233
if [[ $CURRENT_BOARD_FLASH != "0x3FFFF" || $CURRENT_BOARD_maximum_size != "253952" ]] ; then
1229-
echo "Board flash has been already modified or not reset"
1234+
echo "$(tput setaf 1)Board flash has been modified or not reset$(tput sgr 0)"
12301235
echo "Current flash size:" $CURRENT_BOARD_FLASH
12311236
echo "Current max. size:" $CURRENT_BOARD_maximum_size
12321237
PS3="Select $(tput setaf 2)Yes$(tput sgr 0) if you want to reset it."
@@ -1236,25 +1241,30 @@ compile_en_firmware()
12361241
echo "$(tput setaf 1)Resetting board flash size$(tput sgr 0)"
12371242
sed -i -- "s/^#define FLASHEND .*$/#define FLASHEND 0x3FFFF/g" $BUILD_ENV_PATH/hardware/tools/avr/avr/include/avr/iom2560.h
12381243
sed -i -- "s/^prusa_einsy_rambo.upload.maximum_size.*/prusa_einsy_rambo.upload.maximum_size=253952/g" $BUILD_ENV_PATH/portable/packages/$BOARD_PACKAGE_NAME/hardware/avr/$BOARD_VERSION/boards.txt
1244+
BOARD_FLASH_MODIFIED=0
12391245
break
12401246
;;
12411247
*)
12421248
echo "$(tput setaf 3)Continuing with modified flash size$(tput sgr 0)"
1249+
BOARD_FLASH_MODIFIED=1
12431250
break
12441251
;;
12451252
esac
12461253
done
1254+
else
1255+
BOARD_FLASH_MODIFIED=1
12471256
fi
12481257
## Modify boad flash size
12491258
if [[ ! -z $BOARD_FLASH && "$BOARD_FLASH" != "0x3FFFF" ]] ; then
1250-
echo "Modifying board flash size (hex):"
1259+
echo "$(tput setaf 3)Modifying board flash size (hex):$(tput sgr 0)"
12511260
echo "Old flash size:" $CURRENT_BOARD_FLASH
12521261
echo "New flash size:" $BOARD_FLASH
12531262
echo "Old max. size:" $CURRENT_BOARD_maximum_size
12541263
echo "New max. size:" $BOARD_maximum_size
12551264
read -t 5 -p "To cancel press $(tput setaf 1)CRTL+C$(tput sgr 0)"
12561265
sed -i -- "s/^#define FLASHEND .*/#define FLASHEND ${BOARD_FLASH}/g" $BUILD_ENV_PATH/hardware/tools/avr/avr/include/avr/iom2560.h
12571266
sed -i -- "s/^prusa_einsy_rambo.upload.maximum_size.*/prusa_einsy_rambo.upload.maximum_size=${BOARD_maximum_size}/g" $BUILD_ENV_PATH/portable/packages/$BOARD_PACKAGE_NAME/hardware/avr/$BOARD_VERSION/boards.txt
1267+
BOARD_FLASH_MODIFIED=1
12581268
fi
12591269

12601270
#Check if compiler flags are set to Prusa specific needs for the rambo board.
@@ -1337,23 +1347,18 @@ create_multi_firmware()
13371347
cp -f $BUILD_PATH/Firmware.ino.elf $SCRIPT_PATH/../$OUTPUT_FOLDER/$OUTPUT_FILENAME.elf
13381348
else
13391349
#Search for created firmware languages
1340-
langs=$(find firmware_*.hex | cut -d "_" -f2 | cut -d "." -f1)
1350+
langs=$(find Firmware-intl-en_*.hex | cut -d "_" -f2 | cut -d "." -f1)
13411351
#Copy found firmware_*.hex files
13421352
for la in $langs; do
1343-
cp -f firmware_$la.hex $SCRIPT_PATH/../$OUTPUT_FOLDER/$OUTPUT_FILENAME-$la.hex
1353+
cp -f Firmware-intl-en_$la.hex $SCRIPT_PATH/../$OUTPUT_FOLDER/$OUTPUT_FILENAME-$la.hex
13441354
done
13451355
cp -f $BUILD_PATH/Firmware.ino.elf $SCRIPT_PATH/../$OUTPUT_FOLDER/$OUTPUT_FILENAME.elf
13461356
echo "$(tput setaf 2)Zip multi language firmware for MK2.5/miniRAMbo board to PF-build-hex folder$(tput sgr 0)"
13471357
if [ $TARGET_OS == "windows" ]; then
13481358
zip a $SCRIPT_PATH/../$OUTPUT_FOLDER/$OUTPUT_FILENAME.zip $SCRIPT_PATH/../$OUTPUT_FOLDER/$OUTPUT_FILENAME-??.hex
13491359
#rm $SCRIPT_PATH/../$OUTPUT_FOLDER/$OUTPUT_FILENAME-??.hex
13501360
elif [ $TARGET_OS == "linux" ]; then
1351-
# Make a copy for MK404 sim of MK2, MK2.5, MK2.5S firmware
1352-
if [ ! -z "$mk404_flag" ]; then
1353-
cp -f firmware_de.hex $SCRIPT_PATH/../$OUTPUT_FOLDER/$OUTPUT_FILENAME.hex
1354-
fi
1355-
# End of MK2, MK2.5, MK2.5S firmware copy
1356-
zip -j ../../$OUTPUT_FOLDER/$OUTPUT_FILENAME.zip ../../$OUTPUT_FOLDER/$OUTPUT_FILENAME-??.hex
1361+
zip -j ../../$OUTPUT_FOLDER/$OUTPUT_FILENAME.zip ../../$OUTPUT_FOLDER/$OUTPUT_FILENAME-??.hex
13571362
fi
13581363
fi
13591364

@@ -1434,9 +1439,15 @@ cleanup_firmware()
14341439
fi
14351440

14361441
# Restore build env files to previous state
1437-
sed -i -- "s/^#define FLASHEND .*$/#define FLASHEND 0x3FFFF/g" $BUILD_ENV_PATH/hardware/tools/avr/avr/include/avr/iom2560.h
1438-
sed -i -- "s/^prusa_einsy_rambo.upload.maximum_size.*/prusa_einsy_rambo.upload.maximum_size=253952/g" $BUILD_ENV_PATH/portable/packages/$BOARD_PACKAGE_NAME/hardware/avr/$BOARD_VERSION/boards.txt
1439-
sed -i -- "s/^#define RAMEND.*/#define RAMEND 0x21FF/g" $BUILD_ENV_PATH/hardware/tools/avr/avr/include/avr/iom2560.h
1442+
if [ $BOARD_MEM_MODIFIED == "1" ]; then
1443+
sed -i -- "s/^#define FLASHEND .*$/#define FLASHEND 0x3FFFF/g" $BUILD_ENV_PATH/hardware/tools/avr/avr/include/avr/iom2560.h
1444+
echo "$(tput setaf 2)Restored Board Mem$(tput sgr 0)"
1445+
fi
1446+
if [ $BOARD_FLASH_MODIFIED == "1" ]; then
1447+
sed -i -- "s/^prusa_einsy_rambo.upload.maximum_size.*/prusa_einsy_rambo.upload.maximum_size=253952/g" $BUILD_ENV_PATH/portable/packages/$BOARD_PACKAGE_NAME/hardware/avr/$BOARD_VERSION/boards.txt
1448+
sed -i -- "s/^#define RAMEND.*/#define RAMEND 0x21FF/g" $BUILD_ENV_PATH/hardware/tools/avr/avr/include/avr/iom2560.h
1449+
echo "$(tput setaf 2)Restored Board Flash$(tput sgr 0)"
1450+
fi
14401451

14411452
}
14421453
#### End: Prepare code for compiling

0 commit comments

Comments
 (0)