blob: 12ed706a59e45555a03c1b199a7f0fc8219f76cb [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
# Allow clang to be built for the device
apply --linaro external/clang 16588/1
# And add it to PRODUCT_PACKAGES
apply --linaro build 16589/1