blob: 4d39fd146b092b3efa5a8e0de4cba2b7dd4cdf2f [file] [log] [blame]
#!/bin/sh
. $(dirname $0)/functions
PATCHES=0
if [ -n "$1" ]; then
AOSP="$1"
else
AOSP="`pwd`"
fi
if ! [ -d "$AOSP" ] && ! [ -d "$AOSP/bionic" ] && [ -d "$AOSP"/build ]; then
echo "This script must be run from the AOSP source directory"
echo "or with the AOSP source directory as its first parameter."
exit 1
fi
##################################################
################ Non-upstreamable ################
##################################################
# Restore __pthread_gettid for MALI blobs
apply --linaro bionic 17335/1
# Allow _llseek in media codecs to make X20 blobs happy
apply --linaro frameworks/av 17336/1