how to build a rom V2.1

Discussion in 'Android Roms' started by sniffle, May 21, 2010.

  1. sniffle
    Offline

    sniffle Premium Member Premium Member Developer

    Joined:
    Apr 6, 2010
    Messages:
    291
    Likes Received:
    0
    Trophy Points:
    0
    Location:
    Birmingham AL
    [guide]how to build a rom rev. 2.1

    PHP:
    this guide is now out of date with the relerase of the froyo source
     please go to http
    ://android.cvpcs.org for the latest update to this guide
     
    and all future updates as well(hooray for a wiki!)
    http://android.cvpcs.org/start

    ***PLEASE READ***
    this is a guide witten by me, Sniffle, tourach23@gmail.com. It is free to be used by anyone, if you have any corrections, please make the correction to the specified section and email that SPECIFIC section to me, i will test the revision and add it to the guide as i see fir. i reserve the right not to add a submission to the guide based on it's relavence, as well as to minimize possible creation of more confusion.
    ***NOTICE***
    this guide will no longer use any part of cyanogenmod's build setup. it will only use the motorola/sholes-open vendor setup created by koush, as it is necessary for the successful building of a rom for the Motorola Droid. at a later date(or of someone else writes them *hint hint community effort*) guides will be written to make your own personal vendor setup, as well as modify the build setup to prevent the flashing of a recovery on boot, add the superuser.apk, root, and busybox to the rom on compile. and any other goodies people want to help contribute.
    ***disclaimer***
    i am not responsible for any damages caused(to either computer or phone) or bricked phones that may occur with the use of this guide.

    downloading the source(modified by me): http://source.android.com/download
    HowTo: Set up For Development in Ubuntu 9.1 (thanks denkai) - ModMyMoto - Software Modding Forums and Updates for Motorola Phones
    setting up ADB and getting the system to recognize and communicate with your device(written by me):
    Android SDK | Android Developers
    Installing the SDK | Android Developers
    MOTODEV > Log In
    downloading and setting up the cyanogen vendor setup(written by me):
    koush's Profile - GitHub
    http://source.android.com/documentat...ding-for-dream
    cyanogen's Profile - GitHub
    android.git.kernel.org Git
    Martin Brabham AOSP/CyanogenMod5 and the Droid
    personal trial and error knowledge and PM's with koush
    setting up eclipse(written by me):
    http://source.android.com/using-eclipse
    ADT Plugin for Eclipse | Android Developers
    http://developer.android.com/resourc...ipsecomponents
    running vendor setup and compiling source for droid specifically(written by me)
    http://source.android.com/documentat...ding-for-dream
    Martin Brabham AOSP/CyanogenMod5 and the Droid
    personal trial and error knowledge and PM's with koush
    i would like to say that the final breakthrough in the vendor setup was due to the inspiration of this site and it deserves a special place or its own.
    Martin Brabham AOSP/CyanogenMod5 and the Droid
    ***************/start for ubuntu versions 9.1 and later*****************
    Type
    Code:
    sudo gedit /etc/apt/sources.list
    
    add to the file
    Code:
    deb [URL="http://us.archive.ubuntu.com/ubuntu/"]Index of /ubuntu[/URL] hardy multiverse
    deb [URL="http://us.archive.ubuntu.com/ubuntu/"]Index of /ubuntu[/URL] hardy-updates multivers
    
    Save the file and in terminal type
    Code:
    sudo apt-get update
    sudo apt-get install sun-java5-jdk
    sudo update-alternatives --config java
    
    You may or may not need to select java5 if you already have 6 installed on that last prompt. Once that is completed remove the lines we added.
    Code:
    sudo gedit /etc/apt/sources.list
    When the file opens delete the below lines and save.
    Code:
    deb [URL="http://us.archive.ubuntu.com/ubuntu/"]Index of /ubuntu[/URL] hardy multiverse
    deb [URL="http://us.archive.ubuntu.com/ubuntu/"]Index of /ubuntu[/URL] hardy-updates multivers
    
    ***************/stop for ubuntu versions newer than 8.0.4*******************
    ********************/start downloading aosp source***************************
    In terminal type
    Code:
    sudo apt-get install git-core gnupg sun-java5-jdk flex bison gperf libsdl-dev libesd0-dev libwxgtk2.6-dev build-essential zip curl libncurses5-dev zlib1g-dev
    
    Install REPO and GIT. In terminal type
    Code:
    $ cd ~
    $ mkdir bin
    $ sudo gedit .profile
    
    A text editor will pop up. put this at the bottom and save
    Code:
    if [ -d ~/bin ] ; then
    PATH=~/bin:"${PATH**"
    fi
    export
    
    In terminal type
    Code:
    curl [URL]http://android.git.kernel.org/repo[/URL] >~/bin/repo
    chmod a+x ~/bin/repo
    
    reboot your computer
    Next type
    Code:
    cd ~
    mkdir android
    cd android
    mkdir system
    cd system
    
    Setup your REPO to download the source files
    Code:
    repo init -u git://android.git.kernel.org/platform/manifest.git
    
    to download specific branches of code ie: eclair or erd79(android-2.1_r1) you need to add "-b eclair" to the end of the repo init
    as an example for eclair branch you would type
    Code:
    repo init -u git://android.git.kernel.org/platform/manifest.git -b eclair
    
    You'll get "repo initialized in /"system"" if succesful. Now you need to download the source files
    latest branches include:
    android-2.1_r2.1s (sholes ese81)
    eclair (latest eclair source available latest bleedign edge till froyo is release)
    Code:
    repo sync
    
    That will take awhile. Next, verify GIT tags
    Code:
    gpg --import
    
    nothing will seem to happen, that's fine. paste this below
    Code:
    key 9AB10E78: "The Android Open Source Project <[EMAIL="initial-contribution@android.com"]initial-contribution@android.com[/EMAIL]>"
    -----BEGIN PGP PUBLIC KEY BLOCK-----
    Version: GnuPG v1.4.2.2 (GNU/Linux)
    mQGiBEnnWD4RBACt9/h4v9xnnGDou13y3dvOx6/t43LPPIxeJ8eX9WB+8LLuROSV
    lFhpHawsVAcFlmi7f7jdSRF+OvtZL9ShPKdLfwBJMNkU66/TZmPewS4m782ndtw7
    8tR1cXb197Ob8kOfQB3A9yk2XZ4ei4ZC3i6wVdqHLRxABdncwu 5hOF9KXwCgkxMD
    u4PVgChaAJzTYJ1EG+UYBIUEAJmfearb0qRAN7dEoff0FeXsEa UA6U90sEoVks0Z
    wNj96SA8BL+a1OoEUUfpMhiHyLuQSftxisJxTh+2QclzDviDya TrkANjdYY7p2cq
    /HMdOY7LJlHaqtXmZxXjjtw5Uc2QG8UY8aziU3IE9nTjSwCXeJn uyvoizl9/I1S5
    jU5SA/9WwIps4SC84ielIXiGWEqq6i6/sk4I9q1YemZF2XVVKnmI1F4iCMtNKsR4
    MGSa1gA8s4iQbsKNWPgp7M3a51JCVCu6l/8zTpA+uUGapw4tWCp4o0dpIvDPBEa9
    b/aF/ygcR8mh5hgUfpF9IpXdknOsbKCvM9lSSfRciETykZc4wrRCVGh lIEFuZHJv
    aWQgT3BlbiBTb3VyY2UgUHJvamVjdCA8aW5pdGlhbC1jb250cm lidXRpb25AYW5k
    cm9pZC5jb20+iGAEExECACAFAknnWD4CGwMGCwkIBwMCBBUCCA MEFgIDAQIeAQIX
    gAAKCRDorT+BmrEOeNr+AJ42Xy6tEW7r3KzrJxnRX8mij9z8tg CdFfQYiHpYngkI
    2t09Ed+9Bm4gmEO5Ag0ESedYRBAIAKVW1JcMBWvV/0Bo9WiByJ9WJ5swMN36/vAl
    QN4mWRhfzDOk/Rosdb0csAO/l8Kz0gKQPOfObtyYjvI8JMC3rmi+LIvSUT9806Up
    hisyEmmHv6U8gUb/xHLIanXGxwhYzjgeuAXVCsv+EvoPIHbY4L/KvP5x+oCJIDbk
    C2b1TvVk9PryzmE4BPIQL/NtgR1oLWm/uWR9zRUFtBnE411aMAN3qnAHBBMZzKMX
    LWBGWE0znfRrnczI5p49i2YZJAjyX1P2WzmScK49CV82dzLo71 MnrF6fj+Udtb5+
    OgTg7Cow+8PRaTkJEW5Y2JIZpnRUq0CYxAmHYX79EMKHDSThf/8AAwUIAJPWsB/M
    pK+KMs/s3r6nJrnYLTfdZhtmQXimpoDMJg1zxmL8UfNUKiQZ6esoAWtDg pqt7Y7s
    KZ8laHRARonte394hidZzM5nb6hQvpPjt2OlPRsyqVxw4c/KsjADtAuKW9/d8phb
    N8bTyOJo856qg4oOEzKG9eeF7oaZTYBy33BTL0408sEBxiMior 6b8LrZrAhkqDjA
    vUXRwm/fFKgpsOysxC6xi553CxBUCH2omNV6Ka1LNMwzSp9ILz8jEGqmU tkBszwo
    G1S8fXgE0Lq3cdDM/GJ4QXP/p6LiwNF99faDMTV3+2SAOGvytOX6KjKVzKOSsfJQ
    hN0DlsIw8hqJc0WISQQYEQIACQUCSedYRAIbDAAKCRDorT+Bmr EOeCUOAJ9qmR0l
    EXzeoxcdoafxqf6gZlJZlACgkWF7wi2YLW3Oa+jv2QSTlrx4KL M=
    =Wi5D
    -----END PGP PUBLIC KEY BLOCK-----
    
    Hit CTRL+D to close and save, this will bring you back to he command prompt
    now to run a generic make to make eclipse happy once we have it all set up
    Code:
    cd android/system
    make
    
    *************************/stop downloading the aosp source*******************
    ***************/start settign up SDK to run on ubuntu***********************
    android SDK has ADB in it which allows you to run commands on your phone from your PC as well as many other tools.
    download SDK for linux from here: http://developer.android.com/sdk/dow...5-linux_86.tgz
    for the purpose of this installation we are going to install the SDK to ~/android-sdk
    now back to the terminal
    Code:
    tar -zxvf ~/Downloads/android-sdk_r05-linux_86.tgz
    mv android-sdk-linux_86 ~/android/sdk
    
    now that everything is unzipped time to set our path to include ~/android/sdk/tools
    in terminal
    Code:
    cd ~
    sudo gedit .bashrc
    
    in the text editor that opens paste in the following line at the bottom
    Code:
    export PATH=${PATH}:~/android-sdk/tools
    alias sudo='sudo env PATH=$PATH'
    
    save the file and exit
    ADB is setup now to setup the computer to recognize the device
    in terminal
    Code:
    sudo gedit /etc/udev/rules.d/51-android.rules
    
    in the text box that opens past int he following line
    Code:
    SUBSYSTEM=="usb", SYSFS{idVendor}=="22b8",SYSFS[idProduct}=="41db", MODE="0666",SYMLINK+="Motorola PCS"
    
    *this sets up the motorola droid only*
    save the file and exit
    initialize ADB (this will have to be done after every reboot, updated method to be entered at a later date will remove the need for this)
    Code:
    sudo adb start-server
    
    ***************/stop settign up SDK to run on ubuntu***********************

    *******/start generic vendor setup********
    motorola directory
    Code:
    cd ~/android/system/vendor
    mkdir motorola
    cd motorola
    git clone git://github.com/koush/android_vendor_motorola_sholes-open.git sholes-open
    
    Connect your phone to your computer
    in terminal
    Code:
    cd ~/android/system/vendor/motorola/sholes-open
    . extract-files.sh
    
    ***i would suggest running the extract script once on a 2.1 rooted phone or a phone running cyanognen mod to get the latest moto proprietary files***
    ***depending on how many processor cores you have you can speed up the make process by appending -j(double the number of available processor cores) ie: make -j4, for a dual core processor***
    *********/stop generic vendor setup***********

    *************************/start settign up eclipse**************************
    go to Eclipse Downloads
    or click here http://www.eclipse.org/downloads/dow...nux-gtk.tar.gz
    download the latest eclipse classic version(i am using 3.5.2 in this example)
    once downloaded in a new terminal
    Code:
    cd ~
    tar -zxvf ~/Downloads/eclipse-SDK-3.5.2-linux-gtk.tar.gz
    mv eclipse-SDK-3.5.2-linux-gtk.tar.gz
    
    once extracted close the terminal
    right click on your desktop in an open area
    click create launcher
    name it whatever you want in the name area
    in command click the browse button go to your eclipse directory choose the eclipse file and click open.
    then click ok
    you now have a desktop icon to click on
    now start up eclipse
    click ok for default workspace
    once eclipse has started click help>install new software
    click add in the top right corner
    for name: galileo
    location: Galileo Software Repository
    click ok
    click add again
    name: android-sdk
    location: https://dl-ssl.google.com/android/eclipse/
    click ok
    click the drop down box next to add. choose android-sdk.
    click the box next to developer tools. then click next
    ***be sure that if an option to install missing components that it is checked***
    sometimes other files that are needed are not available on the initial install. the galileao link should have the needed files to install SDK without problem.
    eclipse after installing the SDK will restart. it will prompt you for settign up the path to your SDK and ask you if you want to provide goodle with information.
    to set your android path click: window>preferences>android
    browse for your SDK directory
    click window>android sdk avd manager>available packages
    select them all
    click install selected
    click bullet accept all then click install
    once that's complete make should be nearing completion hopefully if not sit back and wait on make to finish. we're almost done.
    once make is finished we're on the home stretch.
    back in the terminal
    Code:
    cd ~/android/system
    cp development/ide/eclipse/.classpath .
    chmod u+w .classpath
    
    modify elcipse settings to run better with android
    Code:
    cd ~/eclipse
    gedit eclipse.ini
    
    we're changing the memory values used by eclipse so it will function better.
    in the text editor that opens
    find theses values
    Code:
    -Xms40m
    -Xmx256m
    -XX:MaxPermSize=256m
    
    and change them to
    Code:
    -Xms128m
    -Xmx512m
    -XX:MaxPermSize=256m
    
    once done save and close the file
    open eclipse
    click file>new>project
    click java project
    click create project from existing source
    choose the mydroid folder
    click finish
    congratulations you just imported the entire android source into eclipse. next up is compiling the source itself. almost there!
    *************************/stop settign up eclipse***************************
    **/start running vendor setup and compiling source for droid specifically***
    in terminal
    Code:
    cd ~
    cd android/system
    source build/envsetup.sh
    lunch sholes-eng
    make
    ***to make an OTA-update.zip use "make -j(?) otapackage"
    (?) - remember this number is double the number of cores available on your processor
    once everything is all setup it is that easy to compile for the droid.
    congrats and enjoy!
    ***/stop running vendor setup and compiling source for droid specifically***
    ***************/start notes of interest and troubleshooting info ***************
    ***for adb to work it must be ran as root so from now on before starting work on android projects do the following***
    Code:
    sudo adb kill-server
    sudo adb start-server
    
    ***if repo will not initialize in the correct directory this should fix it***
    Code:
    cd (directory of source)
    rm -rf ~/.repo
    repo init -u git://android.git.kernel.org/platform/manifest.git
    
    ***************/stop notes of interest and troubleshooting info ***************
    **************recent sites of interest not yet used as a reference to material posted*************
    Android Platform Developer's Guide | Android Open Source Android Platform Developers Guide
  2. sniffle
    Offline

    sniffle Premium Member Premium Member Developer

    Joined:
    Apr 6, 2010
    Messages:
    291
    Likes Received:
    0
    Trophy Points:
    0
    Location:
    Birmingham AL
    ***ANNOUNCEMENT***

    i mentioned making an announcement about my guides. In the near future myself and a few others that work on these guides and do our best to breakdown and understand not only the android build system but also android itself, will be opening a wiki where the master copy of these guides will reside.

    there will be open areas for submissions to contribute and help expand the knowledge base of android as a whole. the master guides will be broken down on the wiki page to break the information down into more manageable bites.

    the mass guide like the one above will be distributed, posted, and updated to all of the major android websites, including xda(they need somethign for the people starting out), here, alldroid, mydroidworld, and any other android websites that either ask for the guides to be posted or i come accross and decide to post there.

    the main reason this is occuring is that the main guides have been lost twice now, so this time it will be everywhere and be available to everyone to contribute.
  3. jkman
    Offline

    jkman New Member

    Joined:
    May 21, 2010
    Messages:
    10
    Likes Received:
    0
    Trophy Points:
    0
    I got it to compile. I had to fix some code in android_surface_output_omap34xx.cpp. It was trying to access variable names out of the PVMFYuvFormatSpecificInfo0 class that where defined slightly different in the class definition in another file (don't remember the file that class was defined in). After I fixed those 4 lines it compiled.

    so i'm left wondering...now what. Do I take

    out/target/product/sholes-open/sholes-ota-eng.USERNAME.zip

    rename it to update.zip and use nandroid to load it onto my phone?
  4. sniffle
    Offline

    sniffle Premium Member Premium Member Developer

    Joined:
    Apr 6, 2010
    Messages:
    291
    Likes Received:
    0
    Trophy Points:
    0
    Location:
    Birmingham AL
    You can but as it is in this for you would have no root/busybox/superuser.apk/google apps... I think that's about it :p

    Edit: forgot it will also flash the stock recovery as well.

    We have figured out everything except busybox, without using cyanogen's source. Ill try to get a guide up soon. Depends on how much time I have at work to actually work on it.
  5. borgey401
    Offline

    borgey401 New Member

    Joined:
    Apr 19, 2010
    Messages:
    112
    Likes Received:
    0
    Trophy Points:
    0
    sniffle, the source link is broken. please fix and by the way thanks so much for your time and getting this guide to us. i really really appreciate it and i can't wait to start getting into all this
  6. sniffle
    Offline

    sniffle Premium Member Premium Member Developer

    Joined:
    Apr 6, 2010
    Messages:
    291
    Likes Received:
    0
    Trophy Points:
    0
    Location:
    Birmingham AL
    what specifically are you refering to?

    please as a note to everyone not just borgey i don't mind answering questions and helping people out, but there is a LOT of information in the original post. please copy/paste the line in question and be as specific as possible, if there is a problem with the guide and put actual quotation marks around the line as quoting the original post would jsut be messy.

    bah i suck at grammar please excuse the above statement though i still mean it :p
  7. sniffle
    Offline

    sniffle Premium Member Premium Member Developer

    Joined:
    Apr 6, 2010
    Messages:
    291
    Likes Received:
    0
    Trophy Points:
    0
    Location:
    Birmingham AL
    updated the udev rules to the more correct version.

    many thanks to rfw2003 for sending it to me, i haven't had the cahnce to reference it again myself.

    also for anyone getting error 127

    google search for "alldroid how to build a rom 2.0" click get cached and the solution should be at the bottom of the page. it is a git cherrypick command.
  8. nagmier
    Offline

    nagmier New Member

    Joined:
    Apr 9, 2010
    Messages:
    176
    Likes Received:
    0
    Trophy Points:
    0
    tyvm sniffle!!! I was looking for something a little more concise and put together and you have done it /thumbup!
  9. sniffle
    Offline

    sniffle Premium Member Premium Member Developer

    Joined:
    Apr 6, 2010
    Messages:
    291
    Likes Received:
    0
    Trophy Points:
    0
    Location:
    Birmingham AL
    No problem at all I enjoy making the guides and sharing information.

    Ill be making an announcement in the coming days regarding my guides and there distribution as well.
  10. jrummy16
    Offline

    jrummy16 Premium Member Theme Developer Premium Member Developer

    Joined:
    Jan 25, 2010
    Messages:
    1,213
    Likes Received:
    0
    Trophy Points:
    0
    Location:
    Orange County, CA
    here is the fix for Error 127:

    cd android/system/external/webkit
    git cherry-pick 18342a41ab72e2c21931afaaab6f1b9bdbedb9fa


    Sniffle, you should re-add your links for 64-bit users.
  11. jrummy16
    Offline

    jrummy16 Premium Member Theme Developer Premium Member Developer

    Joined:
    Jan 25, 2010
    Messages:
    1,213
    Likes Received:
    0
    Trophy Points:
    0
    Location:
    Orange County, CA
    I am all of a sudden getting the following error:

    PHP:
    root@ubuntu:/home/rummler/android/system# make -j4
    ============================================
    PLATFORM_VERSION_CODENAME=REL
    PLATFORM_VERSION
    =2.1-update1
    TARGET_PRODUCT
    =sholes
    TARGET_BUILD_VARIANT
    =eng
    TARGET_SIMULATOR
    =false
    TARGET_BUILD_TYPE
    =release
    TARGET_ARCH
    =arm
    HOST_ARCH
    =x86
    HOST_OS
    =linux
    HOST_BUILD_TYPE
    =release
    BUILD_ID
    =ECLAIR
    ============================================
    Checking build tools versions...
    build/core/copy_headers.mk:15warningoverriding commands for target `out/target/product/sholes-open/obj/include/libpv/getactualaacconfig.h'
    build/core/copy_headers.mk:15: warning: ignoring old commands for target 
    `out/target/product/sholes-open/obj/include/libpv/getactualaacconfig.h'
    /bin/bash: line 0: cd: sdk/layoutopt/app/src/resources: No such file or directory
    diff: out/target/product/sholes-open/obj/PACKAGING/updater_extensions_intermediates/register.inc.list: No such file or directory
    frameworks/policies/base/PolicyConfig.mk:22: *** No module defined for the given PRODUCT_POLICY (android.policy_phone).  Stop.
    root@ubuntu:/home/rummler/android/system# 
    I read that when this (mk:22: *** No module defined for the given PRODUCT_POLICY (android.policy_phone). Stop.) occurs you need to change findleaves.sh in build/tools but I don't have findleaves.sh, I have findleaves.py. The line I would need to change, but isn't there, is as follows:

    change this:

    #find “${@:0:$nargs}” $findargs -type f -name “$filename” -print |

    to this:

    find “${@:1:$nargs-1}” $findargs -type f -name “$filename” -print |

    Any ideas?

    Also,

    Another random error that decided to all of a sudden pop in is as follows:

    PHP:
    make: ***  [out/target/product/sholes-open/obj/SHARED_LIBRARIES/libwebcore_intermediates/LINKED/libwebcore.so]  Error 1
    Now that I got the errors out there I thought I would share a solution to an issue I had along the way (note that I am running a 64-bit system so others may not have similiar errors)...

    On my system I wasn't able to install java per Sniffle's guide. I did this as a work around:

    PHP:
    sudo gedit /etc/apt/sources.list
    add this to the file:

    PHP:
      deb http://us.archive.ubuntu.com/ubuntu/ jaunty multiverse
      
    deb http://us.archive.ubuntu.com/ubuntu/ jaunty-updates multiverse
    save the file and close gedit. Next sync your sources by running

    PHP:
      sudo apt-get update
    now install:

    PHP:
      sudo apt-get install sun-java5-jdk
    To set the system to use Java 5 you need to update your java alternatives by running

    PHP:
      sudo update-alternatives --config java
    Choose java-1.5.0-sun and you should be done.

    And..

    for those running a 64-bit system make sure you get the correct libs by:

    PHP:
    sudo aptitude install ia32-libs lib32z1-dev lib32ncurses5-dev gcc-multilib g++-multilib
    ok.. I think that's enough.. I want to document every error I come across and make it more simple for others. If Sniffle or anyone can let me know how to fix my 2 errors above it would be much appreciated.
  12. sniffle
    Offline

    sniffle Premium Member Premium Member Developer

    Joined:
    Apr 6, 2010
    Messages:
    291
    Likes Received:
    0
    Trophy Points:
    0
    Location:
    Birmingham AL
    Thanks j

    What version of ubuntu are you running?

    Also I should say I threw this guide together from a backup of one of my beta guides while I was at work, I knew there would be issues. Keep reporting them ill try to help out as much as possible and update the guide accordingly as long as the fixes aren't ubuntu version specific.

    This is meant to be a general guide to get people started by putting all of the information in one spot, it can't be everything for every version of ubuntu unfortunately.

    I'm really glad to see more people interested in building roms from source. And I will always help out as much as I can, provided I don't go insane from an overload of questions and the person asking the questions actually tries to figure things out before asking much like jrummy has done.
  13. jrummy16
    Offline

    jrummy16 Premium Member Theme Developer Premium Member Developer

    Joined:
    Jan 25, 2010
    Messages:
    1,213
    Likes Received:
    0
    Trophy Points:
    0
    Location:
    Orange County, CA
    Thanks man, appreciate any help I can get. I am running 10.04 for ubuntu. Do you have findleaves.sh in build/tools?

    As a side note I just reinstalled ubuntu 2 days ago because of some other issues. I compiled a build fine yesterday, then added gapps, busybox and superuser and then got the errors above. I did remove my Build folder and download it from cyanogen to get it to compile busybox and superuser. My commands after being successful last night, but before the errors above, are as follows

    PHP:
    cd ~/android/system
    rm 
    -R bionic
    rm 
    -R build
    cd system
    rm 
    -R extras
    cd 
    ..
    git clone git://github.com/cyanogen/android_build.git
    mv android_build build
    git 
    clone git://github.com/cyanogen/android_bionic.git
    mv android_bionic bionic
    cd system
    git 
    clone git://github.com/cyanogen/android_system_extras.git
    mv android_system_extras extras
    cd 
    ..
    cd packages/apps
    git 
    clone git://github.com/cyanogen/android_packages_apps_Superuser.git
    mv android_packages_apps_Superuser Superuser
    cd 
    ..
    cd ..
    cd external
    git 
    clone git://github.com/cyanogen/android_external_busybox.git
    mv android_external_busybox busybox
    cd 
    ..
    This obviously isn't including added gapps to proprietary and updating AndroidBoard.mk
  14. sniffle
    Offline

    sniffle Premium Member Premium Member Developer

    Joined:
    Apr 6, 2010
    Messages:
    291
    Likes Received:
    0
    Trophy Points:
    0
    Location:
    Birmingham AL
    ok,

    before you do anything else when you import new stuff like that, you need to do
    Code:
    make clean
    
    it will remove everythign from the out folder that is from the old build.

    the reason being the intermediates folders will change and that might throw errors try that then re-run make don't use the -j extension because by having multiple pieces runnign at the same time it sometimes muddies the error. the error from just make will be much easier to understand usually.
  15. sniffle
    Offline

    sniffle Premium Member Premium Member Developer

    Joined:
    Apr 6, 2010
    Messages:
    291
    Likes Received:
    0
    Trophy Points:
    0
    Location:
    Birmingham AL
    oh as a note

    ANNONCEMENT ON FIRST PAGE 2ND POST
  16. jrummy16
    Offline

    jrummy16 Premium Member Theme Developer Premium Member Developer

    Joined:
    Jan 25, 2010
    Messages:
    1,213
    Likes Received:
    0
    Trophy Points:
    0
    Location:
    Orange County, CA
    I'm pretty sure I ran make clobber, which I think is the same as make clean. btw.. I like your announcement. :)
  17. kingmmk
    Offline

    kingmmk New Member

    Joined:
    Jan 9, 2010
    Messages:
    17
    Likes Received:
    0
    Trophy Points:
    0
    If I build a rom from source, will I lose super user privileges?
  18. sniffle
    Offline

    sniffle Premium Member Premium Member Developer

    Joined:
    Apr 6, 2010
    Messages:
    291
    Likes Received:
    0
    Trophy Points:
    0
    Location:
    Birmingham AL
    King the short answer is yes, the more complicated response is that you would only lose superuser priviledges because you didn't set the system up to have root built back in.
  19. kingmmk
    Offline

    kingmmk New Member

    Joined:
    Jan 9, 2010
    Messages:
    17
    Likes Received:
    0
    Trophy Points:
    0
    ok so how would one go about setting up a rom that maintains the rooted system? Do rom developers build from source or do they just edit the stock + root release?
  20. sniffle
    Offline

    sniffle Premium Member Premium Member Developer

    Joined:
    Apr 6, 2010
    Messages:
    291
    Likes Received:
    0
    Trophy Points:
    0
    Location:
    Birmingham AL
    They build it in, I will be putting out a guide when I'm able to work on it that will tell how to setup the basic build with root, bujsybox, superuser.apk, etc.

    Just been busy of late.
Search tags for this page
/bin/bash: line 0: cd: sdk/layoutopt/app/src/resources: no s
,
cts+verifier+intermediates/classes-full-debug.jar+error 41
,
framework-classes-full-debug.jar
,
intermediates/classes-full-debug.jar] error 1
,

make: *** no rule to make target `out/target/product/jacinto

,

no rule to make target `out/target/common/obj/java libraries

,
no rule to make target `out/target/common/obj/packaging/publ
,
no rule to make target carbon rom
,
no rule to make target out/target/common/obj/apps/ needed by
,
no rule to make target out/target/common/obj/java libraries/
,
static libraries/librecovery ui
,

target recovery ui lib