http://wiki.cyanogenmod.org/w/Build_for_d2spr
mkdir -p android/CM12
cd android/CM12
repo init -u git://github.com/CyanogenMod/android.git -b cm-12.0
Modify your .repo/local_manifest/roomservice.xml
as follows:
<?xml version="1.0" encoding="UTF-8"?>
<manifest>
<project name="Hrubak/d2spr-tools.git" path="d2spr-tools" remote="github" revision="cm-12.0" />
<project name="TheMuppets/proprietary_vendor_samsung" path="vendor/samsung" revision="cm-12.0" />
<project name="CyanogenMod/android_device_samsung_d2spr" path="device/samsung/d2spr" remote="github" />
<project name="CyanogenMod/android_device_samsung_qcom-common" path="device/samsung/qcom-common" remote="github" />
<project name="CyanogenMod/android_device_samsung_msm8960-common" path="device/samsung/msm8960-common" />
<project name="CyanogenMod/android_device_samsung_d2-common" path="device/samsung/d2-common" remote="github" />
<project name="CyanogenMod/android_kernel_samsung_d2" path="kernel/samsung/d2" remote="github" />
<project name="CyanogenMod/android_hardware_samsung" path="hardware/samsung" remote="github" />
</manifest>
repo sync
vendor/cm/get-prebuilts
This script will remove any topic branches named auto, then apply all patches under topic branch auto.
d2spr-tools/apply.sh
Usage:
repo start auto 'path' #start a new branch 'auto' and set the path to your project
echo "say something about the patch" #echo something
cdv 'same path ^' #cd to the project path
git reset --hard #make the project clean
git fetch, git revert, git something put it here #add you cherry-picks, reverts, etc here
cdb #cd back to working_dir
. build/envsetup.sh && brunch d2spr