When following the instructions to sync, I have created a local_manifest.xml file in the .repo/ directory with the below in the file:
<?xml version="1.0" encoding="UTF-8"?>
<remote name="sony" fetch="git://github.com/sonyxperiadev/" />
<remove-project name="device/sony/lt26" />
<project path="device/sony/lt26" name="device-sony-lt26" remote="sony" revision="master" />
I have also unzipped the device files to the directory and I now have vendor/sony/lt26 in my tree.
Then I have ran repo sync and I get the following error:
jerdog@build1 ~/android $ repo sync
Traceback (most recent call last):
File "/home/jerdog/android/.repo/repo/main.py", line 408, in <module>
File "/home/jerdog/android/.repo/repo/main.py", line 388, in _Main
result = repo._Run(argv) or 0
File "/home/jerdog/android/.repo/repo/main.py", line 122, in _Run
copts, cargs = cmd.OptionParser.parse_args(argv)
File "/home/jerdog/android/.repo/repo/command.py", line 45, in OptionParser
File "/home/jerdog/android/.repo/repo/subcmds/sync.py", line 147, in _Options
self.jobs = self.manifest.default.sync_j
File "/home/jerdog/android/.repo/repo/manifest_xml.py", line 256, in default
File "/home/jerdog/android/.repo/repo/manifest_xml.py", line 304, in _Load
File "/home/jerdog/android/.repo/repo/manifest_xml.py", line 419, in _ParseManifest
error.ManifestParseError: project device/sony/lt26 not found
jerdog@build1 ~/android $
As device/sony/lt26 is no longer included in the master manifest from Google it's not possible to "remove-project" it, so that line should be removed.
However, as of the 4.2 merge into master branch the resulting images does not boot, the format of boot.img is incorrect and we're lacking some features in the graphics stack - we're investigating how to solve these things.
Excellent - thanks Bjorn. So I can ignore the instructions and not use the local_manifest.xml file.
Mmm, i hope you've got it all figured it out by now, but according to the comment above you should remove only the line from the manifest (and keep the local_manifest file)
README : remove <remove-project> line from local_manifest examples
Issue #2 : "As device/sony/lt26 is no longer included in the master
manifest from Google it's not possible to "remove-project" it, so that
line should be removed."
thanks guys. I just now got back around to checking this out and noticed that a step was missing in the instructions (or so it seems) as "./build/envsetup.sh" doesn't show up. I had completely forgotten about that step so lunch wasn't working. After running that step, I can run "lunch full_lt26-userdebug" but I get the following error now (after removing the remove-project line from the local_manifest:
jerdog@build1 ~/android $ lunch full_lt26-userdebug
build/core/product_config.mk:193: *** _nic.PRODUCTS.[[device/sony/lt26/full_lt26.mk]]: "frameworks/native/build/phone-xhdpi-1024-dalvik-heap.mk" does not exist. Stop.
** Don't have a product spec for: 'full_lt26'
** Do you have the right repo manifest?
I'm not sure that this is the root cause of your issue, but which version of the AOSP are you targetting ? Could you please try to switch to the 4.2.1 branche (from your build directory, something like "repo init -b android-4.2.1_r1 ; repo sync" should do the trick) and re-lunch ? (NOTE : depending on your connection speed, "repo init -b ..." might take a while...)
duh. It's been so long since I have done this my brain lapsed.
With that being said, after running make it churns for a long time and finally errors out with this:
In file included from cts/suite/audio_quality/lib/src/audio/AudioPlaybackLocal.cpp:29:0:
/home/jerdog/android/prebuilts/gcc/linux-x86/host/i686-linux-glibc2.7-4.6/bin/../sysroot/usr/include/sound/asound.h:334:2: error: 'u_int32_t' does not name a type
realmake: *** [out/host/linux-x86/obj/STATIC_LIBRARIES/libcts_audio_quality_intermediates/src/audio/AudioPlaybackLocal.o] Error 1
realmake: *** Waiting for unfinished jobs....
Probably a dumb question, but does your build env matches the recommendation from http://source.android.com/source/initializing.html (i'm thinking required packages section, stuff like "ia32-libs" etc..) ?
did some searching, and this error
asound.h:334:2: error: 'u_int32_t' does not name a type
is answered here in relations to AOSP 4.2 source - https://coderwall.com/p/2lr87q
I copied the asound.h from the kernel headers as suggested:
cp external/kernel-headers/original/sound/asound.h prebuilts/gcc/linux-x86/host/i686-linux-glibc2.7-4.6/sysroot/usr/include/sound/
and everything worked like a charm.
Good news !
Well, let's hope Bjorn (or someone else) will be able to sort out those issue with the boot.img and graphic stack :)
Everything was fine with my source I just needed to rebase off the correct tree.
Thanks for all of the comments. The README has been updated.