[Q] How to fix config makefile error - Android Q&A, Help & Troubleshooting

So I have been plagued by this error for the last day or so. I'm trying to build the latest Dirty Unicorns (v5.0) for the T-Mobile Samsung Vibrant (vibrantmtd). I cloned the device tree and extracted the proprietary files from the device.
I am trying to use the "breakfast" command but I keep getting this error.
Code:
@ubuntu:~/du$ . build/envsetup.sh
including device/samsung/jfltevzw/vendorsetup.sh
including device/samsung/t0lte/vendorsetup.sh
including device/samsung/p3100/vendorsetup.sh
including device/samsung/l900/vendorsetup.sh
including device/samsung/jflteatt/vendorsetup.sh
including device/samsung/vibrantmtd/vendorsetup.sh
including device/samsung/p3110/vendorsetup.sh
including device/samsung/jfltespr/vendorsetup.sh
including device/samsung/manta/vendorsetup.sh
including device/lge/hammerhead/vendorsetup.sh
including device/generic/armv7-a-neon/vendorsetup.sh
including device/generic/mips/vendorsetup.sh
including device/generic/x86/vendorsetup.sh
including vendor/du/vendorsetup.sh
including sdk/bash_completion/adb.bash
@ubuntu:~/du$ breakfast vibrantmtd
including vendor/du/vendorsetup.sh
build/core/product_config.mk:222: *** Can not locate config makefile for product "du_vibrantmtd". Stop.
** Don't have a product spec for: 'du_vibrantmtd'
** Do you have the right repo manifest?
I have checked multiple times and have even edited the du_vibrantmtd.mk file. I created that file by using the cm.mk file that was cloned via the local manifest. Can someone please help me build the rom?

theabnormalguy said:
So I have been plagued by this error for the last day or so. I'm trying to build the latest Dirty Unicorns (v5.0) for the T-Mobile Samsung Vibrant (vibrantmtd). I cloned the device tree and extracted the proprietary files from the device.
I am trying to use the "breakfast" command but I keep getting this error.
Code:
[email protected]:~/du$ . build/envsetup.sh
including device/samsung/jfltevzw/vendorsetup.sh
including device/samsung/t0lte/vendorsetup.sh
including device/samsung/p3100/vendorsetup.sh
including device/samsung/l900/vendorsetup.sh
including device/samsung/jflteatt/vendorsetup.sh
including device/samsung/vibrantmtd/vendorsetup.sh
including device/samsung/p3110/vendorsetup.sh
including device/samsung/jfltespr/vendorsetup.sh
including device/samsung/manta/vendorsetup.sh
including device/lge/hammerhead/vendorsetup.sh
including device/generic/armv7-a-neon/vendorsetup.sh
including device/generic/mips/vendorsetup.sh
including device/generic/x86/vendorsetup.sh
including vendor/du/vendorsetup.sh
including sdk/bash_completion/adb.bash
[email protected]:~/du$ breakfast vibrantmtd
including vendor/du/vendorsetup.sh
build/core/product_config.mk:222: *** Can not locate config makefile for product "du_vibrantmtd". Stop.
** Don't have a product spec for: 'du_vibrantmtd'
** Do you have the right repo manifest?
I have checked multiple times and have even edited the du_vibrantmtd.mk file. I created that file by using the cm.mk file that was cloned via the local manifest. Can someone please help me build the rom?
Click to expand...
Click to collapse
Same here for the Galaxy s5...

Related

Atrix 4G compile error!

So while trying to compile an Atrix rom from source after typing:
". build/envsetup.sh && brunch olympus"
I get an error:
. build/envsetup.sh && brunch olympus
including device/motorola/olympus/vendorsetup.sh
including device/moto/stingray/vendorsetup.sh
including device/moto/wingray/vendorsetup.sh
including device/samsung/maguro/vendorsetup.sh
including device/samsung/toro/vendorsetup.sh
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/*/olympus/cm.mk]]: "device/*/olympus/cm.mk" does not exist. Stop.
Device olympus not found. Attempting to retrieve device repository from CyanogenMod Github (http://github.com/CyanogenMod).
Found repository: android_device_motorola_olympus
Duplicate device 'CyanogenMod/android_device_motorola_olympus' found in local_manifest.xml.
build/core/product_config.mk:189: *** _nic.PRODUCTS.[[device/*/olympus/cm.mk]]: "device/*/olympus/cm.mk" does not exist. Stop.
** Don't have a product spec for: 'cm_olympus'
** Do you have the right repo manifest?
No such item in brunch menu. Try 'breakfast'
I've tried "breakfast" to no avail. I've used multiple guides in trying to do this and always the same outcome... If it helps you can assume I've ran all the same steps (but for the Atrix of course) as in this guide: http://forum.xda-developers.com/showthread.php?t=1188298
Disclaimer: I don't know a ton about this stuff yet either. I have yet to execute a successful build for the Atrix.
Have you looked at http://wiki.cyanogenmod.com/wiki/Motorola_Atrix_4G:_Compile_CyanogenMod_(Linux) and http://forum.xda-developers.com/showthread.php?t=1442842 ? Are you trying to build CM7 or CM9? If it's CM9 then I don't think the Atrix specific bits are in the CM github. You'll have to overlay joker or turl's github on top of it.
Try this
Davidrd91 said:
So while trying to compile an Atrix rom from source after typing:
". build/envsetup.sh && brunch olympus"
I get an error:
. build/envsetup.sh && brunch olympus
including device/motorola/olympus/vendorsetup.sh
including device/moto/stingray/vendorsetup.sh
including device/moto/wingray/vendorsetup.sh
including device/samsung/maguro/vendorsetup.sh
including device/samsung/toro/vendorsetup.sh
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/*/olympus/cm.mk]]: "device/*/olympus/cm.mk" does not exist. Stop.
Device olympus not found. Attempting to retrieve device repository from CyanogenMod Github (http://github.com/CyanogenMod).
Found repository: android_device_motorola_olympus
Duplicate device 'CyanogenMod/android_device_motorola_olympus' found in local_manifest.xml.
build/core/product_config.mk:189: *** _nic.PRODUCTS.[[device/*/olympus/cm.mk]]: "device/*/olympus/cm.mk" does not exist. Stop.
** Don't have a product spec for: 'cm_olympus'
** Do you have the right repo manifest?
No such item in brunch menu. Try 'breakfast'
I've tried "breakfast" to no avail. I've used multiple guides in trying to do this and always the same outcome... If it helps you can assume I've ran all the same steps (but for the Atrix of course) as in this guide: http://forum.xda-developers.com/showthread.php?t=1188298
Click to expand...
Click to collapse
From your device tree I'm assuming you're trying to build CM9.
Try using the ADT repo instead of the CyanogenMod one. The one you're using does not have a cm.mk file, which is what I think is giving you your error. Can't make something if the instructions aren't there.
Compare the contents of the CM one to the ADT one and you'll see there's a lot of stuff missing.
Also, you may want to try checking out the building CM9 from source link lautern posted above. You'll most likely get better feedback / more experienced eyes to help you out.
Thanks guys I'll look into both. And yes it is CM9 I'm trying to compile, I've been using Jokersax's repo and the CM ics branch to compile but i got a little confused between the device files and proprietary. I've started from scratch to make sure everything is fresh and hopefully this time all will go well.
I'll post again when this is all done syncing and I test what I've compiled =]
This time it wouldn't find the "modules". By this I'm assuming it meant the Wi-Fi modules so I tried to compile a kernel. Which failed as well. I don't have the cmd prompt logs to post but I just wanted to ask if you guys know of any guides specific for compiling Cm9 for an Atrix? I'm assuming that its a bit more difficult because the Atrix doesn't come with ics.
Or any guides on how to do so using Jokersax/turls repos?
Thanks in advance everyone
Sent from my MB860
Davidrd91 said:
This time it wouldn't find the "modules". By this I'm assuming it meant the Wi-Fi modules so I tried to compile a kernel. Which failed as well. I don't have the cmd prompt logs to post but I just wanted to ask if you guys know of any guides specific for compiling Cm9 for an Atrix? I'm assuming that its a bit more difficult because the Atrix doesn't come with ics.
Or any guides on how to do so using Jokersax/turls repos?
Thanks in advance everyone
Sent from my MB860
Click to expand...
Click to collapse
See previous suggestion:
lauterm said:
Disclaimer: I don't know a ton about this stuff yet either. I have yet to execute a successful build for the Atrix.
Have you looked at http://wiki.cyanogenmod.com/wiki/Motorola_Atrix_4G:_Compile_CyanogenMod_(Linux) and http://forum.xda-developers.com/showthread.php?t=1442842 ? Are you trying to build CM7 or CM9? If it's CM9 then I don't think the Atrix specific bits are in the CM github. You'll have to overlay joker or turl's github on top of it.
Click to expand...
Click to collapse
Building CM9
Building CM7 (linked in above quote)
Read both threads. The CM7 one will probably be of more help to you (it has more troubleshooting discussion). Each has links to other useful guides.
So I've read through both posts several times, and now that I have a new laptop its around the 6th time (not exaggerating) that I set up Ubuntu and the "build enviroment" from scratch.
This time though my problem seems to be with java >_<...
build/core/config.mk:269: *** Error: could not find jdk tools.jar, please install JDK6, which you can download from java.sun.com. Stop.
Device olympus not found. Attempting to retrieve device repository from CyanogenMod Github (http://github.com/CyanogenMod).
Found repository: android_device_motorola_olympus
Duplicate device 'CyanogenMod/android_device_motorola_olympus' found in local_manifest.xml.
build/core/config.mk:269: *** Error: could not find jdk tools.jar, please install JDK6, which you can download from java.sun.com. Stop.
** Don't have a product spec for: 'generic_olympus'
** Do you have the right repo manifest?
I have the correct JDK installed (sun not openjdk) version 1.6.0_31, and looking through the folders I can find the tools.jar file in the directory, I've even tried to point it out by putting:
# Variable ANDROID_JAVA_HOME
ANDROID_JAVA_HOME=/usr/lib/jvm/jdk1.6.0_31/lib
export ANDROID_JAVA_HOME
into my .bashrc. Also tried changing the ANDROID_JAVA_HOME variable to the HOST_JAVA_TOOLS_JAR variable which seems to be what the build/core/config.mk file cant find.... Yet still no hope ... as of now Im not even worried about the "Device Olympus not found" error as I've had it before. Dont really know how I fixed it but atleast I know I can lol...
Any help would be greatly appreciated, thanks =]
Also I have made sure to update the java alternatives and java -version returns
java -version
java version "1.6.0_31"
Java(TM) SE Runtime Environment (build 1.6.0_31-b04)
Java HotSpot(TM) 64-Bit Server VM (build 20.6-b01, mixed mode)
Which to my knowledge is correct?
Ok so I fixed the Java problem, and got another Java problem. I'll post all the fixes I find in case others need help with errors. If you know some C programming (which I dont but was
linked to in one of the threads you guys sent me to ) most errors will have
"build/core/config.mk:269"
The number at the end corresponds to the line 269 in the config.mk file found in build/core directory in your source folder. Going to that line I saw that it ran a script:
"find-jdk-tools-jar.sh"
After doing a search for it I saw that the script in turn looked for the tools.jar file using the variable ANDROID_JAVA_HOME.
"$ANDROID_JAVA_HOME/lib/tools.jar"
So I added this at the end of my ~/.bashrc
"# Variable ANDROID_JAVA_HOME
ANDROID_JAVA_HOME=/usr/lib/jvm/jdk1.6.0_31
export ANDROID_JAVA_HOME "
If you look at my last post you'll see I added "/lib" to the end of "ANDROID_JAVA_HOME=..." so the script was looking for:
"ANDROID_JAVA_HOME=/usr/lib/jvm/jdk1.6.0_31/lib/lib/tools.jar"
^ 2 /libs... that folder doesn't exist.
Now it tells me I'm using the incorrect version of Java. (it says I have 1.6.0_31 and the correct version is just 1.6 or something) I've fixed this before so I'll post again when I see exactly how I did it >_< lol.
Edit: Just ran "sudo apt-get install openjdk-6-jdk" then ran build>lunch>olympus and it's building as we speak.

Porting UT to Sensation

Hi Sorry if it's wrong section for this question.
I started to port UT to Sensation, based on CM11. I've synced all required repositories:
device_htc_sensation
device_htc_msm8660-common
kernel_htc_msm8660
+ pyramid vendor.
Then I run those commands:
Code:
$ . build/envsetup.sh
including device/generic/x86/vendorsetup.sh
including device/generic/armv7-a-neon/vendorsetup.sh
including device/lge/mako/vendorsetup.sh
including device/lge/hammerhead/vendorsetup.sh
including device/htc/pyramid/vendorsetup.sh
including device/asus/flo/vendorsetup.sh
including device/asus/deb/vendorsetup.sh
including device/asus/tilapia/vendorsetup.sh
including device/asus/grouper/vendorsetup.sh
including device/samsung/manta/vendorsetup.sh
including vendor/cm/vendorsetup.sh
including sdk/bash_completion/adb.bash
$ lunch
You're building on Linux
Lunch menu... pick a combo:
1. aosp_arm-eng
2. aosp_x86-eng
3. aosp_mips-eng
4. vbox_x86-eng
5. mini_x86-userdebug
6. mini_armv7a_neon-userdebug
7. aosp_mako-userdebug
8. aosp_hammerhead-userdebug
9. cm_pyramid-userdebug
[...]
Which would you like? [aosp_arm-eng] 9
build/core/product_config.mk:222: *** Can not locate config makefile for product "cm_pyramid". Stop.
** Don't have a product spec for: 'cm_pyramid'
** Do you have the right repo manifest?
I've checked AndroidProducts.mk etc. and everything looks fine. I have no idea what to do more to fix this.
Could someone help me?
Thanks in advance!

Getting Errors while Building AOSPA

Respected Developers,
I am learning to build Rom from Source. So, I wanted to build a rom from the AOSPA Source. Source was completely downloaded but when I am trying to build the output. I am getting the following errors. Can anyone help me please.
Building AOSPA 5.0 for DEVICE
Start time: Wed Jul 8 22:49:52 IST 2015
Setting up the environment
including device/generic/mini-emulator-x86/vendorsetup.sh
including device/generic/mini-emulator-mips/vendorsetup.sh
including device/generic/mini-emulator-x86_64/vendorsetup.sh
including device/generic/mini-emulator-armv7-a-neon/vendorsetup.sh
including device/generic/mini-emulator-arm64/vendorsetup.sh
including vendor/pa/vendorsetup.sh
including sdk/bash_completion/adb.bash
Lunching DEVICE (Including dependencies sync)
ls: cannot access vendor/pa/products/pa_DEVICE.mk: No such file or directory
build/core/product_config.mk:233: *** Can not locate config makefile for product "pa_DEVICE". Stop.
your device can't be found in device sources...
Traceback (most recent call last):
File "build/tools/roomservice.py", line 317, in <module>
fetch_dependencies(device)
File "build/tools/roomservice.py", line 270, in fetch_dependencies
raise Exception("ERROR: could not find your device "
Exception: ERROR: could not find your device folder location, bailing out
** Don't have a product spec for: 'pa_DEVICE'
** Do you have the right repo manifest?
Starting compilation
ls: cannot access vendor/pa/products/pa_DEVICE.mk: No such file or directory
build/core/product_config.mk:233: *** Can not locate config makefile for product "aosp_x86_64". Stop.
Total time elapsed: 0 minutes (2.299871122 seconds)
Click to expand...
Click to collapse

[Build Help] Omnirom build error

Trying to build Omni Rom for Nexus 6P error is as follows.
[email protected]:~/Omnirom$ . build/envsetup.shincluding 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 device/huawei/angler/vendorsetup.sh
including sdk/bash_completion/adb.bash
[email protected]:~/Omnirom$ brunch angler
make: *** build/target/board/generic: Is a directory. Stop.
WARNING: Trying to fetch a device that's already there
make: *** build/target/board/generic: Is a directory. Stop.
** Don't have a product spec for: 'omni_angler'
** Do you have the right repo manifest?
No such item in brunch menu. Try 'breakfast'
Sources im using are -
https://github.com/Evasii0n/android_device_huawei_angler
https://github.com/Evasii0n/android_kernel_huawei_angler
https://github.com/Evasii0n/vendor_huawei_angler

Help with building RR nougat (for h811)

Hello,
I am trying to build RR nougat, but when i get to building the rom, i get this:
[email protected]:/mnt/e/rombuilding$ . build/envsetup.sh
including device/generic/mini-emulator-arm64/vendorsetup.sh
including device/generic/mini-emulator-armv7-a-neon/vendorsetup.sh
including device/generic/mini-emulator-x86_64/vendorsetup.sh
including device/generic/mini-emulator-x86/vendorsetup.sh
including device/lge/h811/vendorsetup.sh
-bash: vendor/cm/tools/rr_variant.sh: No such file or directory
[email protected]:/mnt/e/rombuilding$
What am i missing? did i misplace something? Please help

Categories

Resources