build-atf: Add ATF_PATCHES_DIR option

This commit is contained in:
Johan Gunnarsson 2021-08-01 22:51:07 +02:00
parent 908dc3130c
commit e7966e766a
1 changed files with 5 additions and 0 deletions

View File

@ -23,6 +23,11 @@ fi
# Step into ATF directory
cd arm-trusted-firmware
# Apply patches
if [ -d "${ATF_PATCHES_DIR}" ]; then
git apply "${ATF_PATCHES_DIR}"/*.patch || :
fi
# CROSS_COMPILE must point to a valid compiler path prefix
export CROSS_COMPILE=$(dirname $(which "${TUPLE}-gcc"))/"${TUPLE}-"