#!/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 ""