#!/bin/bash -e . $(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 ####################################################### ## workaround for linaro work ###### ####################################################### ## enabling kernel compilation, etc ## enable kernel compilation for hikey build ##http://android-review.linaro.org/c/device/linaro/hikey/+/20387 apply --linaro device/linaro/hikey 20387/1 ## hikey: gralloc: Add element to allow upstream drm_hwc to build w/ HiKey ## https://android-review.googlesource.com/c/device/linaro/hikey/+/915654 cherrypick device/linaro/hikey 91d8213c9233c8c37bd8a0e2259d4aebd4618512