How to Compile an android based ROM

Discussion in 'Droid Concepts' started by woodyman, Sep 19, 2010.

  1. burgeke

    burgeke Member

    Joined:
    Aug 4, 2010
    Messages:
    63
    Likes Received:
    0
    Trophy Points:
    6
    Ratings:
    +0
    Can't thank you enough! Always wanted to learn this. Followed the guide and am typing this from my first ROM.... a speedy one. I loaded P3's lv 125-1000 and used gapps from CM (there's a very recent one posted). As mentioned in a previous post, whack the recovery folder from the ota zip. I also whacked a checkprereq(?) file from the ota zip. Not sure what that is.

    Does anyone know how to 'clean' the build environment similar to how a linux kernel is compiled?

    Thanks
     
  2. tjkriegel

    tjkriegel Member

    Joined:
    Mar 6, 2010
    Messages:
    153
    Likes Received:
    0
    Trophy Points:
    16
    Ratings:
    +0
    I'm getting this when executing make:

    make: *** No rule to make target `vendor/motorola/sholes/proprietary/act_mirred.ko', needed by `out/target/product/sholes/system/lib/modules/act_mirred.ko'. Stop.


    Any ideas?
     
  3. tcrews

    tcrews Premium Member
    Premium Member Developer

    Joined:
    Jan 27, 2010
    Messages:
    1,353
    Likes Received:
    22
    Trophy Points:
    53
    Location:
    Lexington, SC
    Ratings:
    +22
    have you attached your phone to the system and run the extract_files.sh to pull the proprietary files which also creates the vendor/motorola folder and required .mk files?
     
  4. tjkriegel

    tjkriegel Member

    Joined:
    Mar 6, 2010
    Messages:
    153
    Likes Received:
    0
    Trophy Points:
    16
    Ratings:
    +0
    Did that... I think I'm just going to wipe it clean and start over, see where it takes me this time! Thanks for trying to help.
     
  5. woodyman

    woodyman Senior Member
    Developer

    Joined:
    Jan 27, 2010
    Messages:
    1,610
    Likes Received:
    4
    Trophy Points:
    68
    Location:
    Ohio
    Ratings:
    +4

    like t said, you have to do this step..
    https://sites.google.com/site/teamdroidconcepts/experimental/compile/h-basic-vendor-setup

    if you did, just retry the step, and if you still can't get it, post and let me know, but it seems like your proprietary files, didn't get set up right..
     
  6. woodyman

    woodyman Senior Member
    Developer

    Joined:
    Jan 27, 2010
    Messages:
    1,610
    Likes Received:
    4
    Trophy Points:
    68
    Location:
    Ohio
    Ratings:
    +4
    the checkprereq you don't have to delete, just the recovery folder.
     
  7. tjkriegel

    tjkriegel Member

    Joined:
    Mar 6, 2010
    Messages:
    153
    Likes Received:
    0
    Trophy Points:
    16
    Ratings:
    +0
    That's where the problem was. At . extract-files.sh I was getting this:

    remote object '/system/lib/modules/act_mirred.ko' does not exist
    remote object '/system/lib/modules/act_police.ko' does not exist
    remote object '/system/lib/modules/cls_u32.ko' does not exist
    remote object '/system/lib/modules/em_u32.ko' does not exist
    remote object '/system/lib/modules/ifb.ko' does not exist
    remote object '/system/lib/modules/sch_htb.ko' does not exist
    remote object '/system/lib/modules/wl127x_test.ko' does not exist

    Reinstalled rom on phone and tried again and all went well.

    Thanks tcrews!
    Thanks for the help and great guide Woody!
     
  8. burgeke

    burgeke Member

    Joined:
    Aug 4, 2010
    Messages:
    63
    Likes Received:
    0
    Trophy Points:
    6
    Ratings:
    +0
    Thank you! Any idea how I clean up after a build prior to building again? Or maybe it is not needed.
     
  9. tcrews

    tcrews Premium Member
    Premium Member Developer

    Joined:
    Jan 27, 2010
    Messages:
    1,353
    Likes Received:
    22
    Trophy Points:
    53
    Location:
    Lexington, SC
    Ratings:
    +22
    before you do another make just do make installclean

    . build/envsetup.sh
    lunch
    6

    make installclean

    make otapackage

    You can delete that file...you can also enter the system/bin folder and delete

    applypatch, applypatch_static, check_prereq, recovery and updater as none of those are needed. Free up some space.
     
  10. pyro6128

    pyro6128 Senior Member

    Joined:
    Jan 5, 2010
    Messages:
    1,511
    Likes Received:
    8
    Trophy Points:
    68
    Location:
    NYC
    Ratings:
    +8
    the shoutout to CVPCS and Sniffle was pretty classy. Very nice right up, lots of reading to do
     
  11. burgeke

    burgeke Member

    Joined:
    Aug 4, 2010
    Messages:
    63
    Likes Received:
    0
    Trophy Points:
    6
    Ratings:
    +0
    tcrews,

    Thank you! Is that your guide on the deodexed site? I noticed there's some extra stuff in it...

    Really appreciate the help.
     
  12. tcrews

    tcrews Premium Member
    Premium Member Developer

    Joined:
    Jan 27, 2010
    Messages:
    1,353
    Likes Received:
    22
    Trophy Points:
    53
    Location:
    Lexington, SC
    Ratings:
    +22
    Yeah...that's mine hosted there.
     
Search tags for this page
android compile browser
,
android lunch menu... pick a combo
,
android rom compile
,
build/core/base rules.mk:130
,

compile android rom

,

how to compile a rom

,

how to compile android rom

,
lunch menu... pick a combo
,
module.target.static libraries
,
rom compiler