build:arm allow to store build settings in a .settings file.
If present a file called .settings will be sourced when calling the arm_sdimage.sh script. This allows to configure the build setting for arm build without the need to specify the flags each time arm_sdimage.sh is called. For example to configure arm_sdimage.sh to target the beaglebone put the following content in your .settings file. BASE_URL=http://www.minix3.org/arm/beaglebone FLAG=-DAM335X CONSOLE=tty00 Change-Id: Ide0341a255bc7f41dc5c30d0a43e71b01a8ea55c
This commit is contained in:
parent
26428d4bc6
commit
eb1e5bf042
1 changed files with 12 additions and 0 deletions
|
@ -2,6 +2,18 @@
|
||||||
set -e
|
set -e
|
||||||
#set -x
|
#set -x
|
||||||
|
|
||||||
|
#
|
||||||
|
# Source settings if present
|
||||||
|
#
|
||||||
|
if [ -e .settings ]
|
||||||
|
then
|
||||||
|
echo "Sourcing settings from .settings"
|
||||||
|
# Display the content (so we can check in the build logs
|
||||||
|
# what the settings contain.
|
||||||
|
cat .settings | sed "s,^,CONTENT ,g"
|
||||||
|
. .settings
|
||||||
|
fi
|
||||||
|
|
||||||
: ${ARCH=evbearm-el}
|
: ${ARCH=evbearm-el}
|
||||||
: ${OBJ=../obj.${ARCH}}
|
: ${OBJ=../obj.${ARCH}}
|
||||||
: ${CROSS_TOOLS=${OBJ}/"tooldir.`uname -s`-`uname -r`-`uname -m`"/bin}
|
: ${CROSS_TOOLS=${OBJ}/"tooldir.`uname -s`-`uname -r`-`uname -m`"/bin}
|
||||||
|
|
Loading…
Reference in a new issue