Hi folks,

I did not find any related post to my question so I decided to create one. 
However, feel free to link any relevant post I may have missed.

Problem: I would like to build one project in AOSP at a very specific 
commit.

The procedure:

   - Find the commit ID
   - Find the appropriate manifest branch (git tag --contains $COMMIT_ID ) 
   in the appropriate project in the mirror
   - Init the manifest branch from the mirror
   - Checkout the project at $COMMIT_ID
   - Source build/envsetup.sh and do a *mma*


However, if this procedure mostly works, sometimes you have a problem 
because the dependencies of your project as not synced and the build fail.

Since Google on its CI ( 
https://ci.android.com/builds/branches/aosp-master/grid ) always build the 
tree with the last commit on each repo, the idea was to checkout *every 
*project 
in AOSP at the date of the commit I want to build (e.g. $COMMIT_ID is 
15.06.2019, let's checkout every project at this date). However, this 
*fails* because some project are not synced (during the sync from the 
mirror) with their history (e.g prebuilts tools).

I also tried to checkout the master branch from the AOSP mirror but the 
problem remains (e.g. clone-depth of some project is still 1).

My question is rather easy: how do one build a specific commit in one of 
AOSP project.


Ps : If you want to reproduce the problem, you may try to build commit 
830cb39cb2a0f1bf6704d264e2a5c5029c175dd7 
from platform/system/bt on branch android-9.0.0_r17 .

-- 
-- 
You received this message because you are subscribed to the "Android Building" 
mailing list.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
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 [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/android-building/a5befb35-0739-434b-8964-b5ecdfa00eb0%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to