How to checkout other Android versions using repo

1,700 views
Skip to first unread message

Frank

unread,
Aug 14, 2013, 5:41:01 AM8/14/13
to android-...@googlegroups.com
Hi all,

I "repo sync" Android source code according to the guide on
http://source.android.com/source/downloading.html.

I executed below repo init command:
repo init -u https://android.googlesource.com/platform/manifest

This will using master branch for manifest, right?

Then, "repo sync" complete, and I can build master successfully
using ". build/envsetup.sh && lunch full-eng && make -j 8".

However, currently I want to build android-2.3.4_r1 .
1). repo forall -c git checkout android-2.3.4_r1
2). . build/envsetup.sh && lunch

Below error occured:

---------------------------------------------------------

You're building on Linux

Lunch menu... pick a combo:
     1. generic-eng
     2. simulator
     3. aosp_deb-userdebug
     4. aosp_flo-userdebug
     5. full_grouper-userdebug
     6. full_tilapia-userdebug
     7. mini_armv7a_neon-userdebug
     8. mini_mips-userdebug
     9. mini_x86-userdebug
     10. full_mako-userdebug
     11. full_maguro-userdebug
     12. full_manta-userdebug
     13. full_arndale-userdebug
     14. full_toroplus-userdebug
     15. full_toro-userdebug
     16. full_panda-userdebug

Which would you like? [generic-eng] 1
build/core/product_config.mk:194: *** _nic.PRODUCTS.[[device/asus/deb/aosp_deb.mk]]: "build/target/product/aosp_base.mk" does not exist.  Stop.

** Don't have a product spec for: 'generic'
** Do you have the right repo manifest?
---------------------------------------------------------

Then, My question is HOW to checkout a pure and buildable android-2.3.4_r1 branch with my repo ?

Any advice is welcome !
Thanks in advance !

Jean-Baptiste Queru

unread,
Aug 14, 2013, 1:31:44 PM8/14/13
to android-...@googlegroups.com
To switch to 2.3.4_r1:
repo init -b android-2.3.4_r1 ; repo sync

JBQ

--
--
You received this message because you are subscribed to the "Android Building" mailing list.
To post to this group, send email to android-...@googlegroups.com
To unsubscribe from this group, send email to
android-buildi...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-building?hl=en
 
---
You received this message because you are subscribed to the Google Groups "Android Building" group.
To unsubscribe from this group and stop receiving emails from it, send an email to android-buildi...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
 
 



--
Jean-Baptiste M. "JBQ" Queru
Software Engineer, Google.

Questions sent directly to me that have no reason for being private will likely get ignored or forwarded to a public forum with no further warning.

Frank

unread,
Aug 15, 2013, 5:30:43 AM8/15/13
to android-...@googlegroups.com
OK, thanks JBQ.

I have executed below command previously, and all project's git bare repositories
have fetched to my local PC.
repo init -u https://android.googlesource.com/platform/manifest; repo sync

Then, if I execute the command "repo init -b android-2.3.4_r1 ; repo sync",
my previous git bare repos will be removed and re-sync to android-2.3.4_r1 ?

I mean, is all the git repos being re-synced to that version ?

Thanks!

Magnus Bäck

unread,
Aug 20, 2013, 11:22:26 AM8/20/13
to android-...@googlegroups.com
On Thursday, August 15, 2013 at 05:30 EDT,
Frank <frank.fi...@gmail.com> wrote:

> I have executed below command previously, and all project's git bare
> repositories have fetched to my local PC.
> repo init-u https://android.googlesource.com/platform/manifest ; repo sync
>
> Then, if I execute the command "repo init -bandroid-2.3.4_r1 ;
> repo sync", my previous git bare repos will be removed and re-sync
> toandroid-2.3.4_r1 ?

I don't think Repo actually removes any gits from disk, but if it does
it'll only be the gits that exist on the master branch but not in
android-2.3.4_r1. The other way around, i.e. gits in the 2.3.4 manifest
but not on the master branch will be synced from scratch. Remaining gits
will just be updated with the latest state from the server.

> I mean, is all the git repos being re-synced to that version ?

Yes. The source workspace will be Android 2.3.4 and equivalent to what
you'd gotten had you passed '-b android-2.3.4_r1' to 'repo init' in the
first place.

--
Magnus Bäck
ba...@google.com

Frank

unread,
Aug 21, 2013, 4:46:15 AM8/21/13
to android-...@googlegroups.com
Hi, Magnus B�ck

Got it ! Thanks for your clear explanation ! :-)
Reply all
Reply to author
Forward
0 new messages