diff options
author | Bernhard Rosenkränzer <Bernhard.Rosenkranzer@linaro.org> | 2015-05-17 14:10:43 +0200 |
---|---|---|
committer | Bernhard Rosenkränzer <Bernhard.Rosenkranzer@linaro.org> | 2015-05-17 14:10:43 +0200 |
commit | 9bc09159f22f31733d34c513d5214dd76031a304 (patch) | |
tree | a755e77209fbf9b62877cfd7e3bfc5b3f5d19a19 | |
parent | 7a4fcc7b4fa818a1ee36571bf1e177661b398d65 (diff) | |
download | android-patchsets-9bc09159f22f31733d34c513d5214dd76031a304.tar.gz |
Pull in HAVE_MALLOC_H fix from master to make updated sqlite happy
Signed-off-by: Bernhard Rosenkränzer <Bernhard.Rosenkranzer@linaro.org>
-rwxr-xr-x | LOLLIPOP-STABLE-PATCHSET | 2 | ||||
-rw-r--r-- | functions | 24 |
2 files changed, 26 insertions, 0 deletions
diff --git a/LOLLIPOP-STABLE-PATCHSET b/LOLLIPOP-STABLE-PATCHSET index da20dc2..120fd58 100755 --- a/LOLLIPOP-STABLE-PATCHSET +++ b/LOLLIPOP-STABLE-PATCHSET @@ -44,6 +44,8 @@ apply --linaro bionic 15515/1 apply --linaro external/bluetooth/bluedroid 15610/1 # Fix API check on build hosts with modern glibc versions apply system/core 114555/1 +# Make sure HAVE_MALLOC_H has a value to make updated sqlite happy +cherrypick build 9b44afb4529d743e291d6565d6fbe463cd8c964b ################################################## ################ Temporary fix ################### @@ -50,3 +50,27 @@ cherrypick() { fi PATCHES=$((PATCHES+1)) } + +revert() { + local PATCH + PATCH=false + if [ "$1" == "--patch" -o "$1" == "-p" ]; then + PATCH=true + shift + fi + cd "$AOSP"/"$1" + echo "=== Reverting $2 ===" + if $PATCH; then + if ! git show $2 |patch -p1 -R; then + echo "$2 failed to revert by patching, please fix" + exit 1 + fi + git commit -am "Revert $2" + else + if ! git revert --no-edit "$2"; then + echo "$2 failed to revert, please fix" + exit 1 + fi + fi + PATCHES=$((PATCHES+1)) +} |