Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/bash
- # Written By Brandon Golway (brando56894)
- # All commands in this script were taken from
- # http://wiki.cyanogenmod.com/index.php?title=Compile_CyanogenMod_for_Sholes
- # Once executed this script will setup the build environment for a Motorola Droid
- #install the build packages for a 64 bit system
- sudo apt-get -y install git-core gnupg flex bison gperf libsdl1.2-dev libesd0-dev libwxgtk2.6-dev squashfs-tools build-essential zip curl libncurses5-dev zlib1g-dev openjdk-6-jdk pngcrush g++-multilib lib32z1-dev lib32ncurses5-dev lib32readline5-dev gcc-4.3-multilib g++-4.3-multilib
- #creating build directories
- mkdir -p ~/android/system
- #installing repository
- curl http://android.git.kernel.org/repo > ~/build-env/repo
- chmod a+x ~/build-env/repo
- cd ~/android/system/
- #syncing entire repository, including HTC Devices
- ~/build-env/repo init -u git://github.com/CyanogenMod/android.git -b froyo
- ~/build-env/repo sync
- #grabbing proprietary files from phone
- if [[-d ~/build-env/proprietary ]];then
- cp -R proprietary ~/android/system/vendor/motorola/sholes/
- else
- read -p "Is your phone connected to the pc?"
- sudo cp ~/build-env/adb /bin/
- chmod a+x ~/build-env/adb
- adb kill-server
- sudo ~/build-env/adb start-server
- cd ~/android/system/device/motorola/sholes/
- ./extract-files.sh
- fi
- #installs new versions of gApps and Rom Manager
- cd ~/android/system/vendor/cyanogen/
- ./get-rommanager
- ./get-google-files -v HDPI
- #checks for updates to the source code
- cd ~/android/system/
- ~/build-env/repo sync
- #configures build environment for sholes (droid)
- cp ./vendor/cyanogen/products/cyanogen_sholes.mk ./buildspec.mk
- . build/envsetup.sh
- lunch cyanogen_sholes-eng
- echo "Done..."
- echo "Edit the source files that you want to"
- echo "Then run flash_recovery.sh"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement