summaryrefslogtreecommitdiff
path: root/build_armserver_arm-tf.sh
blob: 077d54afa1cf07179d8f29a1229ed7259b76f2dd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
#!/usr/bin/env bash

ARM_TF_PLATS="ashbrook_5"
ARM_TF_DEBUG_ENABLED=1
PARALLELISM=4

#clean
for plat in $ARM_TF_PLATS; do
	make PLAT=$plat DEBUG=$ARM_TF_DEBUG_ENABLED clean
done

# build
for plat in $ARM_TF_PLATS; do
	atf_build_flags=$ARM_TF_BUILD_FLAGS
	atf_tbbr_enabled=TARGET_$plat[tbbr]
	if [ "${!atf_tbbr_enabled}" == "1" ]; then
		#if trusted board boot(TBBR) enabled, set corresponding compiliation flags
		atf_build_flags="${atf_build_flags} $ARM_TF_TBBR_BUILD_FLAGS"
	fi

	make -j $PARALLELISM PLAT=$plat DEBUG=$ARM_TF_DEBUG_ENABLED ${atf_build_flags} all
done

echo ""
echo "complete!"
echo ""