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

Search This thread

spikiller

Member
Jan 21, 2012
11
0
Error on Gentoo in repo script

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

On Gentoo I get this error, can you tell me how to fix?

Code:
SyntaxError: invalid syntax

                                Repo initialized! (Please note that this is gonna take emmmm... SOOOOOOOOME time to complete.

  File "$HOME/bin/repo", line 189
    except OSError, e:
                  ^
SyntaxError: invalid syntax
 Did the repo synchronization completed successfully? (y/n)

Best regards

I figured out that the problem ist python3,if I type
eselect python set 1
to set system to python2, the repo script is syncing. can you add a function like
if python2 then xxx elif python3 then xxx
 
Last edited:

jurben

Senior Member
Sep 10, 2012
155
51
hmmm...
so it's just automate the process of getting the source ....

my problem is my slow internet connection. i've never succeeded on getting the prebuilt ... :crying:
 

simple80

Member
Sep 23, 2012
17
1
And to answer your question, yes I want to build for the Incredible. I know this was originally for the N1 but the scripts are the same and it looks like it would work, except my repo sync isn't right, so the files aren't there....
 

itslels

Senior Member
Oct 21, 2012
1,140
464
Gonna have to try this just to see if I can do it. Thanks!

Sent from my Nexus 7 using Tapatalk HD
 

miko88

Member
Jul 12, 2012
10
0
Can anyone make CM7 for the Viewsonic v350? The source it's on Viewsonic website, I'd appreciate it very much.
 
S

Splinter836

Guest
Don't think it needs to be updated. The way you choose what needs to be build should be server sided, so updating this would have no impact on cm versions.

Sent from my Nexus 4 using xda premium

Oh my mistake, so this tool sets up the build environment for you, you can build whatever version of cm you want?
 

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!