Help Compiling CM9 - Epic 4G Q&A, Help & Troubleshooting

So I am trying to compile CM9 per directions in android development. The problem that I have is that after I sync and try to do the step where it says type in brunch epicmtd, I get stuck. Ive searched and ive read and I have done all of the suggestions and I still cant seem to get it to work. Please someone help.

MrGameW1nner said:
So I am trying to compile CM9 per directions in android development. The problem that I have is that after I sync and try to do the step where it says type in brunch epicmtd, I get stuck. Ive searched and ive read and I have done all of the suggestions and I still cant seem to get it to work. Please someone help.
Click to expand...
Click to collapse
You need to type . build/envsetup.sh && brunch epicmtd
Yes the space between . And build is necessary.
You can also do . build/envsetup.sh
And on the next line do brunch epicmtd but its easier if you just use one command.
Sent from my SPH-D700 using Tapatalk 2

xboxfanj said:
You need to type . build/envsetup.sh && brunch epicmtd
Yes the space between . And build is necessary.
You can also do . build/envsetup.sh
And on the next line do brunch epicmtd but its easier if you just use one command.
Sent from my SPH-D700 using Tapatalk 2
Click to expand...
Click to collapse
Thanks for the reply. But when I try that it says.
[email protected]:~/android/system# . build/envsetup.sh && brunch epicmtd
including device/ti/panda/vendorsetup.sh
including vendor/cm/vendorsetup.sh
including sdk/bash_completion/adb.bash
including vendor/cm/vendorsetup.sh
build/core/product_config.mk:189: *** _nic.PRODUCTS.[[device/*/epicmtd/cm.mk]]: "" does not exist. Stop.
Device epicmtd not found. Attempting to retrieve device repository from CyanogenMod Github.
Found repository: android_device_samsung_epicmtd
CyanogenMod/android_device_samsung_epicmtd already exists
Syncing repository to retrieve project.
sh: 1: repo: not found
Repository synced!
Looking for dependencies
Dependencies file not found, bailing out.
Done
build/core/product_config.mk:189: *** _nic.PRODUCTS.[[device/*/epicmtd/cm.mk]]: "device/*/epicmtd/cm.mk" does not exist. Stop.
** Don't have a product spec for: 'cm_epicmtd'
** Do you have the right repo manifest?
No such item in brunch menu. Try 'breakfast'
And I try breakfast and it still doesnt work. And another question im running ubuntu 12.04 and it says I dont have any disk space left but it shows that I have like 300gb free. Why does it keep saying that? Maybe it didnt finish syncing the repo right cause I ran out of space. Sorry for the long post.

MrGameW1nner said:
Thanks for the reply. But when I try that it says.
[email protected]:~/android/system# . build/envsetup.sh && brunch epicmtd
including device/ti/panda/vendorsetup.sh
including vendor/cm/vendorsetup.sh
including sdk/bash_completion/adb.bash
including vendor/cm/vendorsetup.sh
build/core/product_config.mk:189: *** _nic.PRODUCTS.[[device/*/epicmtd/cm.mk]]: "" does not exist. Stop.
Device epicmtd not found. Attempting to retrieve device repository from CyanogenMod Github.
Found repository: android_device_samsung_epicmtd
CyanogenMod/android_device_samsung_epicmtd already exists
Syncing repository to retrieve project.
sh: 1: repo: not found
Repository synced!
Looking for dependencies
Dependencies file not found, bailing out.
Done
build/core/product_config.mk:189: *** _nic.PRODUCTS.[[device/*/epicmtd/cm.mk]]: "device/*/epicmtd/cm.mk" does not exist. Stop.
** Don't have a product spec for: 'cm_epicmtd'
** Do you have the right repo manifest?
No such item in brunch menu. Try 'breakfast'
And I try breakfast and it still doesnt work. And another question im running ubuntu 12.04 and it says I dont have any disk space left but it shows that I have like 300gb free. Why does it keep saying that? Maybe it didnt finish syncing the repo right cause I ran out of space. Sorry for the long post.
Click to expand...
Click to collapse
I think that could be the problem. Perhaps you need to delete some things. Make sure you have enough space open. Right click an empty place in nautilus and press properties and make sure theres enough room. you may need to empty the trash. Or perhaps you just need to do another repo sync. Either way, it looks like not all the files are in the device repo.

Ok so now im getting frustrated. Ive been tryng to build this thing for a week and a half and I keep having to start over or uninstall ubuntu and
reinstall. So ive finally got everything working and I go to build and I keep getting this.
No private recovery resources for TARGET_DEVICE epicmtd
build/core/tasks/kernel.mk:26: ***************************************************************
build/core/tasks/kernel.mk:27: * Using prebuilt kernel binary instead of source *
build/core/tasks/kernel.mk:28: * THIS IS DEPRECATED, AND WILL BE DISCONTINUED *
build/core/tasks/kernel.mk:29: * Please configure your device to download the kernel *
build/core/tasks/kernel.mk:30: * source repository to kernel/samsung/victory/Kernel/
build/core/tasks/kernel.mk:31: * See wiki.cyanogenmod.com/wiki/Integrated_kernel_building[/url]
build/core/tasks/kernel.mk:32: * for more information *
build/core/tasks/kernel.mk:33: ***************************************************************
make: *** No rule to make target `device/samsung/epicmtd/kernel', needed by `out/target/product/epicmtd/kernel'. Stop.
Now I googled the problem and it told me to edit the BoardConfig.mk and I did and it still doesnt work. Please help.

MrGameW1nner said:
Ok so now im getting frustrated. Ive been tryng to build this thing for a week and a half and I keep having to start over or uninstall ubuntu and
reinstall. So ive finally got everything working and I go to build and I keep getting this.
No private recovery resources for TARGET_DEVICE epicmtd
build/core/tasks/kernel.mk:26: ***************************************************************
build/core/tasks/kernel.mk:27: * Using prebuilt kernel binary instead of source *
build/core/tasks/kernel.mk:28: * THIS IS DEPRECATED, AND WILL BE DISCONTINUED *
build/core/tasks/kernel.mk:29: * Please configure your device to download the kernel *
build/core/tasks/kernel.mk:30: * source repository to kernel/samsung/victory/Kernel/
build/core/tasks/kernel.mk:31: * See wiki.cyanogenmod.com/wiki/Integrated_kernel_building[/url]
build/core/tasks/kernel.mk:32: * for more information *
build/core/tasks/kernel.mk:33: ***************************************************************
make: *** No rule to make target `device/samsung/epicmtd/kernel', needed by `out/target/product/epicmtd/kernel'. Stop.
Now I googled the problem and it told me to edit the BoardConfig.mk and I did and it still doesnt work. Please help.
Click to expand...
Click to collapse
Do you have the kernel repo in your local_manifest.xml?
Sent from my SPH-D700 using Tapatalk 2

xboxfanj said:
Do you have the kernel repo in your local_manifest.xml?
Sent from my SPH-D700 using Tapatalk 2
Click to expand...
Click to collapse
If you are talking about the instructions on the second page of the guide? Then yes. I modified the manifest with what was there. If thats not what you are talking about then I am confused.

MrGameW1nner said:
If you are talking about the instructions on the second page of the guide? Then yes. I modified the manifest with what was there. If thats not what you are talking about then I am confused.
Click to expand...
Click to collapse
this is what you need in your local_manifest.xml
<?xml version="1.0" encoding="UTF-8"?>
<manifest>
<project name="CyanogenMod/android_device_samsung_epicmtd" path="device/samsung/epicmtd" remote="github" revision="ics" />
<project name="TheMuppets/proprietary_vendor_samsung" path="vendor/samsung" remote="github" revision="ics" />
<project name="CyanogenMod/android_kernel_samsung_victory" path="kernel/samsung/victory" remote="github" revision="ics" />
</manifest>
Those are all the repos you will need. After you add those to your local_manifest.xml, you need to do a repo sync, then . build/envsetup.sh && brunch epicmtd and it should generate a build.

Related

CyanogenMod 9 Development

I'm working on porting CM9 to HTC One X. I've made a lot of progress but there are still issues. I wanted to get the source out as soon as possible to get more people working on it.
See the wiki for more information.
Status
Working:
Radio (calls and 3G)
Audio
Hardware Acceleration
WiFi
Bluetooth
GPS
NFC
Camera
FM Radio
Echo/In call volume fixed
Wifi Tethering
Issues/TODO list:
Wifi Direct
Blank screen on rotation
Data connection occasionally fails
Camera focusing on face issue
Nightly Builds
Thanks to jangrewe for providing the nightly builds.
Downloads: http://mirror.faked.org/cm9/
Jenkins: http://faked.org/jenkins
Reporting issues
https://github.com/intermediaterepresentation/android_device_htc_endeavor/issues
Flashing ROM
Using CWM you can flash the ROM.
The kernel must be flashed manually unless you have S-OFF:
Extract the zip file.
Code:
fastboot flash boot boot.img
Building
Add the following to your .repo/local_manifest.xml:
Code:
<project name="intermediaterepresentation/android_hardware_ti_wlan" path="hardware/ti/wlan" remote="github" revision="p-ics-mr1-release"/>
<project name="intermediaterepresentation/android_kernel_htc_endeavor" path="kernel/htc/endeavor" remote="github" revision="master" />
<project name="intermediaterepresentation/android_device_htc_endeavor" path="device/htc/endeavoru" remote="github" revision="master" />
Sync code.
Code:
repo sync
And compile:
Code:
add_lunch_combo cm_endeavoru-userdebug
lunch cm_endeavoru-userdebug
(cd device/htc/endeavoru && ./extract_files.sh)
make -j4 otapackage
Contributions
Please send me pull requests on GitHub if you want to contribute.
Sources
Device Configuration - https://github.com/intermediaterepresentation/android_device_htc_endeavor
Kernel - https://github.com/intermediaterepresentation/android_kernel_htc_endeavor
Change Log
5/19/2012 - Initial import of project
5/20/2012 - Bluetooth support added
5/20/2012 - GPS added
5/21/2012 - NFC added
5/28/2012 - Add build links
5/28/2012 - Auto brightness, ICS switcher for hardware key, and more (thanks gorbi) - https://github.com/intermediaterepresentation/android_device_htc_endeavor/pull/1
5/28/2012 - Camera is now working!
5/30/2012 -
akaspin - fix bug with editing custom backlight levels
tgascoigne - fix usb mass storage
gorbi - fix for chrome. system tweaks.
6/26/2012 - Update changelog and add wiki link
I guess someone from XDA (JDR0iD?) is also working on CM9 you might wanna ask them as well.
I thought its already out, but its only posted in the modaco forum
Sent from my HTC One X using Tapatalk 2
Good to see that someone who actually shares the open source work works on cm9 now! The guy over at modaco seems like a bit of a douche, cause he insist on not sharing his repo and as I think this shouldn't be supported because open source is about open source!
Keep up the work, I hope you can fix at least the heavy bugs like mobile connection so you can post a build
Sent from my HTC One X using XDA Premium HD app
Code:
error: revision refs/heads/ics in intermediaterepresentation/android_device_htc_endeavor not found
When syncing my repo.
Edit:
I fixed it by changing
Code:
<project name="intermediaterepresentation/android_hardware_ti_wlan" path="hardware/ti/wlan-omapzoom" remote="github" revision="p-ics-mr1-release"/>
<project name="intermediaterepresentation/android_kernel_htc_endeavor" path="kernel/htc/endeavor" remote="github" />
<project name="intermediaterepresentation/android_device_htc_endeavor" path="device/htc/endeavor" remote="github" />
to
Code:
<project name="intermediaterepresentation/android_hardware_ti_wlan" path="hardware/ti/wlan-omapzoom" remote="github" revision="p-ics-mr1-release"/>
<project name="intermediaterepresentation/android_kernel_htc_endeavor" path="kernel/htc/endeavor" remote="github" [COLOR="red"]revision="master"[/COLOR]/>
<project name="intermediaterepresentation/android_device_htc_endeavor" path="device/htc/endeavor" remote="github" [COLOR="Red"]revision="master"[/COLOR]/>
Edit 2:
Next error:
Code:
fh-mac:cm9 fh$ lunch cm_endeavor-userdebug
Looking for dependencies
Traceback (most recent call last):
File "build/tools/roomservice.py", line 150, in <module>
fetch_dependencies(repo_path)
File "build/tools/roomservice.py", line 127, in fetch_dependencies
dependencies = json.loads(dependencies_file.read())
File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/json/__init__.py", line 326, in loads
return _default_decoder.decode(s)
File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/json/decoder.py", line 360, in decode
obj, end = self.raw_decode(s, idx=_w(s, 0).end())
File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/json/decoder.py", line 378, in raw_decode
raise ValueError("No JSON object could be decoded")
ValueError: No JSON object could be decoded
** Don't have a product spec for: 'cm_endeavor'
** Do you have the right repo manifest?
endursa said:
Good to see that someone who actually shares the open source work works on cm9 now! The guy over at modaco seems like a bit of a douche, cause he insist on not sharing his repo and as I think this shouldn't be supported because open source is about open source!
Keep up the work, I hope you can fix at least the heavy bugs like mobile connection so you can post a build
Sent from my HTC One X using XDA Premium HD app
Click to expand...
Click to collapse
It is his choice, so get over it. Just be glad he is sharing his ROM with the community for free. He doesn't owe us anything. Seriously, you people are ungrateful brats
Sorry about that...looks like my cm.dependencies was empty. I put an empty JSON object in there and all is good. repo sync or pull the changes from android_device_htc_endeavor and lunch should work.
Edit 2:
Next error:
Code:
fh-mac:cm9 fh$ lunch cm_endeavor-userdebug
Looking for dependencies
Traceback (most recent call last):
File "build/tools/roomservice.py", line 150, in <module>
fetch_dependencies(repo_path)
File "build/tools/roomservice.py", line 127, in fetch_dependencies
dependencies = json.loads(dependencies_file.read())
File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/json/__init__.py", line 326, in loads
return _default_decoder.decode(s)
File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/json/decoder.py", line 360, in decode
obj, end = self.raw_decode(s, idx=_w(s, 0).end())
File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/json/decoder.py", line 378, in raw_decode
raise ValueError("No JSON object could be decoded")
ValueError: No JSON object could be decoded
** Don't have a product spec for: 'cm_endeavor'
** Do you have the right repo manifest?
Click to expand...
Click to collapse
intrepresentation said:
Sorry about that...looks like my cm.dependencies was empty. I put an empty JSON object in there and all is good. repo sync or pull the changes from android_device_htc_endeavor and lunch should work.
Click to expand...
Click to collapse
Seems to work now, thanks!
I am so happy that you have stated this. I really miss cm9 since I sold my GN. And the nightly hours of compiling for myself... Lets hope that some geniuses will help you to get it running soon. CM9 is open and has to stay open. Otherwise he uses the wrong name for the ROM.
Next one...
Code:
fh-mac:cm9 fh$ make -j4 otapackage
============================================
<...>
============================================
build/core/base_rules.mk:166: *** hardware/ti/wlan/mac80211/config: MODULE.TARGET.ETC.wpa_supplicant.conf already defined by external/wpa_supplicant_8/wpa_supplicant. Stop.
Planet X said:
I am so happy that you have stated this. I really miss cm9 since I sold my GN. And the nightly hours of compiling for myself... Lets hope that some geniuses will help you to get it running soon. CM9 is open and has to stay open. Otherwise he uses the wrong name for the ROM.
Click to expand...
Click to collapse
exactly...same goes for other devs here as well which use normal HTC builds. they create something awesome, devs asks permission from the creators if they can use their tweaks or mods in their roms and like the divas they are most of the times they say no..so tell me what is open source then. same goes for the guy who is compiling the cm9 Trip whatever his name is...android is open. and if by doing the right procedure and giving the right credits people should be helping each other out to make the community better..not worse by acting like little divas.
@OP ask a mod if you can move this thread in development cause you guys are compiling a build from source so it makes more sense if it was there instead of general..you do not lose anything by asking.. i wish you all the best cause cm9 is by far the best ICS i tried
F4M0U569 said:
It is his choice, so get over it. Just be glad he is sharing his ROM with the community for free. He doesn't owe us anything. Seriously, you people are ungrateful brats
Click to expand...
Click to collapse
No, he doesn't owe us anything, but he has said things on the modaco thread that I dislike, whilst it is nice that he has released it to the community, he has not acknowledged that he is only modifying the work of other people, it is not just his work and so his attitude doesn't seem brilliant. He isn't selling his work, so releasing the source code wouldn't be detrimental to him and would help many people.
empyyy said:
Next one...
Code:
fh-mac:cm9 fh$ make -j4 otapackage
============================================
<...>
============================================
build/core/base_rules.mk:166: *** hardware/ti/wlan/mac80211/config: MODULE.TARGET.ETC.wpa_supplicant.conf already defined by external/wpa_supplicant_8/wpa_supplicant. Stop.
Click to expand...
Click to collapse
Let's try changing this in local_manifest.xml:
Code:
<project name="intermediaterepresentation/android_hardware_ti_wlan" path="hardware/ti/wlan-omapzoom" remote="github" revision="p-ics-mr1-release"/>
to
Code:
<project name="intermediaterepresentation/android_hardware_ti_wlan" path="hardware/ti/wlan" remote="github" revision="p-ics-mr1-release"/>
Remove the old one hardware/ti/wlan-omapzoom.
Code:
rm -rf hardware/ti/wlan-omapzoom
Now sync and you'll get hardware/ti/wlan updated and also I just changed something in device/htc/endeavor too.
See if that works.
intrepresentation said:
See if that works.
Click to expand...
Click to collapse
It works now and starts building, however, I'm getting the following error now:
Code:
external/zlib/x86/adler32.c: In function ‘adler32_MMX’:
external/zlib/x86/adler32.c:747: error: can't find a register in class ‘GENERAL_REGS’ while reloading ‘asm’
external/zlib/x86/adler32.c:747: error: ‘asm’ operand has impossible constraints
make: *** [out/host/darwin-x86/obj/STATIC_LIBRARIES/libz_intermediates/adler32.o] Error 1
I think it has to do something with Mac OS...
empyyy said:
It works now and starts building, however, I'm getting the following error now:
Code:
external/zlib/x86/adler32.c: In function ‘adler32_MMX’:
external/zlib/x86/adler32.c:747: error: can't find a register in class ‘GENERAL_REGS’ while reloading ‘asm’
external/zlib/x86/adler32.c:747: error: ‘asm’ operand has impossible constraints
make: *** [out/host/darwin-x86/obj/STATIC_LIBRARIES/libz_intermediates/adler32.o] Error 1
I think it has to do something with Mac OS...
Click to expand...
Click to collapse
Yeah it probably does. I am on Mac but I do my building on an Ubuntu VM. You can get VirtualBox for free if you need some VM software.
Hi, thanks a lot for sharing your sources!
I'm currently trying to build them, but the extract_files.sh already gives me a lot of missing objects - i'm trying to copy them off of a phone that's running an old build by TripNRaver.
here's the output: http://pastebin.com/vGS5gZq7
Is that "bad"? Should i go back to stock and try to copy them then?
cens0r said:
Hi, thanks a lot for sharing your sources!
I'm currently trying to build them, but the extract_files.sh already gives me a lot of missing objects - i'm trying to copy them off of a phone that's running an old build by TripNRaver.
here's the output: http://pastebin.com/vGS5gZq7
Is that "bad"? Should i go back to stock and try to copy them then?
Click to expand...
Click to collapse
Yeah run against stock. I may have some additional files that are not needed but run against stock to be safe.
intrepresentation said:
Yeah run against stock. I may have some additional files that are not needed but run against stock to be safe.
Click to expand...
Click to collapse
Thanks, i'll do that shortly. The compiling is running smoothly currently, good job so far!
Okay, mobile data is now working! Had to add this into build.prop:
Code:
ro.telephony.ril.v3=signalstrength,skipbrokendatacall
intrepresentation said:
Okay, mobile data is now working! Had to add this into build.prop:
Code:
ro.telephony.ril.v3=signalstrength,skipbrokendatacall
Click to expand...
Click to collapse
building now... got the proprietary files from the unbranded EU 1.29 RUU
EDIT: hitting an error:
in function wpa_driver_nl80211_ops:driver_nl80211.c(.data.rel.ro.wpa_driver_nl80211_ops+0x1c8): error: undefined reference to 'wpa_driver_nl80211_driver_cmd'
Code:
target Executable: wpa_supplicant (out/target/product/endeavor/obj/EXECUTABLES/wpa_supplicant_intermediates/LINKED/wpa_supplicant)
prebuilt/linux-x86/toolchain/arm-linux-androideabi-4.4.x/bin/../lib/gcc/arm-linux-androideabi/4.4.3/../../../../arm-linux-androideabi/bin/ld: out/target/product/endeavor/obj/EXECUTABLES/wpa_supplicant_intermediates/src/drivers/driver_nl80211.o: in function wpa_driver_nl80211_ops:driver_nl80211.c(.data.rel.ro.wpa_driver_nl80211_ops+0x1c8): error: undefined reference to 'wpa_driver_nl80211_driver_cmd'
collect2: ld returned 1 exit status
make: *** [out/target/product/endeavor/obj/EXECUTABLES/wpa_supplicant_intermediates/LINKED/wpa_supplicant] Error 1
make: *** Waiting for unfinished jobs....
EDIT 2:
add the following as line 57 in "device/htc/endeavor/BoardConfig.mk"
Code:
BOARD_WPA_SUPPLICANT_PRIVATE_LIB := lib_driver_cmd_wl12xx
EDIT 3: built & booted! looking good for a first try!

Is anyone currently able to build CM10.1 for GNex?

I decided to give building CM a try again recently and set up a new Ubuntu VM for the task. I'm encountering some problems however. I setup my repo with the new 10.1 branch which I believe is now pulling down 4.2.2. At the end of repo sync, I receive:
Code:
info: A new version of repo is available
object 91f011ab0df9e1aa215e39b424c9ce2614bae50e
type commit
tag v1.12.1
tagger Conley Owens <[email protected]> 1360088708 -0800
repo 1.12.1
gpg: Signature made Tue 05 Feb 2013 01:25:08 PM EST using RSA key ID 338871A4
gpg: Can't check signature: public key not found
error: could not verify the tag 'v1.12.1'
I wasn't sure if this was actually a problem so I proceeded to get-prebuilts and the envsetup script. After that I run "breakfast maguro" but that's where I hit a wall:
Code:
including vendor/cm/vendorsetup.sh
ls: cannot access device/*/maguro/cm.mk: No such file or directory
build/core/product_config.mk:234: *** Cannot locate config makefile for product "cm_maguro". Stop.
Device maguro not found. Attempting to retrieve device repository from CyanogenMod Github (http://github.com/CyanogenMod).
Found repository: android_device_samsung_maguro
Default revision: cm-10.1
Checking branch info
CyanogenMod/android_device_samsung_maguro already exists
Syncing repository to retrieve project.
error: project device/samsung/maguro not found
Repository synced!
Looking for dependencies
Dependencies file not found, bailing out.
Done
ls: cannot access device/*/maguro/cm.mk: No such file or directory
build/core/product_config.mk:234: *** Cannot locate config makefile for product "cm_maguro". Stop.
** Don't have a product spec for: 'cm_maguro'
** Do you have the right repo manifest?
At this point I don't have a maguro device folder so I can't proceed to the extract-files script. I don't know if my setup is wrong or if these are temporary problems since the 4.2.2 merge. Is anyone able to build right now, and if so do you know what might be wrong?
Thanks!
I'm having the very same problem. I'm thinking there's just some problems with the 4.2.2 merger.
same problem here
Okay, good to know it's not just me. Any place it should be reported or something? There are 4.2.2 nightlies for our phone so building must be possible, just not downloaded fresh, maybe it's an issue with the Github project.
Please read forum rules before posting
Questions and help issues go in Q&A
Thread moved
Thank you for your cooperation
Friendly Neighborhood Moderator
Ok found it.
cd ~/android/system
cd .repo/repo
git pull -s resolve
cd ~/android/system
repo init -u git://github.com/CyanogenMod/android.git -b cm-10.1
repo sync
. build/envsetup.sh
breakfast maguro
zorxd said:
Ok found it.
cd ~/android/system
cd .repo/repo
git pull -s resolve
cd ~/android/system
repo init -u git://github.com/CyanogenMod/android.git -b cm-10.1
repo sync
. build/envsetup.sh
breakfast maguro
Click to expand...
Click to collapse
You rock! Worked great. Can I ask how you figured that out, just for future reference?
Thanks for the help!
found it on a german web site
this issue came down from AOSP.

[CLK]Android 4.3.1 (CM10.2) and how to build your own version -

First you can use my source or my roms to build your own rom only say thanks in your own thread.
I like to share my way to compile Android 4.3.1 for the HTC LEO.
First thanks to mark1706, sportsstar89, evervolv team, devs that make CLK possible and tytung.
YOU CAN FIND "MY" CM-10.2 build here: DEV-HOST
Kernel soure and leo files: GITHUB
This "how to build your own Android" will work with a updated 2.6.35 kernel by mark1706. It use some parts of sportsstar89 kernel.
First setup your 64bit Linux.
I use Linux-Mint (the DEBIAN 7 based version)
You have to install Oracle Java 7: http://www.webupd8.org/2012/06/how-to-install-oracle-java-7-in-debian.html
After Java install follow this how to: https://www.techsomnia.net/2012/11/building-android-on-debian-7/
!! BUT do not install OPEN JDK (sudo apt-get install openjdk-6-jdk) !!
And stop at this point: "Now, prepare the repo:"
Next step get adb working: http://bernaerts.dyndns.org/linux/75-debian/280-debian-wheezy-android-tools-adb-fastboot-qtadb
Now we can start to sync the Android source. (based on this
To install Repo:
Make sure you have a bin/ directory in your home directory and that it is included in your path:
Code:
mkdir ~/bin
PATH=~/bin:$PATH
Download the Repo tool and ensure that it is executable:
Code:
curl [URL]http://commondatastorage.googleapis.com/git-repo-downloads/repo[/URL] > ~/bin/repo
chmod a+x ~/bin/repo
After installing Repo, set up your client to access the Android source repository:
Create an empty directory to hold your working files. If you're using MacOS, this has to be on a case-sensitive filesystem. Give it any name you like:
$ mkdir WORKING_DIRECTORY
$ cd WORKING_DIRECTORY
Run repo init to bring down the latest version of Repo with all its most recent bug fixes. You must specify a URL for the manifest, which specifies where the various repositories included in the Android source will be placed within your working directory.
Code:
repo init -u git://github.com/CyanogenMod/android.git -b cm-10.2
To pull down the Android source tree to your working directory
Code:
repo sync
We have to load the leo device tree, vendor files and the leo kernel.
Attached you find my local.xml View attachment local_manifests.zip.
Put this file at this place:
Code:
WORKING_DIRECTORY/.repo/local_manifests/...
Now sync again:
Code:
repo sync
Next you have to connect your Leo with running Android and Adb to your PC
We need to download some special files (This will fixed in future)
Go to this folder:
Code:
Working_Directory/device/htc/leo
and run the this script
Code:
sh extract_files.sh
We have to clean the kernel folder:
Go to this folder:
Code:
Working_Directory/kernel/htc/leo
and run this command
Code:
make mrproper
One step more:
Go to this folder: Working_Directory/vendor/cm
and run the this script
Code:
sh get-prebuilts
It is time to start compiling:
Make sure you are in this folder "Working_Directory"
run this commands:
Code:
. build/envsetup.sh
brunch leo
[SIZE=3]** you can use brunch leo -jX too X = numbers of cpu core (or threads) **[/SIZE]
Now wait and you will find your working Android 4.3.1 in this folder:
Working_Directory/out/target/product/leo
Problems with this Android builds:
- auto select GSM network
- mobile data not working well
- switch between wifi and mobile data
- AGPS (GPS works)
You can fix this problems by using files from tytungs NexusHD2 rom.
(AGPS, auto select GSM network)
Auto select GSM network is a telephony_common.jar framework problem.
But there are no source how it was fixed in tytungs rom. Maybe someone find a way to fix it again.
If you like to use 3.x kernel change this in local_manifest.xml:
Code:
<project path="kernel/htc/leo" name="walter79/android_kernel_htc_leo_2.6.35-mark1706-based" remote="github" revision="cm-10.2" />
to
<project path="kernel/htc/leo" name="walter79/android_kernel_htc_leo" remote="github" revision="cm-10.2" />
@walter79
- Can i use your instruction to built Slimroms for HD2??
- How to compile slimroms for HD2??
---------- Post added at 05:24 PM ---------- Previous post was at 05:17 PM ----------
walter79 said:
Auto select GSM network is a telephony_common.jar framework problem.
But there are no source how it was fixed in tytungs rom. Maybe someone find a way to fix it again.
Click to expand...
Click to collapse
You can ask Macs18max. I used telephony_common.jar of Macs18max's compile and it work great with 4.3.1!!
You can use it for slimrom but you need to edit /device/htc/leo/cm.mk. Check working devices for slimrom and you will see what changes are needed.
walter79 said:
You can use it for slimrom but you need to edit /device/htc/leo/cm.mk. Check working devices for slimrom and you will see what changes are needed.
Click to expand...
Click to collapse
Many thannks. I will try i now! I'm beginner so i will learn and learn so much more, i hope you can help me in the next time!
walter79 said:
Problems with this Android builds:
- auto select GSM network
- mobile data not working well
- switch between wifi and mobile data
- AGPS (GPS works)
You can fix this problems by using files from tytungs NexusHD2 rom.
(AGPS, auto select GSM network)
Auto select GSM network is a telephony_common.jar framework problem.
But there are no source how it was fixed in tytungs rom. Maybe someone find a way to fix it again.
If you like to use 3.x kernel change this in local_manifest.xml:
Code:
<project path="kernel/htc/leo" name="walter79/android_kernel_htc_leo_2.6.35-mark1706-based" remote="github" revision="cm-10.2" />
to
<project path="kernel/htc/leo" name="walter79/android_kernel_htc_leo" remote="github" revision="cm-10.2" />
Click to expand...
Click to collapse
I havent tried in 4.3.1 but in 4.2.2 I merge evervolvs telephony-common.jar. It was ril.java.. use meld-diff software to compare everolvs ril.java with your own. and merge required codes.. (Note I also used hardware/ril from evervolv)
big thanks. will check ril.java
Nice thread @walter79 !
I was wondering wether you ever had a similar error:
Code:
target thumb C: libhardware_legacy <= hardware/libhardware_legacy/power/power.c
target thumb C: libhardware_legacy <= hardware/libhardware_legacy/uevent/uevent.c
arm-linux-androideabi-gcc: error: ": No such file or directory
make: *** [/home/adam/android/pa43/out/target/product/leo/obj/SHARED_LIBRARIES/libhardware_legacy_intermediates/power/power.o] Error 1
make: *** Waiting for unfinished jobs....
arm-linux-androideabi-gcc: error: ": No such file or directory
make: *** [/home/adam/android/pa43/out/target/product/leo/obj/SHARED_LIBRARIES/libhardware_legacy_intermediates/uevent/uevent.o] Error 1
It has been bugging me for a week and I cannot find a solution... Do you have any idea about it? (I'm building PA 4.3)
Maybe this help try the carbon rom version.
/device/htc/qsd8k-common/BordConfigCommon.mk
Code:
# only for cyanogenmod
TARGET_KERNEL_CUSTOM_TOOLCHAIN := arm-eabi-4.4.3
# only for carbon rom
# TARGET_KERNEL_CUSTOM_TOOLCHAIN := arm-eabi-4.4.3/bin/arm-eabi-
walter79 said:
Maybe this help try the carbon rom version.
/device/htc/qsd8k-common/BordConfigCommon.mk
Code:
# only for cyanogenmod
TARGET_KERNEL_CUSTOM_TOOLCHAIN := arm-eabi-4.4.3
# only for carbon rom
# TARGET_KERNEL_CUSTOM_TOOLCHAIN := arm-eabi-4.4.3/bin/arm-eabi-
Click to expand...
Click to collapse
Thanks! Unfortunately, it's still the same. I tried it with nearly all possible toolchains...
NxStep said:
Nice thread @walter79 !
I was wondering wether you ever had a similar error:
Code:
target thumb C: libhardware_legacy <= hardware/libhardware_legacy/power/power.c
arm-linux-androideabi-gcc: error: ": No such file or directory
It has been bugging me for a week and I cannot find a solution... Do you have any idea about it? (I'm building PA 4.3)[/QUOTE]
i'd open hardware/libhardware_legacy/power/power.c to find out if any dependancy is unmet (any missing file). i've never compiled a rom myself (hoping soon i will) but for the error you're getting (i'm not sure if it's from toolchain or because of missing toolchain), maybe see if the toolchain path is hardcoded somewhere and try to change it:confused:
Click to expand...
Click to collapse
NxStep said:
Nice thread @walter79 !
I was wondering wether you ever had a similar error:
Code:
target thumb C: libhardware_legacy <= hardware/libhardware_legacy/power/power.c
target thumb C: libhardware_legacy <= hardware/libhardware_legacy/uevent/uevent.c
arm-linux-androideabi-gcc: error: ": No such file or directory
make: *** [/home/adam/android/pa43/out/target/product/leo/obj/SHARED_LIBRARIES/libhardware_legacy_intermediates/power/power.o] Error 1
make: *** Waiting for unfinished jobs....
arm-linux-androideabi-gcc: error: ": No such file or directory
make: *** [/home/adam/android/pa43/out/target/product/leo/obj/SHARED_LIBRARIES/libhardware_legacy_intermediates/uevent/uevent.o] Error 1
It has been bugging me for a week and I cannot find a solution... Do you have any idea about it? (I'm building PA 4.3)
Click to expand...
Click to collapse
Check you local.xml
I used wrong repo for toolchain. Replace it
Code:
<!-- Toolchain -->
<project path="prebuilts/gcc/linux-x86/arm" name="walter79/toolchains" remote="github" revision="master" />
I will upload later a new local.xml
mistake since two days
since yesterday i we have a compiling mistake and have no idea for this problem.
Code:
[COLOR="DarkRed"]target thumb C: wpa_supplicant <= external/wpa_supplicant_8/wpa_supplicant/src/drivers/driver_wext.c
target thumb C: wpa_supplicant <= external/wpa_supplicant_8/wpa_supplicant/src/l2_packet/l2_packet_linux.c
external/wpa_supplicant_8/wpa_supplicant/src/drivers/driver_wext.c: In function 'wpa_driver_wext_set_key_ext':
external/wpa_supplicant_8/wpa_supplicant/src/drivers/driver_wext.c:1708:14: error: 'IW_ENCODE_ALG_AES_CMAC' undeclared (first use in this function)
external/wpa_supplicant_8/wpa_supplicant/src/drivers/driver_wext.c:1708:14: note: each undeclared identifier is reported only once for each function it appears in
external/wpa_supplicant_8/wpa_supplicant/src/drivers/driver_wext.c: In function 'wpa_driver_wext_associate':
external/wpa_supplicant_8/wpa_supplicant/src/drivers/driver_wext.c:2135:11: error: 'IW_AUTH_MFP_DISABLED' undeclared (first use in this function)
external/wpa_supplicant_8/wpa_supplicant/src/drivers/driver_wext.c:2138:11: error: 'IW_AUTH_MFP_OPTIONAL' undeclared (first use in this function)
external/wpa_supplicant_8/wpa_supplicant/src/drivers/driver_wext.c:2141:11: error: 'IW_AUTH_MFP_REQUIRED' undeclared (first use in this function)
external/wpa_supplicant_8/wpa_supplicant/src/drivers/driver_wext.c:2144:42: error: 'IW_AUTH_MFP' undeclared (first use in this function)
make: *** [/home/pixelfreak/htc-leo/carbon/4.3/out/target/product/leo/obj/EXECUTABLES/wpa_supplicant_intermediates/src/drivers/driver_wext.o] Error 1
make: *** Waiting for unfinished jobs....[/COLOR]
Note: Some input files use unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
Note: Some input files use unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
target StaticLib: libc_nomalloc (/home/pixelfreak/htc-leo/carbon/4.3/out/target/product/leo/obj/STATIC_LIBRARIES/libc_nomalloc_intermediates/libc_nomalloc.a)
[email protected] ~/htc-leo/carbon/4.3 $
pixelfreak
Because now we have ION Kernel, why dont you guys compile a Rom that use ION????
re
aazzam16661 said:
Because now we have ION Kernel, why dont you guys compile a Rom that use ION????
Click to expand...
Click to collapse
the ion system not work 100%... we have test the ion and we go back to Linux kernel version: 2.6.35.14....
pixelfreak
-pixelfreak- said:
the ion system not work 100%... we have test the ion and we go back to Linux kernel version: 2.6.35.14....
pixelfreak
Click to expand...
Click to collapse
There is no ION for HD2 2.6 kernel, its only available in 3.0 kernel
and what do you mean by ion system not work 100%
re
aazzam16661 said:
There is no ION for HD2 2.6 kernel, its only available in 3.0 kernel
and what do you mean by ion system not work 100%
Click to expand...
Click to collapse
no we have test the 3.xx kernel with ion and this not work. so we go back to 2.6
pixelfreak
aazzam16661 said:
Because now we have ION Kernel, why dont you guys compile a Rom that use ION????
Click to expand...
Click to collapse
3.x kernel does not support working bluetooth yet. Display did not work with ion yet.
If you have working display for ion you can tell how to enable it.
walter79 said:
Display did not work with ion yet.
Click to expand...
Click to collapse
And how i'm i using Sense 5 Right Now on my HD2.....It Use ION man...The ION kernel for HD2 Was created for The Sense 5
And yes, the display works
OR, your taking about cm10.2 build have display not working????
walter79 said:
3.x kernel does not support working bluetooth yet. Display did not work with ion yet.
If you have working display for ion you can tell how to enable it.
Click to expand...
Click to collapse
I think more and more people use Bluetooth...but want more smooth....
so i also suggest Kernel 3.0 and it support NativeSD better!
Thanks!

Dirty Unicorns Compile error

Alright, so I'm trying to port Dirty Unicorns to my LG OGP. I setup everything appropiately (vendor/du/products/e980.mk, device/lge/e980, etc). When I try to run the lunch command from the terminal, I get this error:
[email protected] /media/tanner/Icon of Sin/dirtyunicorns $ lunch du_e980-userdebug
build/core/product_config.mk:238: Cycle detected between "device/lge/e980/device.mk" and "device/lge/e980/full_e980.mk" for context "_nic.PRODUCTS.[[vendor/du/products/e980.mk]]"
build/core/product_config.mk:238: *** import of "device/lge/e980/device.mk" failed. Stop.
** Don't have a product spec for: 'du_e980'
** Do you have the right repo manifest?
I added the du_e980-userdebug lunch command in the vendorsetup.sh file and all of that. Can anyone help me out with this? I've spent hours searching this forum and the web to no avail. Any help would be greatly appreciated. Thanks!
worldextermination said:
Alright, so I'm trying to port Dirty Unicorns to my LG OGP. I setup everything appropiately (vendor/du/products/e980.mk, device/lge/e980, etc). When I try to run the lunch command from the terminal, I get this error:
[email protected] /media/tanner/Icon of Sin/dirtyunicorns $ lunch du_e980-userdebug
build/core/product_config.mk:238: Cycle detected between "device/lge/e980/device.mk" and "device/lge/e980/full_e980.mk" for context "_nic.PRODUCTS.[[vendor/du/products/e980.mk]]"
build/core/product_config.mk:238: *** import of "device/lge/e980/device.mk" failed. Stop.
** Don't have a product spec for: 'du_e980'
** Do you have the right repo manifest?
I added the du_e980-userdebug lunch command in the vendorsetup.sh file and all of that. Can anyone help me out with this? I've spent hours searching this forum and the web to no avail. Any help would be greatly appreciated. Thanks!
Click to expand...
Click to collapse
It looks like your device tree is not properly set up.
Here is an example of another LG device tree, fwiw.....https://github.com/DirtyUnicorns-KitKat/android_device_lge_hammerhead Note the du.mk and du.dependencies files. They are specific to the du rom.
And when you build do this:
. build/envsetup.sh && lunch (pick your device from the list)
if it's not there it's not set up accordingly
then:
time brunch (device-name)
if you still have trouble go to the DU g+ page and read up and ask around.....you'll find your answers there
Great!! Mr.Adams
Sent from my LG-E980 using Tapatalk

Help building LineageOS 13 for unsupported device

I am trying to build LineageOS 13 for my device and I'm following this guide: https://forum.xda-developers.com/chef-central/android/how-to-build-lineageos-14-1-t3551484
I'm using this device tree: https://github.com/vampirefo/android_device_blu_Life_One_X2_Mini
and this vendor tree: https://github.com/vampirefo/android_vendor_blu_Life_One_X2_Mini
I do not have the kernel source and I am hoping I can use a precompiled kernel. I have synced the LineageOS 13.0 repo and synced the device and vendor tree.
this is my output for "source build/envsetup.sh"
Code:
including device/blu/Life_One_X2_Mini/vendorsetup.sh
including device/generic/mini-emulator-arm64/vendorsetup.sh
including device/generic/mini-emulator-armv7-a-neon/vendorsetup.sh
including device/generic/mini-emulator-mips/vendorsetup.sh
including device/generic/mini-emulator-x86_64/vendorsetup.sh
including device/generic/mini-emulator-x86/vendorsetup.sh
including vendor/cm/vendorsetup.sh
including sdk/bash_completion/adb.bash
including vendor/cm/bash_completion/git.bash
including vendor/cm/bash_completion/repo.bash
When I run the command "croot" I get "command not found". I assume it's the same as doing "cd ~/android/system". When I run the command "breakfast full_Life_One_X2_Mini" I get the following error:
Code:
including vendor/cm/vendorsetup.sh
build/core/product_config.mk:238: *** Can not locate config makefile for product "lineage_full_Life_One_X2_Mini". Stop.
Device full_Life_One_X2_Mini not found. Attempting to retrieve device repository from LineageOS Github (http://github.com/LineageOS).
Repository for full_Life_One_X2_Mini not found in the LineageOS Github repository list. If this is in error, you may need to manually add it to your local_manifests/roomservice.xml.
build/core/product_config.mk:238: *** Can not locate config makefile for product "lineage_full_Life_One_X2_Mini". Stop.
** Don't have a product spec for: 'lineage_full_Life_One_X2_Mini'
** Do you have the right repo manifest?
** Warning: 'full_Life_One_X2_Mini' is using CM-based makefiles. This will be deprecated in the next major release.
build/core/product_config.mk:238: *** Can not locate config makefile for product "cm_full_Life_One_X2_Mini". Stop.
Device full_Life_One_X2_Mini not found. Attempting to retrieve device repository from LineageOS Github (http://github.com/LineageOS).
Repository for full_Life_One_X2_Mini not found in the LineageOS Github repository list. If this is in error, you may need to manually add it to your local_manifests/roomservice.xml.
build/core/product_config.mk:238: *** Can not locate config makefile for product "cm_full_Life_One_X2_Mini". Stop.
** Don't have a product spec for: 'cm_full_Life_One_X2_Mini'
** Do you have the right repo manifest?
I'm missing something obvious but I can't see it. I'm building this in Arch Linux
Thanks
srgrusso said:
I am trying to build LineageOS 13 for my device and I'm following this guide: https://forum.xda-developers.com/chef-central/android/how-to-build-lineageos-14-1-t3551484
I'm using this device tree: https://github.com/vampirefo/android_device_blu_Life_One_X2_Mini
and this vendor tree: https://github.com/vampirefo/android_vendor_blu_Life_One_X2_Mini
I do not have the kernel source and I am hoping I can use a precompiled kernel. I have synced the LineageOS 13.0 repo and synced the device and vendor tree.
this is my output for "source build/envsetup.sh"
Code:
including device/blu/Life_One_X2_Mini/vendorsetup.sh
including device/generic/mini-emulator-arm64/vendorsetup.sh
including device/generic/mini-emulator-armv7-a-neon/vendorsetup.sh
including device/generic/mini-emulator-mips/vendorsetup.sh
including device/generic/mini-emulator-x86_64/vendorsetup.sh
including device/generic/mini-emulator-x86/vendorsetup.sh
including vendor/cm/vendorsetup.sh
including sdk/bash_completion/adb.bash
including vendor/cm/bash_completion/git.bash
including vendor/cm/bash_completion/repo.bash
When I run the command "croot" I get "command not found". I assume it's the same as doing "cd ~/android/system". When I run the command "breakfast full_Life_One_X2_Mini" I get the following error:
Code:
including vendor/cm/vendorsetup.sh
build/core/product_config.mk:238: *** Can not locate config makefile for product "lineage_full_Life_One_X2_Mini". Stop.
Device full_Life_One_X2_Mini not found. Attempting to retrieve device repository from LineageOS Github (http://github.com/LineageOS).
Repository for full_Life_One_X2_Mini not found in the LineageOS Github repository list. If this is in error, you may need to manually add it to your local_manifests/roomservice.xml.
build/core/product_config.mk:238: *** Can not locate config makefile for product "lineage_full_Life_One_X2_Mini". Stop.
** Don't have a product spec for: 'lineage_full_Life_One_X2_Mini'
** Do you have the right repo manifest?
** Warning: 'full_Life_One_X2_Mini' is using CM-based makefiles. This will be deprecated in the next major release.
build/core/product_config.mk:238: *** Can not locate config makefile for product "cm_full_Life_One_X2_Mini". Stop.
Device full_Life_One_X2_Mini not found. Attempting to retrieve device repository from LineageOS Github (http://github.com/LineageOS).
Repository for full_Life_One_X2_Mini not found in the LineageOS Github repository list. If this is in error, you may need to manually add it to your local_manifests/roomservice.xml.
build/core/product_config.mk:238: *** Can not locate config makefile for product "cm_full_Life_One_X2_Mini". Stop.
** Don't have a product spec for: 'cm_full_Life_One_X2_Mini'
** Do you have the right repo manifest?
I'm missing something obvious but I can't see it. I'm building this in Arch Linux
Thanks
Click to expand...
Click to collapse
You may need to edit the(device tree) device.mk's to reflect the files you're working with
Sent from my N9515 using Tapatalk
bcrichster said:
You may need to edit the(device tree) device.mk's to reflect the files you're working with
Sent from my N9515 using Tapatalk
Click to expand...
Click to collapse
here is my vendorsetup.sh
Code:
add_lunch_combo full_Life_one_X2_Mini-userdebug
and my AndroidProducts.mk
Code:
PRODUCT_MAKEFILES := \
$(LOCAL_DIR)/full_Life_One_X2_Mini.mk
I have been looking at this for a week and still can't see what is wrong. I'm starting to feel stupid. Maybe someone sees something I don't. The person who built the tree has built a few roms with it so it has to be something I'm doing wrong. If you need to look at the rest of the tree here is the link.
https://github.com/vampirefo/android_device_blu_Life_One_X2_Mini
Edit: found my error in my vendorsetup.sh should be "full_Life_One_X2_Mini-userdebug" not "full_Life_one_X2_Mini-userdebug"
srgrusso said:
here is my vendorsetup.sh
Code:
add_lunch_combo full_Life_one_X2_Mini-userdebug
and my AndroidProducts.mk
Code:
PRODUCT_MAKEFILES := \
$(LOCAL_DIR)/full_Life_One_X2_Mini.mk
I have been looking at this for a week and still can't see what is wrong. I'm starting to feel stupid. Maybe someone sees something I don't. The person who built the tree has built a few roms with it so it has to be something I'm doing wrong. If you need to look at the rest of the tree here is the link.
https://github.com/vampirefo/android_device_blu_Life_One_X2_Mini
Click to expand...
Click to collapse
Use "lunch" instead of breakfast (device).. Lemme pull it up in a min and have a better look
Edit: another possibility could be LineageOS's change from vendor/cm to vendor/lineage that needs reflected in you lineage.mk
Sent from my N9515 using Tapatalk
bcrichster said:
Use "lunch" instead of breakfast (device).. Lemme pull it up in a min and have a better look
Edit: another possibility could be LineageOS's change from vendor/cm to vendor/lineage that needs reflected in you lineage.mk
Sent from my N9515 using Tapatalk
Click to expand...
Click to collapse
Ok i have made it a little further. now when I do lunch I get the following error
Code:
You're building on Linux
Breakfast menu... pick a combo:
1. aosp_arm64-eng 9. lineage_espresso3g-userdebug 17. lineage_toro-userdebug
2. aosp_arm-eng 10. lineage_espressowifi-userdebug 18. m_e_arm-userdebug
3. aosp_mips64-eng 11. lineage_ks01lte-userdebug 19. mini_emulator_arm64-userdebug
4. aosp_mips-eng 12. lineage_maguro-userdebug 20. mini_emulator_mips-userdebug
5. aosp_x86_64-eng 13. lineage_manta-userdebug 21. mini_emulator_x86_64-userdebug
6. aosp_x86-eng 14. lineage_mondrianwifi-userdebug 22. mini_emulator_x86-userdebug
7. full_Life_One_X2_Mini-userdebug 15. lineage_roth-userdebug
8. full_P780-userdebug 16. lineage_toroplus-userdebug
... and don't forget the bacon!
Which would you like? [aosp_arm-eng] 7
build/core/product_config.mk:243: *** _nic.PRODUCTS.[[device/blu/Life_One_X2_Mini/full_Life_One_X2_Mini.mk]]: "frameworks/native/build/phone-xxhdpi-4096-dalvik-heap.mk" does not exist. Stop.
Device Life_One_X2_Mini not found. Attempting to retrieve device repository from LineageOS Github (http://github.com/LineageOS).
Repository for Life_One_X2_Mini not found in the LineageOS Github repository list. If this is in error, you may need to manually add it to your local_manifests/roomservice.xml.
build/core/product_config.mk:243: *** _nic.PRODUCTS.[[device/blu/Life_One_X2_Mini/full_Life_One_X2_Mini.mk]]: "frameworks/native/build/phone-xxhdpi-4096-dalvik-heap.mk" does not exist. Stop.
** Don't have a product spec for: 'full_Life_One_X2_Mini'
** Do you have the right repo manifest?
could this be wrong?
Code:
#Dalvk Heap's
$(call inherit-product, frameworks/native/build/phone-xxhdpi-4096-dalvik-heap.mk)
$(call inherit-product, frameworks/native/build/phone-xxhdpi-4096-hwui-memory.mk)
Time to chase the errors.
thanks for helping me.
srgrusso said:
Ok i have made it a little further. now when I do lunch I get the following error
Code:
You're building on Linux
Breakfast menu... pick a combo:
1. aosp_arm64-eng 9. lineage_espresso3g-userdebug 17. lineage_toro-userdebug
2. aosp_arm-eng 10. lineage_espressowifi-userdebug 18. m_e_arm-userdebug
3. aosp_mips64-eng 11. lineage_ks01lte-userdebug 19. mini_emulator_arm64-userdebug
4. aosp_mips-eng 12. lineage_maguro-userdebug 20. mini_emulator_mips-userdebug
5. aosp_x86_64-eng 13. lineage_manta-userdebug 21. mini_emulator_x86_64-userdebug
6. aosp_x86-eng 14. lineage_mondrianwifi-userdebug 22. mini_emulator_x86-userdebug
7. full_Life_One_X2_Mini-userdebug 15. lineage_roth-userdebug
8. full_P780-userdebug 16. lineage_toroplus-userdebug
... and don't forget the bacon!
Which would you like? [aosp_arm-eng] 7
build/core/product_config.mk:243: *** _nic.PRODUCTS.[[device/blu/Life_One_X2_Mini/full_Life_One_X2_Mini.mk]]: "frameworks/native/build/phone-xxhdpi-4096-dalvik-heap.mk" does not exist. Stop.
Device Life_One_X2_Mini not found. Attempting to retrieve device repository from LineageOS Github (http://github.com/LineageOS).
Repository for Life_One_X2_Mini not found in the LineageOS Github repository list. If this is in error, you may need to manually add it to your local_manifests/roomservice.xml.
build/core/product_config.mk:243: *** _nic.PRODUCTS.[[device/blu/Life_One_X2_Mini/full_Life_One_X2_Mini.mk]]: "frameworks/native/build/phone-xxhdpi-4096-dalvik-heap.mk" does not exist. Stop.
** Don't have a product spec for: 'full_Life_One_X2_Mini'
** Do you have the right repo manifest?
could this be wrong?
Code:
#Dalvk Heap's
$(call inherit-product, frameworks/native/build/phone-xxhdpi-4096-dalvik-heap.mk)
$(call inherit-product, frameworks/native/build/phone-xxhdpi-4096-hwui-memory.mk)
Time to chase the errors.
thanks for helping me.
Click to expand...
Click to collapse
Ok I change "$(call inherit-product, frameworks/native/build/phone-xxhdpi-4096-dalvik-heap.mk)" to "$(call inherit-product, frameworks/native/build/phone-xxxhdpi-4096-dalvik-heap.mk)"
and changed "$(call inherit-product, frameworks/native/build/phone-xxhdpi-4096-hwui-memory.mk)" to "$(call inherit-product, frameworks/native/build/phone-xxxhdpi-4096-hwui-memory.mk)"
and here is my final result:
Code:
Trying dependencies-only mode on a non-existing device tree?
============================================
PLATFORM_VERSION_CODENAME=REL
PLATFORM_VERSION=6.0.1
LINEAGE_VERSION=
TARGET_PRODUCT=full_Life_One_X2_Mini
TARGET_BUILD_VARIANT=userdebug
TARGET_BUILD_TYPE=release
TARGET_BUILD_APPS=
TARGET_ARCH=arm64
TARGET_ARCH_VARIANT=armv8-a
TARGET_CPU_VARIANT=generic
TARGET_2ND_ARCH=arm
TARGET_2ND_ARCH_VARIANT=armv7-a-neon
TARGET_2ND_CPU_VARIANT=cortex-a53
HOST_ARCH=x86_64
HOST_OS=linux
HOST_OS_EXTRA=Linux-4.14.13-1-ARCH-x86_64-with-arch
HOST_BUILD_TYPE=release
BUILD_ID=MOI10E
OUT_DIR=/mnt/UserData/Projects/lineageos-13/android/system/out
============================================
I think I'm looking good for now
Thank you for your help. I'll post if I get anymore errors I can't figure out.
I'm stuck on this error.
Code:
make: *** No rule to make target '/.txt', needed by '/mnt/UserData/Projects/lineageos-13-blox2-mini/android/system/out/target/common/obj/PACKAGING/checkpublicapi-cm-last-timestamp'. Stop.
Edit: I got around this error by disabling api checking
srgrusso said:
I am trying to build LineageOS 13 for my device and I'm following this guide: https://forum.xda-developers.com/chef-central/android/how-to-build-lineageos-14-1-t3551484
I'm using this device tree: https://github.com/vampirefo/android_device_blu_Life_One_X2_Mini
and this vendor tree: https://github.com/vampirefo/android_vendor_blu_Life_One_X2_Mini
I do not have the kernel source and I am hoping I can use a precompiled kernel. I have synced the LineageOS 13.0 repo and synced the device and vendor tree.
this is my output for "source build/envsetup.sh"
When I run the command "croot" I get "command not found". I assume it's the same as doing "cd ~/android/system". When I run the command "breakfast full_Life_One_X2_Mini" I get the following error:
I'm missing something obvious but I can't see it. I'm building this in Arch Linux
Thanks
Click to expand...
Click to collapse
vendor should be lineage instead of cm. Check you make file.

Categories

Resources