| #!/bin/bash |
| |
| . $(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 |
| |
| function apply_jstultz_mainline_patch(){ |
| local commit_id=$1 && shift |
| local local_dir=$1 && shift |
| curl_am https://git.linaro.org/people/john.stultz/android-dev.git/patch/?id=${commit_id} ${local_dir} |
| } |
| |
| ################################################## |
| ################ Linaro hack ################### |
| ################################################## |
| ## usb: dwc3: Trigger a GCTL soft reset when switching modes in DRD |
| ## https://git.linaro.org/people/john.stultz/android-dev.git/commit/?h=dev/hikey960-mainline-WIP&id=6f9c4aa748bb57d78d5f6e3271c4b46d0b4bdf75 |
| ## https://android-review.linaro.org/c/kernel/common/+/21921 |
| apply --linaro --local common --remote kernel/common 21921/1 |