forked from prusa3d/Prusa-Firmware
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request prusa3d#1365 from mkbel/build_lang
Build lang
- Loading branch information
Showing
13 changed files
with
117 additions
and
17 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
dist: trusty | ||
before_install: | ||
- sudo apt-get install -y ninja-build | ||
script: | ||
- bash -x test.sh | ||
- bash -x build.sh | ||
- rm Firmware/Configuration_prusa.h | ||
- cp Firmware/variants/1_75mm_MK25-RAMBo13a-E3Dv6full.h Firmware/Configuration_prusa.h | ||
- bash -x build.sh | ||
- rm Firmware/Configuration_prusa.h | ||
- cp Firmware/variants/1_75mm_MK25-RAMBo10a-E3Dv6full.h Firmware/Configuration_prusa.h | ||
- bash -x build.sh | ||
- rm Firmware/Configuration_prusa.h | ||
- cp Firmware/variants/1_75mm_MK2-RAMBo13a-E3Dv6full.h Firmware/Configuration_prusa.h | ||
- bash -x build.sh | ||
- rm Firmware/Configuration_prusa.h | ||
- cp Firmware/variants/1_75mm_MK2-RAMBo10a-E3Dv6full.h Firmware/Configuration_prusa.h | ||
- bash -x build.sh |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
#!/bin/bash | ||
BUILD_ENV="1.0.1" | ||
SCRIPT_PATH="$( cd "$(dirname "$0")" ; pwd -P )" | ||
|
||
if [ ! -d "build-env" ]; then | ||
mkdir build-env || exit 1 | ||
fi | ||
cd build-env || exit 2 | ||
|
||
if [ ! -f "PF-build-env-Linux64-$BUILD_ENV.zip" ]; then | ||
wget https://github.com/mkbel/PF-build-env/releases/download/$BUILD_ENV/PF-build-env-Linux64-$BUILD_ENV.zip || exit 3 | ||
fi | ||
|
||
if [ ! -d "../../PF-build-env-$BUILD_ENV" ]; then | ||
unzip PF-build-env-Linux64-$BUILD_ENV.zip -d ../../PF-build-env-$BUILD_ENV || exit 4 | ||
fi | ||
|
||
cd ../../PF-build-env-$BUILD_ENV || exit 5 | ||
BUILD_ENV_PATH="$( pwd -P )" | ||
|
||
cd .. | ||
|
||
if [ ! -d "Prusa-Firmware-build" ]; then | ||
mkdir Prusa-Firmware-build || exit 6 | ||
fi | ||
|
||
cd Prusa-Firmware-build || exit 7 | ||
BUILD_PATH="$( pwd -P )" | ||
|
||
if [ ! -f "$SCRIPT_PATH/Firmware/Configuration_prusa.h" ]; then | ||
cp $SCRIPT_PATH/Firmware/variants/1_75mm_MK3-EINSy10a-E3Dv6full.h $SCRIPT_PATH/Firmware/Configuration_prusa.h || exit 8 | ||
fi | ||
|
||
$BUILD_ENV_PATH/arduino $SCRIPT_PATH/Firmware/Firmware.ino --verify --board rambo:avr:rambo --pref build.path=$BUILD_PATH || exit 9 | ||
|
||
export ARDUINO=$BUILD_ENV_PATH | ||
|
||
cd $SCRIPT_PATH/lang | ||
./lang-build.sh || exit 10 | ||
./fw-build.sh || exit 11 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
#!/bin/bash | ||
cd .. || exit 5 | ||
|
||
if [ ! -d "Prusa-Firmware-test" ]; then | ||
mkdir Prusa-Firmware-test || exit 10 | ||
fi | ||
|
||
cd Prusa-Firmware-test || exit 20 | ||
|
||
cmake -G "Eclipse CDT4 - Ninja" ../Prusa-Firmware || exit 30 | ||
cmake --build . || exit 35 | ||
./tests || exit 40 |