Commit 4351a4d2 authored by Rafaël Carré's avatar Rafaël Carré
Browse files

factorize pull/update from cyanogen repo

parent 5856c640
...@@ -76,51 +76,26 @@ cd ../../ ...@@ -76,51 +76,26 @@ cd ../../
# "Stagefright: Memcpy optimization on output port." (available # "Stagefright: Memcpy optimization on output port." (available
# upstream at https://www.codeaurora.org/gitweb/quic/la/?p=platform/frameworks/base.git;a=commit;h=052368f194c9fc180b9b0335b60114a2f1fb88d8), # upstream at https://www.codeaurora.org/gitweb/quic/la/?p=platform/frameworks/base.git;a=commit;h=052368f194c9fc180b9b0335b60114a2f1fb88d8),
# which adds some vtable entries needed on newer qualcomm devices. # which adds some vtable entries needed on newer qualcomm devices.
if [ ! -d "android-headers-gingerbread/frameworks/base" ]; then
echo "Fetching Android system headers (1/5)" cyanogen_headers() {
git clone -b gingerbread --depth=1 git://github.com/CyanogenMod/android_frameworks_base.git android-headers-gingerbread/frameworks/base dir=android-headers-$2/$1
else if [ ! -d $dir ]; then
echo "Updating Android system headers (1/5)" echo "Fetching $1 for $2"
pushd android-headers-gingerbread/frameworks/base > /dev/null git clone -b $2 --depth=1 git://github.com/CyanogenMod/android_`echo $1|tr / _`.git $dir
git pull origin gingerbread else
popd > /dev/null echo "Updating $1 for $2"
fi pushd $dir > /dev/null
if [ ! -d "android-headers-gingerbread/system/core" ]; then git pull origin $2
echo "Fetching Android system headers (2/5)" popd > /dev/null
git clone -b gingerbread --depth=1 git://github.com/CyanogenMod/android_system_core.git android-headers-gingerbread/system/core fi
else }
echo "Updating Android system headers (2/5)"
pushd android-headers-gingerbread/system/core > /dev/null cyanogen_headers frameworks/base gingerbread
git pull origin gingerbread cyanogen_headers system/core gingerbread
popd > /dev/null cyanogen_headers frameworks/base ics
fi cyanogen_headers system/core ics
if [ ! -d "android-headers-ics/frameworks/base" ]; then cyanogen_headers hardware/libhardware ics
echo "Fetching Android system headers (3/5)"
git clone -b ics --depth=1 git://github.com/CyanogenMod/android_frameworks_base.git android-headers-ics/frameworks/base
else
echo "Updating Android system headers (3/5)"
pushd android-headers-ics/frameworks/base > /dev/null
git pull origin ics
popd > /dev/null
fi
if [ ! -d "android-headers-ics/system/core" ]; then
echo "Fetching Android system headers (4/5)"
git clone -b ics --depth=1 git://github.com/CyanogenMod/android_system_core.git android-headers-ics/system/core
else
echo "Updating Android system headers (4/5)"
pushd android-headers-ics/system/core > /dev/null
git pull origin ics
popd > /dev/null
fi
if [ ! -d "android-headers-ics/hardware/libhardware" ]; then
echo "Fetching Android system headers (5/5)"
git clone -b ics --depth=1 git://github.com/CyanogenMod/android_hardware_libhardware.git android-headers-ics/hardware/libhardware
else
echo "Updating Android system headers (5/5)"
pushd android-headers-ics/hardware/libhardware > /dev/null
git pull origin ics
popd > /dev/null
fi
export ANDROID_SYS_HEADERS_GINGERBREAD=${PWD}/android-headers-gingerbread export ANDROID_SYS_HEADERS_GINGERBREAD=${PWD}/android-headers-gingerbread
export ANDROID_SYS_HEADERS_ICS=${PWD}/android-headers-ics export ANDROID_SYS_HEADERS_ICS=${PWD}/android-headers-ics
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment