[DEV] Building CM from scratch (the easy way)! - *nix Shell Script

Search This thread

nicandris

Inactive Recognized Developer
Jan 5, 2009
1,141
215
Amsterdam
plus.google.com
Hey guys, quick question.
I've got the sources for an app, I've added it to my packages directory, and I tried compiling but it doesn't compile the app that I've added. Any ideas why?

well you should find the file that has the compilation instructions and add your app in there, or compile the app separately and add it in the system/app dir
 
  • Like
Reactions: sims34

ironzy

Senior Member
Apr 30, 2012
105
22
i cant seem to get it to make an update.zip, im using ubuntu 12.04 32 bit, has anyone else got the same problem?
 

ironzy

Senior Member
Apr 30, 2012
105
22
i cant seem to get it to make an update.zip, im using ubuntu 12.04 32 bit, has anyone else got the same problem?

ok i had to make a bigger partition to download all the source, i thought 20gb was going to be enough but it was just under when it finished so had no room on my hardrive to make the rom :rolleyes: so had to do a fresh install with a bigger partition and start all over again, but this time its been going on for about 8 hours and still not finished yet, i dont understand why it has to download all the source for every supported device if your only going to use the source for one :confused:
 
Last edited:

jayallen1980

Senior Member
Oct 20, 2011
139
17
can't get the script douchebuild.sh to run from desktop using Ubuntu 12.04 64 bit.
 
Last edited:

nicandris

Inactive Recognized Developer
Jan 5, 2009
1,141
215
Amsterdam
plus.google.com

spikiller

Member
Jan 21, 2012
11
0
Nice HowTo, but what about Gentoo ?

I´d like your Tuts, but what is with Gentoo based distributions ? It´ll be very useful...

Hope to hear anything from you ;)

Best regards
 

TheLastSidekick

Recognized Contributor
Aug 4, 2012
3,782
2,536
Great work, however I do have a question. Is this possible for it to work with a device called the Sidekick 4G that right now happens to be stuck on Froyo?
 

Top Liked Posts

  • There are no posts matching your filters.
  • 107
    <BACON>

    This will Allow you to build CM7-Nightlies or "Kangs" at any time you please.

    Compatible with Ubuntu or rpm distros

    It's a bash/sh script for automation, as simple as a double click.

    it's downloading and installing all files/repos/sdk/adb/fastboot and compiles. (If you already have some of this installed, it prompts before installing)

    -------

    Please test it, and report bugs here (files attached)
    No donations wanted, just click that THANKS button ;)

    Github: https://github.com/nicandris/CM-from-scratch


    Screenshot-1.png


    -------


    new build.sh menu
    Screenshot-Terminal.png


    just unzip on ubuntu/linux and run ./douchebuild.sh
    if ./douchebuild.sh is not recognized as an executable, just
    Code:
    sudo chmod 775 douchebuild.sh
    You will be asked for sudo pass (since you edit repos and add adb in bin) and some info for git.

    after completing you can always create a fresh build from the Desktop shortcut build.sh

    ofcourse i don't take any credits for cm, all credit goes to cyanogen and teamdouche. the script is just a shell compilation of the cm wiki.

    </BACON>
    12
    Reserved

    If you want to set only udev try this script
    View attachment udev.zip
    unzip and
    Code:
    chmod 755 udev.sh

    -----

    If you already used the main script and want to have the new build.sh menu, run this script
    View attachment buildshcreator.zip
    -----

    if you don't want all the files for all the devices to be synced, follow this!
    12
    Reserved

    CHANGELOG

    v1
    Supporting only Nexus One (initial release)

    v2
    Supporting all cyanogenmod official devices. Added menu selection for device

    v2.0.1
    Fixed some nohup issues. Changed some code lines. fixed an if statement

    v2.0.2
    HD2/Leo support added

    v2.1
    Various Bugfixes
    New build menu

    v2.2
    Few bug fixes
    Some name changes
    MORE options in build.sh!!

    v2.3
    Minor Bug Fixes

    Added new devices:
    Motorola Cliq XT
    LG G2x
    LG Optimus 2X
    Samsung Captivate
    Samsung Vibrant
    Barnes & Noble - Nook Color support

    Added udev support for Nook Color


    v2.3.2

    Fixed selection list
    Added HTC Incredible 2 Support

    v2.4.1
    Added Samsung Galaxy S II and Fascinate support
    Added Motorola Droid X support
    udevs fixed

    v2.4.3
    Added HTC Tattoo

    v2.5.1
    Updated Android SDK to v13
    Forced repo to sync from github and not from kernel.org (since kernel.org is down for maintenance)
    Bugfix


    v2.5.2
    Added Nexus S 4G

    v2.5.3/2.5.4
    minor bugfix x4 :p
    changed repo fetch URL


    v2.7.1
    RPM compatibility
    Small bugfix
    5
    You'll actually need to edit android/default.xml and copy your modified file to .repo/manifests/default.xml. Next repo sync, you should see less projects. Mine is now down to 198 from 234.

    WARNING:
    If CM team does make any changes to upstream manifest (add or remove new/obsolete projects), these changes will not be synced to your machine, since default.xml has been modified. To force re-sync with upstream manifest, you'll have to do this ...
    $ cd android
    $ git reset --hard
    $ cd ..
    $ cp android/default.xml .repo/manifests/default.xml
    $ repo sync

    In fact, to discard ALL changes you've made to ALL projects/repositories, do this ...
    $ repo forall -c git reset --hard
    $ repo sync

    5
    Very useful guide! Appreciate hard work!