i' m following a guide to try builiding my first rom and i don't understand a step
"6. After the repo sync finally finishes, all you need to do is add your device, kernel, vendor specific files for the device you are building for."
Where can i find these things? Is there a command i should give in the terminal?
I've searched a little but not found anything...any hint would be accepted!
tylpica wives
phoenixita said:
i' m following a guide to try builiding my first rom and i don't understand a step
"6. After the repo sync finally finishes, all you need to do is add your device, kernel, vendor specific files for the device you are building for."
Where can i find these things? Is there a command i should give in the terminal?
I've searched a little but not found anything...any hint would be accepted!
Click to expand...
Click to collapse
What rom are you building? If CM10.1 or CM10.2 just follow the instructions on
wiki.cyanogenmod.org - w - Build_for_ville
(sorry, cannot post the link since I don't have enough posts Just replace - with /)
I guess your point 6 refers to items 2.7-2.9 where prebuilt apps, device-specific code (e.g. kernel etc.) and other
proprietary drivers are copied to your source code.
To init for CM10.1, use
repo init -u git://github.com/CyanogenMod/android.git -b cm-10.1
for CM10.2 use
repo init -u git://github.com/CyanogenMod/android.git -b cm-10.2
Hope this helps. good luck
drkxyz said:
What rom are you building? If CM10.1 or CM10.2 just follow the instructions on
wiki.cyanogenmod.org - w - Build_for_ville
(sorry, cannot post the link since I don't have enough posts Just replace - with /)
I guess your point 6 refers to items 2.7-2.9 where prebuilt apps, device-specific code (e.g. kernel etc.) and other
proprietary drivers are copied to your source code.
To init for CM10.1, use
repo init -u git://github.com/CyanogenMod/android.git -b cm-10.1
for CM10.2 use
repo init -u git://github.com/CyanogenMod/android.git -b cm-10.2
Hope this helps. good luck
Click to expand...
Click to collapse
I'm trying to build another rom not CM but i'm trying following the 2.7-2.9 steps from your link
What
Building from source or MOD ROM?
xdluisssxd said:
Building from source or MOD ROM?
Click to expand...
Click to collapse
i think i'm building it from source lol
Related
Can some one please point me to a complete guide that takes you through all the steps of making a final update.zip from the AOSP code? I ran the make command at the end of the AOSP website guide, but i have no idea where to go from here. Anyone wanna lend a hand?
http://wiki.cyanogenmod.com/index.php/Compile_for_dream
http://forum.xda-developers.com/forumdisplay.php?f=613
Use search next time.
I started from scratch and did not source cyanogen's repositories. what build target should i specify? Every target from the lunch menu seems to be eclair. So what do i do to select donut?
You do
source build/envsetup.sh
lunch
Click to expand...
Click to collapse
Then select dream-open (eng or userdebug).
Don't forget when you do repo init to set the branch to donut:
repo init git://android.git.kernel.org/platform/manifest.git -b donut
Click to expand...
Click to collapse
kingkurry said:
I started from scratch and did not source cyanogen's repositories. what build target should i specify? Every target from the lunch menu seems to be eclair. So what do i do to select donut?
Click to expand...
Click to collapse
you should probably download the donut branch and not the eclair branch
Eclair is very broken for build. Currently, Master is a snapshot of 2.1r1, so you'd best build master (donut stock is very broken too).
Unfortunately, at this time, there's no way to switch branches once you've synced a repository.
Unless there's a better way to do it that I don't know about, I keep different branches downloaded on different directories. It's redundant because the whole information for all branches/commits is downloaded to .repo anyway, so I don't see why branch switching is not possible. Anyway, if you want donut, create another directory, cd to it, and repo init -u git://android.git.kernel.org/platform/manifest.git -b donut (I suggest donut-plus-aosp instead, builds a bit better than donut).
Thanks for all of the help guys . Its been a long time since i started, but im going to start building and try and learn this stuff.
Also, will the make otazip command only work when sourcing cyanogen, or will it work on AOSP?
Hi all,
First of all, where I can find a good tuto for starting dev ?
I want help for porting CM 7.2 so I find this in the thread:
1. Download source codes
- Get cyanogenmod source in a directory (eg: /cm7/)
- put device config to device/samsung/apollo
- put vendor files to vendor/samsung/apollo
- put cyanogen vendor files to vendor/cyanogen
Click to expand...
Click to collapse
I understand how too get "device config", "vendor files" and "cyanogen vendor files" but not "cyanogenmod source".
I think, I will get it with this command:
repo init -u git://github.com/CyanogenMod/android.git -b gingerbread
Thanks all.
Kalite-Iruka said:
Hi all,
First of all, where I can find a good tuto for starting dev ?
I want help for porting CM 7.2 so I find this in the thread:
Click to expand...
Click to collapse
Your help is welcome... there is a lot to do.
I think, I will get it with this command:
repo init -u git://github.com/CyanogenMod/android.git -b gingerbread
Thanks all.
Click to expand...
Click to collapse
yes, then
Code:
# repo sync -j4
and you will get the cyanogenmod source (cm7).
Thanks for the help for get CM7 source code.
For cyanogen vendor files, the folder already exist. What i need to do?
1 - merge the too folder (remplace existing file with yours)
2 - delete all files in the folder and put just your files in it
Kalite-Iruka said:
Thanks for the help for get CM7 source code.
For cyanogen vendor files, the folder already exist. What i need to do?
1 - merge the too folder (remplace existing file with yours)
2 - delete all files in the folder and put just your files in it
Click to expand...
Click to collapse
I have test the two : The solution is the first.
For doing it, I make a clone of your git repository in a temp directory. After that I copy the result in vendor/cyanogen.
I don't find a git comand to do it, does it exist ?
I tried too use eclipse indigo by following android source documentation.
When I tired too create the java project, there isn't "Create project from existing source" option. So, I search on google but I find any thing for CM and android source code.
What must I do?
Hello xda,
I had a little time on my hands the other night, and wanted to figure out a way that I could work on any of the project repositories needed to build say, aokp, cyanogenmod, aosp, etc... without having to connect to the internet.
Mirroring is not new. Simple enough to:
Code:
mkdir cm-mirror
cd cm-mirror
repo init -u git://github.com/CyanogenMod/android.git -b cm-10.1 --mirror
repo sync -j[dl-jobs]
then create a working directory:
Code:
cd ..
mkdir cm-work
cd cm-work
repo init -u file:///Volumes/Android/cm-mirror/CyanogenMod/android.git --reference /Volumes/Android/cm-mirror/ -b cm-10.1
repo sync # no jobs needed. super fast.
But at this point you only have what you need for cm-10.1. What if you also have work you are doing for 10.1.0? Or an old update to make for cm-7.2.0?
I originally started looking for a solution to sync every branch in the manifest one at a time, but while talking with cdesai he showed me a really clean way of getting the repositories directly from gerrit.
Anyways, here is the resulting script. Let me know your thoughts.
I've moved the script to a git repository here: https://github.com/bhundven/repo-mm
in case anyone wants to contribute.
I've also written a post on my blog about using the new gerrit-mirror.sh on gh.
ChangeLog
Changes:
[06/30/13]: Announce some updates to gerrit-mirror.sh, and blog post.
[06/24/13]: Moved gist to github project.
GitHub for repo-mm.
I am trying to build AOSP. I have followed some instructions and the best are the instructions of Sony. But when I come to the point to clone the local_manifests, I need to have another file. I have found the AOSP-bacon repo on github where is a local_manifests to clone. So I have done that but when I try to sync the repo with the command 'repo sync' it gives this back:
[email protected]:~/android$ repo sync
fatal: remove-project element specifies non-existent project: platform/build
I have searched but could not find the answer what to do now. Can someone help me or say what I need to do to build AOSP?
Lennert_F said:
I am trying to build AOSP. I have followed some instructions and the best are the instructions of Sony. But when I come to the point to clone the local_manifests, I need to have another file. I have found the AOSP-bacon repo on github where is a local_manifests to clone. So I have done that but when I try to sync the repo with the command 'repo sync' it gives this back:
[email protected]:~/android$ repo sync
fatal: remove-project element specifies non-existent project: platform/build
I have searched but could not find the answer what to do now. Can someone help me or say what I need to do to build AOSP?
Click to expand...
Click to collapse
try deleting platform/build manually from the source and delete the same from the local_manifest.xml file then do a repo sync.
Hi guys
I'm new to rom development, I have many question to deal with...
First thing first, I'm about to download android source as per the steps in source.android.com, but i have limited data quota per day. so i searched the internet to reduce the downloading source size and i found that adding
Code:
--depth=1
to git clone command will reduce the downloading size.
But I need to know what is the difference between below two git clone commands
Code:
repo init --depth=1 -u https://android.googlesource.com/platform/manifest -b android-5.0.0_r1.0.1
and
Code:
repo init -u https://android.googlesource.com/platform/manifest -b android-5.0.0_r1.0.1
Second thing is I'm building rom for Huawei ascend P6-U06 (code name: hwp6-u06), for this device i can't find kernel tree, device tree and vendor blobs for lollipop. I'm only getting kernel tree, device tree and vendor blobs for Kitkat in github (cm-11.0 based) can i use these ones
orelse can i use google common kernel source to build custom kernel