carstenscharlemann / Climb-Obc-Sandbox

Experiments with LPC1769 in preparation for the Climb-cubesats OBC software.
2 stars 4 forks source link

Make possible to CI the OBC Software #4

Open RobertK66 opened 6 years ago

RobertK66 commented 6 years ago

How to make a headless build ? ....

RobertK66 commented 6 years ago

For info on that you can find: https://mcuoneclipse.com/2017/08/03/building-eclipse-and-mcuxpresso-ide-projects-from-the-command-line https://community.nxp.com/thread/388962

majestix508 commented 6 years ago
#!/bin/bash
# Batch file to build an Eclipse project from the command line on Linux
# Example for using MCUXpresso IDE

# path to GNU tools and compiler: arm-none-eabi-gcc, ....
export TOOLCHAIN_PATH=/usr/local/mcuxpressoide-10.1.1_606/ide/bin

# variable to the command line Eclipse IDE executable
export IDE=/usr/local/mcuxpressoide-10.1.1_606/ide/mcuxpressoide

echo "Extending PATH if not already present"
export PATH=$TOOLCHAIN_PATH:$IDE:$PATH

echo Launching Eclipse IDE
$IDE -nosplash --launcher.suppressErrors -application org.eclipse.cdt.managedbuilder.core.headlessbuild -data "/home/reinhard/Documents/MCUXpresso_10.1.1_606/workspace" -build CppOpen

The project directory must be in the mcuxpresso defined worspace!

majestix508 commented 6 years ago

Headless installation of mcuxpresso:

./mcuxpressoide-10.1.1_606.x86_64.deb.bin --nox11 --confirm