I am trying to figure out how to push local changes I have made to my AOSP "Jellybean" branch on Github. Basically, I forked CM and made local changes which seemed to compile and function correctly. Now I want to push those changes back to my Github Repository. The branch I have synced in called Jellybean.
Things I have already done:
- Created my SSH Keys and configured in Github
- Initialized the Repo
- Synced the Repo
- Made local changes (which can be reverted if necessary)
- Complied and tested on Galaxy Nexus device
Now that I have the commits (I will be making more), how do I commit the changes using Repo command? or do I use the Git command?
Hi Guys,
I've never used repo before but I am trying to get hold of a copy of the cyanogenmod sources (jellybean). I followed the instructions on this page (grr no links!) wiki.cyanogenmod.com/wiki/Galaxy_Nexus_(GSM):_Compile_CyanogenMod_9_(Linux) down to this section:
Code:
repo init -u git:// github.com/CyanogenMod/android.git -b ics
Now I changed "ics" at the end to "jellybean" as I assumed that was the latest branch for CM10. Then I've run:
Code:
repo sync -j4
Now I'm just wondering (as my sync has been going for hours) is this syncing all of the cyanogenmod sources? I've seen quite a lot of references scroll across the screen that relates to previous versions of android. Or is this actually just download the jellybean code?
Thanks
Oh well, scratch that. It finished about 10 minutes after asking! Sods law eh?!
hey guys just as the title says,, i want to compile jelly bean and ics for my devices,, is there a way i can download both sources at once??
winxuser said:
hey guys just as the title says,, i want to compile jelly bean and ics for my devices,, is there a way i can download both sources at once??
Click to expand...
Click to collapse
In my experience compiling AOSP from source and working with the source code you have to specify which branch of Android you want to download (Can't specfiy multiple banches to download at once) for example to download the latest version of Jelly Bean you would run the command "repo init -u https://android.googlesource.com/platform/manifest -b android-4.3.1_r1". I would recommend creating two different directories to hold your ICS source code and your Jelly Bean source code, an example might look something like the following:
Code:
mkdir ~/android/jellybean
cd ~/android/jellybean
repo init -u https://android.googlesource.com/platform/manifest -b android-4.3.1_r1
repo sync
mkdir ~/android/ics
cd ~/android/ics
repo init -u https://android.googlesource.com/platform/manifest -b android-4.0.4_r2.1
repo sync
Let me know if you still have questions.
ok cheers, so i cant sync both at the same time into different folder?
edit: well thats a bit of a b**** then
also one other thing,, what changes to a CM device tree would i need to make to build a aosp rom
winxuser said:
hey guys just as the title says,, i want to compile jelly bean and ics for my devices,, is there a way i can download both sources at once??
Click to expand...
Click to collapse
Xda university has a nice page with some repo tricks.
Shows
Code:
repo init --reference=~/android/cm -u git://github.com/AOKP/platform_manifest.git -b jb
for syncing files faster in the same android version but different sources.
But I don't think that's what you're looking for.
Btw, if you just want to simultaneously download both sources, why don't you just open another terminal window
winxuser said:
also one other thing,, what changes to a CM device tree would i need to make to build a aosp rom
Click to expand...
Click to collapse
I have only a little experience working with modifying device tree's but you shouldn't have really make any changes to the device tree to build AOSP. All you should have to do is download the Cyanogenmod device tree and use that as your device tree for compiling AOSP, what device are you compiling for?
im gonna be compiling for a couple devices,, galaxy s3 lte and huawei sonic u8650
While trying to sync liquidsmooth after running init it goes on and all sudden it needs some manifest and wants me to repo init again..
I build carbon rom just fine so i know how to.
I am trying to follow this guide:
Code:
https://wiki.cyanogenmod.org/w/Build_for_h901#What_you.E2.80.99ll_need
in order to build cyanogenmod for my H901, but after the initial repo sync "completed" without error, i follow the guide through breakfast and the the file extraction, and brunch fails to build all targets. after this, doing repo sync again gives me this:
Code:
Fetching projects: 99% (524/529) Fetching project CyanogenMod/android_hardware_qcom_display
Fetching project CyanogenMod/android_hardware_qcom_display
Fetching project CyanogenMod/android_hardware_qcom_display
fatal: Couldn't find remote ref refs/heads/cm-13.0
error: Cannot fetch CyanogenMod/android_kernel_lge_pplus
error: Exited sync due to fetch errors
I want to say this is due to the v10 not being a "supported device" for CM13 yet, as it is not listed on the lunch menu. but i was running the test builds in the dev section just fine, and i'm sure it's a fairly simple matter to pull the right stuff from git, but i'm a newbie to this kind of development.
After successfully building from source, i want to build a custom rom based on CM13 and keep the LG stock camera app, and the LGSignboard second screen function, and gain all the Cyanogenmod goodies too. any help or guidance with that quest would be appreciated.
I really hope someone can answer this for you.. :/
I think, you are trying to sync cm-13.0 branch of cyanogenmod lge_pplus kernel repo in your local manifest. But this is not there. Its only the cm-12.1 branch there: https://github.com/CyanogenMod/android_kernel_lge_pplus. For cm-13 you will need a different kernel source path. Hopefully there are already cm-13 roms for your device and with sources on github, where from you can sync?
Okay, that makes sense.
I was following a guide on CM wiki to build CM13 for the v10, why would that branch not be present on github if there is a guide to build from it?
I'll poke around github and xda for available kernel source.
Sent from my LG-H901 using XDA-Developers mobile app