aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSandrine Bailleux <sandrine.bailleux@arm.com>2015-08-07 11:26:36 +0100
committerRyan Harkin <ryan.harkin@linaro.org>2015-08-25 15:23:19 +0100
commitcf7d576bda963e44fb5e078fda2269b1064845ed (patch)
treecde1847a931c3dc1b109cdbfacbb7119c126318c
parent279842cd27edd2cef49e0eb6cbc67dd3ad205378 (diff)
arm-tf: Allow to pass additional build flags
Allow to pass additional build flags through the environment variable ARM_TF_BUILD_FLAGS. They will be appended to the build command used to build the Trusted Firmware. Also print the resulting build command. Signed-off-by: Sandrine Bailleux <sandrine.bailleux@arm.com>
-rwxr-xr-xbuild-arm-tf.sh5
1 files changed, 4 insertions, 1 deletions
diff --git a/build-arm-tf.sh b/build-arm-tf.sh
index c4bcef9..3879b96 100755
--- a/build-arm-tf.sh
+++ b/build-arm-tf.sh
@@ -38,6 +38,7 @@
# ARM_TF_PATH - sub-directory containing ARM Trusted Firmware code
# ARM_TF_PLATS - List of platforms to be built (from available in arm-tf/plat)
# ARM_TF_DEBUG_ENABLED - 1 = debug, 0 = release build
+# ARM_TF_BUILD_FLAGS - Additional build flags to pass on the build command line
#
do_build ()
@@ -45,7 +46,9 @@ do_build ()
if [ "$ARM_TF_BUILD_ENABLED" == "1" ]; then
pushd $TOP_DIR/$ARM_TF_PATH
for plat in $ARM_TF_PLATS; do
- make -j $PARALLELISM PLAT=$plat DEBUG=$ARM_TF_DEBUG_ENABLED
+ local build_cmd="make -j $PARALLELISM PLAT=$plat DEBUG=$ARM_TF_DEBUG_ENABLED $ARM_TF_BUILD_FLAGS"
+ echo $build_cmd
+ $build_cmd
done
make fiptool