[DEVS NEEDED] Building Pixel Experience - Moto Z Play Questions & Answers

Hi, this is the first time I try to build a custom ROM. I'm interested in building Pixel Experience for addison. I set up build environment, ran repo sync, . build/envsetup.sh, breakfast addison and got this error:
Code:
build/core/product_config.mk:236: *** Can not locate config makefile for product "addison". Stop.
build/core/product_config.mk:236: *** Can not locate config makefile for product "addison". Stop.
Device addison not found. Attempting to retrieve device repository from PixelExperience-Devices Github ([url]http://github.com/PixelExperience-Devices[/url]).
Repository for addison not found in the PixelExperience-Devices Github repository list.
If this is in error, you may need to manually add it to your .repo/local_manifests/pixel.xml
build/core/product_config.mk:236: *** Can not locate config makefile for product "addison". Stop.
** Don't have a product spec for: 'addison'
** Do you have the right repo manifest?
So I renamed my roomservice.xml to pixel.xml but nothing changed. It contains this:
Code:
<?xml version="1.0" encoding="UTF-8"?>
<manifest>
<project name="Alberto97/android_device_motorola_addison" path="device/motorola/addison" remote="github" revision="oreo-mr1" />
<project name="Alberto97/android_kernel_motorola_msm8953" path="kernel/motorola/msm8953" remote="github" revision="oreo-mr1" />
<project name="Alberto97/proprietary_vendor_motorola" path="vendor/motorola" remote="github" revision="oreo-mr1-addison" />
</manifest>
I found out that . build/envsetup.sh looks for a file called vendorsetup.sh which is not present in @Alberto97 's device tree, so I manually created it, placed it in device/motorola/addison and put this:
Code:
add_lunch_combo aosp_addison-userdebug
add_lunch_combo aosp_addison-user
Now, . build/envsetup.sh gives (before it gave nothing):
Code:
including device/motorola/addison/vendorsetup.sh
including vendor/aosp/vendorsetup.sh
And lunch aosp_addison-userdebug gives:
Code:
Looking for dependencies
============================================
CUSTOM_VERSION=
TARGET_BUILD_VARIANT=userdebug
TARGET_ARCH=arm64
TARGET_ARCH_VARIANT=armv8-a
TARGET_CPU_VARIANT=cortex-a53
BUILD_ID=OPM1.171019.013
============================================
But breakfast addison and brunch addison give the same error mentioned above
Code:
build/core/product_config.mk:236: *** Can not locate config makefile for product "addison". Stop.
build/core/product_config.mk:236: *** Can not locate config makefile for product "addison". Stop.
Device addison not found. Attempting to retrieve device repository from PixelExperience-Devices Github ([url]http://github.com/PixelExperience-Devices[/url]).
Repository for addison not found in the PixelExperience-Devices Github repository list.
If this is in error, you may need to manually add it to your .repo/local_manifests/pixel.xml
build/core/product_config.mk:236: *** Can not locate config makefile for product "addison". Stop.
** Don't have a product spec for: 'addison'
** Do you have the right repo manifest?
Any ideas?

I tried running brunch aosp_addison-userdebug instead of brunch addison and got this:
Code:
including vendor/aosp/vendorsetup.sh
Looking for dependencies
============================================
CUSTOM_VERSION=
TARGET_BUILD_VARIANT=userdebug
TARGET_ARCH=arm64
TARGET_ARCH_VARIANT=armv8-a
TARGET_CPU_VARIANT=cortex-a53
BUILD_ID=OPM1.171019.013
============================================
============================================
TARGET_BUILD_VARIANT=userdebug
TARGET_ARCH=arm64
TARGET_ARCH_VARIANT=armv8-a
TARGET_CPU_VARIANT=cortex-a53
BUILD_ID=OPM1.171019.013
============================================
environment variables changed value:
CC_WRAPPER ("" -> "/usr/bin/ccache")
forcing build manifest regeneration
[2/2] bootstrap /home/ignacio/pixel/out/soong/.minibootstrap/build.ninja.in
[1/1] /home/ignacio/pixel/out/soong/.b...pixel/out/soong/.bootstrap/build.ninja
[52/53] glob vendor/*/*/*/*/*/*/Android.bp
[12/12] /home/ignacio/pixel/out/soong/...me/ignacio/pixel/out/soong/build.ninja
/home/ignacio/pixel/out/build-aosp_addison.ninja is missing, regenerating...
Clean step: rm -rf /home/ignacio/pixel/out/target/product/addison/system/etc/audio_policy.conf
Clean step: rm -rf /home/ignacio/pixel/out/target/product/addison/system/etc/audio_policy.conf
build/core/base_rules.mk:238: error: vendor/qcom/opensource/dataservices/rmnetctl/src: MODULE.TARGET.SHARED_LIBRARIES.librmnetctl already defined by device/motorola/addison/rmnetctl/src.
23:10:23 ckati failed with: exit status 1
build/core/main.mk:21: recipe for target 'run_soong_ui' failed
make: *** [run_soong_ui] Error 1
real 8m45.232s
user 1m57.032s
sys 0m13.408s
I wonder why CUSTOM_VERSION= is empty

Did you make the ROM?

Sorry it's been over a year, but I just found this thread here. I'm not working on the Z, but from what PixelExperience shows you won't need to run brunch or anything else.
Once you run lunch and it builds successfully run:
Code:
make -jx
where x is the amount of cpu threads you want to devote the make process to.
So if you have 4 cpu cores, but 8 threads, you can run:
make -j10 to speed up the process.
Usually the general amount to use is:
make -j4 so it doesn't bog down your computer if you have an i7/i5 equivalent processor.

Related

[TUT][CM9] Download and compile CM9 for the HTC Wildfire S using Ubuntu 11.10

TUTORIAL:How to build CM9 from source using Ubuntu 11.10
NOTE: I am always changing this tutorial to be more advance and easier, what you see one day may be changed the next so be careful!
1. Grab yourself a copy of 64-bit Ubuntu 11.10 - You can try and use 12.04 but it is very unstable and extra steps are needed.
2. In terminal type in the following lines to grab the required sources for donwloading the packages:
Code:
sudo add-apt-repository ppa:ferramroberto/java; sudo apt-get update
3. Type in the following into terminal, this allows ubuntu to gather the needed packages to build CM9. You will be asked for a password, if you get a question asking if you would like to install all of the packages type Y and hit enter.
Code:
sudo apt-get install git-core gnupg flex bison gperf libesd0-dev libwxgtk2.6-dev squashfs-tools build-essential zip curl libncurses5-dev zlib1g-dev sun-java6-jdk pngcrush schedtool g++-multilib lib32z1-dev lib32ncurses5-dev libc6-dev ia32-libs x11proto-core-dev lib32z-dev mingw32 tofrodos python-markdown python python-lunch libxml2-utils xsltproc libx11-dev:i386
4. To download a needed stack on top of git for developing CM we need to type the following command...
Code:
mkdir ~/bin; curl [url]https://dl-ssl.google.com/dl/googlesource/git-repo/repo[/url] > ~/bin/repo; chmod a+x ~/bin/repo
5. Download this: http://dl.google.com/android/android-sdk_r18-linux.tgz and this: http://dl.google.com/android/ndk/android-ndk-r7c-linux-x86.tar.bz2 - These are the NDK and SDK, native development kit and software development kit.
6. Open your file manger and make a folder inside your home folder, call it "android".
7. Make the folders "sdk" and "ndk" inside it
8. Extract all of the stuff from "android-ndk-r7c-linux-x86.tar.bz2" into NDK and all the stuff from "android-sdk_r18-linux.tgz" to SDK.
10. Type in the following line to open a text document
Code:
sudo gedit .bashrc
11. Add the following lines to the bottom of the script - this changes you "path" so you can run scrips from these places as normal linux commands anywhere else on your system
Code:
# Android Software
export PATH=${PATH}:~/android/sdk/tools
export PATH=${PATH}:~/android/sdk/platform-tools
export PATH=${PATH}:~/android/ndk/android-ndk-r7/toolchains/arm-eabi-4.4.0/prebuilt/linux-x86/bin
export PATH=${PATH}:~/bin
13. Save and exit, then type the following lines to make a folder and bring you into it
Code:
mkdir -p ~/cyanogenmod/system; cd ~/cyanogenmod/system
14. Now type in these next lines to set another (fallback) path and inizalize the CM repo in that folder
Code:
PATH=~/bin:$PATH; repo init -u git://github.com/CyanogenMod/android.git -b ics
15. Now enter the following command
Code:
gedit .repo/local_manifest.xml
to open up another text document, in this document - it will be empty, add these lines then save and exit
Code:
<?xml version="1.0" encoding="UTF-8"?>
<manifest>
<remote name="cryptomilk"
fetch="git://git.cryptomilk.org/" />
<project name="CyanogenMod/android_device_htc_common" path="device/htc/common" revision="refs/heads/gingerbread" />
<project name="projects/marvel/android_device_htc_marvel.git" path="device/htc/marvel" remote="cryptomilk" />
<project name="projects/marvel/android_vendor_htc_proprietary.git" path="vendor/htc" remote="cryptomilk" />
<project name="projects/marvel/kernel_htc_msm7227.git" path="kernel/htc/msm7277" remote="cryptomilk" />
<project name="benjamingwynn/cm9-marvel-flaming-fixes" />
</manifest>
16. If you do not wish to download pointless files for different devices then type in
Code:
gedit .repo/manifest.xml
and delete the following lines (thanks to dudeman1996 for this protip)
Code:
<project path="device/moto/common" name="CyanogenMod/android_device_moto_common" />
<project path="device/moto/stingray" name="CyanogenMod/android_device_moto_stingray" />
<project path="device/moto/wingray" name="CyanogenMod/android_device_moto_wingray" />
aswell as these other lines
Code:
<project path="device/samsung/maguro" name="CyanogenMod/android_device_samsung_maguro" />
<project path="device/samsung/p5-common" name="CyanogenMod/android_device_samsung_p5-common" />
<project path="device/samsung/toro" name="CyanogenMod/android_device_samsung_toro" />
<project path="device/samsung/tuna" name="CyanogenMod/android_device_samsung_tuna" />
17. Now to preform the first sync with CM type in the following.. -- This will take a long time! so don't be worried if you think it's taking a while. If for whatever reason you need to stop the sync then hit CTRL+Z on your keyboard.
Code:
repo sync
18. You must now setup the vendor, type:
Code:
./vendor/cm/get-prebuilts
19. Set up the environment by typing the following to tell ubuntu that you are going to be making CM9.
Code:
source build/envsetup.sh; lunch cm_marvel-eng
20. Type the following to prepare use the cache for stuff
Code:
export USE_CCACHE=1
21. Now, finally build CM9. To do this I always times the number of cores in your CPU by two. For example on a 4 core machine I would put 8. Once you have worked that out type the following where xx is your number.
Code:
make -jxx bacon
22. If sucessful, you will get something like this:
Code:
Package complete: /home/benjamin/cyanogenmod/system/out/target/product/marvel/update-cm-9.0.0-RC0-marvel-UNOFFICIAL-signed.zip
Go to that folder and copy and paste the zip file above to your phone, install in recovery.
FAQ
People like asking the same god damn questions over and over again.
Q. Could you please help me it says the bits
A. That doesn't make any sense. Try and copy some lines from terminal
Q. Could you help please, It says these lines when I "repo sync"
Code:
Fetching projects: 100% (249/249), done.
Syncing work tree: 95% (237/249) fatal: cannot create directory at 'eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/editors/layout/descriptors': No space left on device
Traceback (most recent call last):
File "/home/benjamin/cyanogenmod/system/.repo/repo/main.py", line 385, in
_Main(sys.argv[1:])
File "/home/benjamin/cyanogenmod/system/.repo/repo/main.py", line 365, in _Main
result = repo._Run(argv) or 0
File "/home/benjamin/cyanogenmod/system/.repo/repo/main.py", line 137, in _Run
result = cmd.Execute(copts, cargs)
File "/home/benjamin/cyanogenmod/system/.repo/repo/subcmds/sync.py", line 467, in Execute
project.Sync_LocalHalf(syncbuf)
File "/home/benjamin/cyanogenmod/system/.repo/repo/project.py", line 1027, in Sync_LocalHalf
self._InitWorkTree()
File "/home/benjamin/cyanogenmod/system/.repo/repo/project.py", line 1814, in _InitWorkTree
raise GitError("cannot initialize work tree")
error.GitError: cannot initialize work tree
A. Your disk drive is full. Free some stuff up and try again
Q. Could you help please...
Code:
============================================
Checking build tools versions...
************************************************************
You are attempting to build with an unsupported version
of java.
Your version is: java version "1.6.0_24".
The correct version is: Java SE 1.6.
Please follow the machine setup instructions at
http://source.android.com/source/download.html
************************************************************
grep: build/target/board/generic/recovery.fstab: No such file or directory
build/core/java.mk:20: *** dalvik/dexgen: Invalid LOCAL_SDK_VERSION '4' Choices are: current . Stop.
A. You have a slightly different version of Java for some reason, try the following...
Code:
sudo -i
[[enter password]]
apt-get remove openjdk-6-jdk
apt-get remove sun-java6-jdk
add-apt-repository "deb http://archive.canonical.com/ lucid partner"
apt-get update
apt-get upgrade
sudo apt-get install sun-java6-jdk
sudo update-alternatives --config java
[[select the sun one]]
exit
if that doesn't work then try
Q. I downloaded Ubuntu 12.04 instead, it's not working! Do you have a quick work-around?
A. First type in
Code:
sudo apt-get install git-core gnupg flex bison gperf build-essential \
zip curl libc6-dev libncurses5-dev:i386 x11proto-core-dev \
libx11-dev:i386 libreadline6-dev:i386 libgl1-mesa-dev:i386 \
g++-multilib mingw32 openjdk-6-jdk tofrodos python-markdown \
libxml2-utils xsltproc zlib1g-dev:i386
to get the extra packages.
Then type "sudo gedit /usr/include/linux/usb/ch9.h" and on line 592 replace
Code:
return __le16_to_cpu(epd->wMaxPacketSize);
with
Code:
# return le16_to_cpu(epd->wMaxPacketSize);
return __le16_to_cpu(epd->wMaxPacketSize);
Q. I get this error
Code:
[email protected]:~/cyanogenmod/system$ lunch cm_marvel-eng
build/core/product_config.mk:189: *** _nic.PRODUCTS.[[device/*/marvel/cm.mk]]: "device/*/marvel/cm.mk" does not exist. Stop.
Device marvel not found. Attempting to retrieve device repository from CyanogenMod Github (http://github.com/CyanogenMod).
Repository for marvel not found in the CyanogenMod Github repository list. If this is in error, you may need to manually add it to your local_manifest.xml.
build/core/product_config.mk:189: *** _nic.PRODUCTS.[[device/*/marvel/cm.mk]]: "device/*/marvel/cm.mk" does not exist. Stop.
A. Make sure you followed the instructions correctly, this is probably a misconfiguration of an XML
Q. I have a problem, do you have a fix? The following happens:
Code:
xml.parsers.expat.ExpatError: XML or text declaration not at start of entity: line 1, column 2
A. I had that problem (in fact I have had all of these faq problems when building CM but I solved em') - type "sudo gedit .repo/local_manifest.xml" into terminal and change the first line to "" without spaces at the start
Q. I get
Code:
** Don't have a product spec for: 'cm_marvel'
** Do you have the right repo manifest?
do you have a fix
A. Redo the instructions from step 20
Q. I get this very annoying error: "build/core/java.mk:20: *** dalvik/dexgen: Invalid LOCAL_SDK_VERSION '4' Choices are: current . Stop"
A. Type "rm -rf prebuilt; repo sync -l prebuilt" - credit to dudeman1996 for this find in Chinese - Credit to me for translating it into usable words from Google Translate
Q. I get a strange kernel error about cm9 prebuilt kernels
A. Use aswerth's temp patch
aswerth said:
Temp solution: Do not build the latest one.
First, delete "device/htc/marvel" folder. And then download this file and unzip it to "device/htc/marvel" BTW, Wifi works on this build too.
http://git.cryptomilk.org/projects/...s&id=673d27e36a83ec957672e336d8168f8d8196070a
Click to expand...
Click to collapse
This is the last commit before CM9 gave this error.
Q. Upon installation of packages it says that Java has no installation candiate
A. Run the following command: sudo add-apt-repository ppa:ferramroberto/java; sudo apt-get update
Compile CM afterwards
Mini tutorial: How to build CM9 after syncing, etc.
There is only two steps needed for compiling CM9 after rebooting or being away from your PC because I have formed the first into a quick load of commands:
Code:
cd ~/cyanogenmod/system; repo sync; source build/envsetup.sh; lunch cm_marvel-eng; export USE_CCACHE=1
This will do all the required steps before build but will only work if you have completed the tutorial above and succedded in a build. repo sync doesn't take long at all because all the files are already on your machine, and repo just grabs the changed ones.
Type make -jxx bacon (the same way you did in the first tutorial) to make CM9 again.
If you wish to know if CM has changed before re-building then see this link: http://git.cryptomilk.org/projects/marvel/android_device_htc_marvel.git/log/?h=ics
by doing this what will work and what not?
where output file should be?
dream707 said:
where output file should be?
Click to expand...
Click to collapse
Type "~"
Sent from my HTC Wildfire S using xda premium
effry said:
by doing this what will work and what not?
Click to expand...
Click to collapse
act like a developer and compile it to find out...
effry said:
by doing this what will work and what not?
Click to expand...
Click to collapse
you can see them from modpunk's thread
Sent from my Wildfire S using Tapatalk 2
Thanks Ben! Which README did you use, may I ask?
Going to try this later tonight, as I just cant make it work. Always end with no compiling, or CPU errors half way through compiling.
Just to help Ben with Q & A,and for you guys who needs visual help... http://www.youtube.com/watch?v=OS5c_ws_N7g&feature=youtube_gdata_player
Hope i helped...thanks button if i did.
SALUTE!!!
Sent from my HTC Wildfire S A510e using xda premium
I get this error on first steps:
Code:
....only available from another source
Package lib32z1-dev is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source
Package ia32-libs is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source
E: Package 'sun-java6-jdk' has no installation candidate
E: Package 'lib32z1-dev' has no installation candidate
E: Package 'lib32ncurses5-dev' has no installation candidate
E: Package 'lib32readline-gplv2-dev' has no installation candidate
E: Package 'lib32ncurses5-dev' has no installation candidate
E: Package 'ia32-libs' has no installation candidate
E: Unable to locate package lib32z-dev
Is this because I'm running Xubuntu?
*se-nsei. said:
I get this error on first steps:
Code:
....only available from another source
Package lib32z1-dev is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source
Package ia32-libs is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source
E: Package 'sun-java6-jdk' has no installation candidate
E: Package 'lib32z1-dev' has no installation candidate
E: Package 'lib32ncurses5-dev' has no installation candidate
E: Package 'lib32readline-gplv2-dev' has no installation candidate
E: Package 'lib32ncurses5-dev' has no installation candidate
E: Package 'ia32-libs' has no installation candidate
E: Unable to locate package lib32z-dev
Is this because I'm running Xubuntu?
Click to expand...
Click to collapse
Probably mate
Anybody who followed my guide before Tuesday 17 April at 19:56 GMT+1 must do the following command
sudo apt-get install python-lunch
however this is now updated in the original post.
Got some problems:
Code:
[email protected]:~/cyanogenmod/system$ make -j4 bacon
============================================
PLATFORM_VERSION_CODENAME=REL
PLATFORM_VERSION=4.0.4
TARGET_PRODUCT=cm_marvel
TARGET_BUILD_VARIANT=eng
TARGET_BUILD_TYPE=release
TARGET_BUILD_APPS=
TARGET_ARCH=arm
TARGET_ARCH_VARIANT=armv6-vfp
HOST_ARCH=x86
HOST_OS=linux
HOST_BUILD_TYPE=release
BUILD_ID=IMM76D
============================================
system/core/toolbox/Android.mk:98: warning: overriding commands for target `out/target/product/marvel/system/bin/lsof'
build/core/base_rules.mk:523: warning: ignoring old commands for target `out/target/product/marvel/system/bin/lsof'
build/core/Makefile:36: warning: overriding commands for target `out/target/product/marvel/system/etc/mkshrc'
build/core/base_rules.mk:523: warning: ignoring old commands for target `out/target/product/marvel/system/etc/mkshrc'
build/core/Makefile:36: warning: overriding commands for target `out/target/product/marvel/system/lib/egl/libGLES_android.so'
build/core/base_rules.mk:523: warning: ignoring old commands for target `out/target/product/marvel/system/lib/egl/libGLES_android.so'
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/htc/msm7227
build/core/tasks/kernel.mk:31: * See http://wiki.cyanogenmod.com/wiki/Integrated_kernel_building
build/core/tasks/kernel.mk:32: * for more information *
build/core/tasks/kernel.mk:33: ***************************************************************
make: *** No rule to make target `device/htc/marvel/prebuilt/kernel', needed by `out/target/product/marvel/kernel'. Stop.
make: *** Waiting for unfinished jobs....
host StaticLib: libmincrypt (out/host/linux-x86/obj/STATIC_LIBRARIES/libmincrypt_intermediates/libmincrypt.a)
host StaticLib: libhost (out/host/linux-x86/obj/STATIC_LIBRARIES/libhost_intermediates/libhost.a)
what should I do to fix it?
FiFUPL said:
Got some problems:
Code:
[email protected]:~/cyanogenmod/system$ make -j4 bacon
============================================
PLATFORM_VERSION_CODENAME=REL
PLATFORM_VERSION=4.0.4
TARGET_PRODUCT=cm_marvel
TARGET_BUILD_VARIANT=eng
TARGET_BUILD_TYPE=release
TARGET_BUILD_APPS=
TARGET_ARCH=arm
TARGET_ARCH_VARIANT=armv6-vfp
HOST_ARCH=x86
HOST_OS=linux
HOST_BUILD_TYPE=release
BUILD_ID=IMM76D
============================================
system/core/toolbox/Android.mk:98: warning: overriding commands for target `out/target/product/marvel/system/bin/lsof'
build/core/base_rules.mk:523: warning: ignoring old commands for target `out/target/product/marvel/system/bin/lsof'
build/core/Makefile:36: warning: overriding commands for target `out/target/product/marvel/system/etc/mkshrc'
build/core/base_rules.mk:523: warning: ignoring old commands for target `out/target/product/marvel/system/etc/mkshrc'
build/core/Makefile:36: warning: overriding commands for target `out/target/product/marvel/system/lib/egl/libGLES_android.so'
build/core/base_rules.mk:523: warning: ignoring old commands for target `out/target/product/marvel/system/lib/egl/libGLES_android.so'
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/htc/msm7227
build/core/tasks/kernel.mk:31: * See http://wiki.cyanogenmod.com/wiki/Integrated_kernel_building
build/core/tasks/kernel.mk:32: * for more information *
build/core/tasks/kernel.mk:33: ***************************************************************
make: *** No rule to make target `device/htc/marvel/prebuilt/kernel', needed by `out/target/product/marvel/kernel'. Stop.
make: *** Waiting for unfinished jobs....
host StaticLib: libmincrypt (out/host/linux-x86/obj/STATIC_LIBRARIES/libmincrypt_intermediates/libmincrypt.a)
host StaticLib: libhost (out/host/linux-x86/obj/STATIC_LIBRARIES/libhost_intermediates/libhost.a)
what should I do to fix it?
Click to expand...
Click to collapse
Looks like it's running fine mate.... are you sure thats the error?
benjamingwynn said:
Looks like it's running fine mate.... are you sure thats the error?
Click to expand...
Click to collapse
Idk, I cant find output file, where's it?
benjamingwynn said:
Looks like it's running fine mate.... are you sure thats the error?
Click to expand...
Click to collapse
There isn't "prebuilt" folder on "device/htc/marvel" in modpunk's latest kernel update. I'm having the same issue. Maybe we need to build kernel too. Are you sure that tutorial worked on you ben?
aswerth said:
There isn't "prebuilt" folder on "device/htc/marvel" in modpunk's latest kernel update. I'm having the same issue. Maybe we need to build kernel too. Are you sure that tutorial worked on you ben?
Click to expand...
Click to collapse
No this has been recently causing a problem... Working on a fix now...
Sent from my HTC Wildfire S using xda premium
benjamingwynn said:
20. Type "gedit .repo/local_mainfest.xml" and enter the following lines
Click to expand...
Click to collapse
There should be local_manifest.xml
FiFUPL said:
There should be local_manifest.xml
Click to expand...
Click to collapse
Typeo. Thanks
Sent from my HTC Wildfire S using xda premium
EDIT: This doesn't work.
Fix, made. On my phone too!
Re-Follow step 20 and onwards but add the following lines into your file that is open in gedit:
Make sure you put this in the correct place. I will be adding into the OP tomorrow.
Sent from my HTC Wildfire S using xda premium

[Q] Repo/Manifest errors for HTC M9 Himaul?

I am trying to build LineageOS for the HTC M9 Himaul following these directions CyanogenMod Wiki: How to build himaul using "git://github.com/LineageOS/android.git -b cm-14.1" for the repo.
The repo syncs successfully and I don't get any errors when I run "source build/envsetup.sh", but when I run "breakfast himaul" I get this
Code:
~/android/system $ breakfast himaul
including vendor/cm/vendorsetup.sh
build/core/product_config.mk:254: *** _nic.PRODUCTS.[[device/htc/himaul/lineage.mk]]: "vendor/qcom/binaries/msm8994/graphics/graphics-vendor.mk" does not exist. Stop.
build/core/product_config.mk:254: *** _nic.PRODUCTS.[[device/htc/himaul/lineage.mk]]: "vendor/qcom/binaries/msm8994/graphics/graphics-vendor.mk" does not exist. Stop.
build/core/product_config.mk:254: *** _nic.PRODUCTS.[[device/htc/himaul/lineage.mk]]: "vendor/qcom/binaries/msm8994/graphics/graphics-vendor.mk" does not exist. Stop.
Device himaul not found. Attempting to retrieve device repository from LineageOS Github (http://github.com/LineageOS).
Found repository: android_device_htc_himaul
Default revision: cm-14.1
Checking branch info
Checking if device/htc/himaul is fetched from android_device_htc_himaul
LineageOS/android_device_htc_himaul already fetched to device/htc/himaul
Syncing repository to retrieve project.
Fetching project LineageOS/android_device_htc_himaul
Fetching projects: 100% (1/1), done.
Repository synced!
Looking for dependencies in device/htc/himaul
Looking for dependencies in device/htc/hima-common
Looking for dependencies in device/qcom/common
Dependencies file not found, bailing out.
Done
build/core/product_config.mk:254: *** _nic.PRODUCTS.[[device/htc/himaul/lineage.mk]]: "vendor/qcom/binaries/msm8994/graphics/graphics-vendor.mk" does not exist. Stop.
build/core/product_config.mk:254: *** _nic.PRODUCTS.[[device/htc/himaul/lineage.mk]]: "vendor/qcom/binaries/msm8994/graphics/graphics-vendor.mk" does not exist. Stop.
** Don't have a product spec for: 'lineage_himaul'
** Do you have the right repo manifest?
I attached my manifest.xml and roomservice.xml
add this project on your roomservice.xml
Code:
<project name="TheMuppets/proprietary_vendor_qcom_binaries" path="vendor/qcom/binaries" remote="github" revision="cm-14.1" />
Then repo sync again
Thanks, I tried your suggestion and every other one I could find but unfortunately couldn't ever get version 14 to work.
I was successful with version 13.
I appreciate the help.
i get the same , if somebody findes out please PM me ..
Hey!
You additionally have to add the device specific binaries, so please also add this to your roomservice.xml :
Code:
<project name="TheMuppets/proprietary_vendor_htc" path="vendor/htc" remote="github" revision="cm-14.1" />
Then do a
Code:
repo sync
and try again. Maybe a make clean is necessary.
If you don't have a good internet connection AND an already running M9 you can also extract the proprietary blobs with
Code:
~/android/system/device/htc/himaul/extract-files.sh
That's also mentioned in your link CyanogenMod Wiki: How to build himaul. Sorry - I can't post links.
A third method is extracting the binary blobs from an already built zip image (maybe cm 13)...
Happy compiling
For me it worked - but I still haven't flashed it
---------- Post added at 07:07 PM ---------- Previous post was at 06:40 PM ----------
Yeeha!
It successfully booted
Wifi is working, but there are a lot of buggy things around... e.g. the camera
Actually I wanted to post a screenshot, but I can't find the upload button
115ek said:
Hey!
You additionally have to add the device specific binaries, so please also add this to your roomservice.xml :
Then do a and try again. Maybe a make clean is necessary.
If you don't have a good internet connection AND an already running M9 you can also extract the proprietary blobs with
That's also mentioned in your link CyanogenMod Wiki: How to build himaul. Sorry - I can't post links.
A third method is extracting the binary blobs from an already built zip image (maybe cm 13)...
Happy compiling
For me it worked - but I still haven't flashed it
---------- Post added at 07:07 PM ---------- Previous post was at 06:40 PM ----------
Yeeha!
It successfully booted
Wifi is working, but there are a lot of buggy things around... e.g. the camera
Actually I wanted to post a screenshot, but I can't find the upload button
Click to expand...
Click to collapse
I'll give this a shot this weekend.
Thank you
I added the two things above to my roomservice.xml so it looks like this now
Roomservice.xml
<?xml version="1.0" encoding="UTF-8"?>
<manifest>
<project name="LineageOS/android_device_htc_himaul" path="device/htc/himaul" remote="github" />
<project name="LineageOS/android_device_htc_hima-common" path="device/htc/hima-common" remote="github" />
<project name="LineageOS/android_kernel_htc_msm8994" path="kernel/htc/msm8994" remote="github" />
<project name="LineageOS/android_device_qcom_common" path="device/qcom/common" remote="github" />
<project name="TheMuppets/proprietary_vendor_qcom_binaries" path="vendor/qcom/binaries" remote="github" revision="cm-14.1" />
<project name="TheMuppets/proprietary_vendor_htc" path="vendor/htc" remote="github" revision="cm-14.1" />
</manifest>
I did a 'repo sync' and a 'make clean' before attempting to build. I still get numerous errors so I must be doing something wrong still.
Here is the output from my brunch command
brunch himaul
including vendor/cm/vendorsetup.sh
Looking for dependencies in device/htc/himaul
Looking for dependencies in device/htc/hima-common
Looking for dependencies in device/qcom/common
Dependencies file not found, bailing out.
============================================
PLATFORM_VERSION_CODENAME=REL
PLATFORM_VERSION=7.1.1
LINEAGE_VERSION=14.1-20170205-UNOFFICIAL-himaul
TARGET_PRODUCT=lineage_himaul
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.a57
HOST_ARCH=x86_64
HOST_2ND_ARCH=x86
HOST_OS=linux
HOST_OS_EXTRA=Linux-4.4.0-62-generic-x86_64-with-LinuxMint-18.1-serena
HOST_CROSS_OS=windows
HOST_CROSS_ARCH=x86
HOST_CROSS_2ND_ARCH=x86_64
HOST_BUILD_TYPE=release
BUILD_ID=NMF26V
OUT_DIR=/home/shelby/android/system/out
============================================
make: Entering directory '/home/shelby/android/system'
============================================
PLATFORM_VERSION_CODENAME=REL
PLATFORM_VERSION=7.1.1
LINEAGE_VERSION=14.1-20170205-UNOFFICIAL-himaul
TARGET_PRODUCT=lineage_himaul
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.a57
HOST_ARCH=x86_64
HOST_2ND_ARCH=x86
HOST_OS=linux
HOST_OS_EXTRA=Linux-4.4.0-62-generic-x86_64-with-LinuxMint-18.1-serena
HOST_CROSS_OS=windows
HOST_CROSS_ARCH=x86
HOST_CROSS_2ND_ARCH=x86_64
HOST_BUILD_TYPE=release
BUILD_ID=NMF26V
OUT_DIR=/home/shelby/android/system/out
============================================
***TEXT HERE REMOVED TO MEET CHARACTER LIMIT***
Running kati to generate build-lineage_himaul.ninja...
/home/shelby/android/system/out/build-lineage_himaul.ninja is missing, regenerating...
============================================
PLATFORM_VERSION_CODENAME=REL
PLATFORM_VERSION=7.1.1
LINEAGE_VERSION=14.1-20170205-UNOFFICIAL-himaul
TARGET_PRODUCT=lineage_himaul
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.a57
HOST_ARCH=x86_64
HOST_2ND_ARCH=x86
HOST_OS=linux
HOST_OS_EXTRA=Linux-4.4.0-62-generic-x86_64-with-LinuxMint-18.1-serena
HOST_CROSS_OS=windows
HOST_CROSS_ARCH=x86
HOST_CROSS_2ND_ARCH=x86_64
HOST_BUILD_TYPE=release
BUILD_ID=NMF26V
OUT_DIR=/home/shelby/android/system/out
============================================
Checking build tools versions...
build/core/binary.mk:1253: external/deqp/Android.mk: libdeqp: Unused source files: \
build/core/binary.mk:1253: external/deqp/Android.mk: libdeqp: Unused source files: \
build/core/binary.mk:1253: external/pdfium/third_party/pdfiumbigint.mk: libpdfiumbigint: Unused source files: bigint/BigInteger.cc bigint/BigIntegerUtils.cc bigint/BigUnsigned.cc bigint/BigUnsignedInABase.cc
build/core/binary.mk:1253: external/pdfium/third_party/pdfiumbigint.mk: libpdfiumbigint: Unused source files: bigint/BigInteger.cc bigint/BigIntegerUtils.cc bigint/BigUnsigned.cc bigint/BigUnsignedInABase.cc
./external/speex/Android.mk:56: TODOArm64: enable neon in libspeex
build/core/package_internal.mk:143: Empty argument supplied to find-subdir-assets
find: ‘/home/shelby/android/system/out/target/common/obj/SHARED_LIBRARIES/libwifi-hal-mock_intermediates’: No such file or directory
build/core/package_internal.mk:143: Empty argument supplied to find-subdir-assets
PRODUCT_COPY_FILES vendor/qcom/binaries/msm8994/graphics/proprietary/vendor/lib64/libmm-qdcm.so:system/vendor/lib64/libmm-qdcm.so ignored.
build/core/Makefile:53: Duplicate header copy: /home/shelby/android/system/out/target/product/himaul/obj/include/qcom/display/copybit.h
build/core/Makefile:53: Defined in: hardware/qcom/display-caf/msm8994/libcopybit/Android.mk hardware/qcom/display-caf/msm8994/libcopybit/Android.mk
build/core/Makefile:53: Duplicate header copy: /home/shelby/android/system/out/target/product/himaul/obj/include/qcom/display/copybit_priv.h
build/core/Makefile:53: Defined in: hardware/qcom/display-caf/msm8994/libcopybit/Android.mk hardware/qcom/display-caf/msm8994/libcopybit/Android.mk
build/core/Makefile:53: Duplicate header copy: /home/shelby/android/system/out/target/product/himaul/obj/include/qcom/display/c2d2.h
build/core/Makefile:53: Defined in: hardware/qcom/display-caf/msm8994/libcopybit/Android.mk hardware/qcom/display-caf/msm8994/libcopybit/Android.mk
No private recovery resources for TARGET_DEVICE himaul
build/core/java.mk:334: warning: overriding commands for target `/home/shelby/android/system/out/target/common/obj/APPS/Dialer_intermediates/src/src/org/codeaurora/presenceserv/IPresenceService.java'
build/core/java.mk:334: warning: ignoring old commands for target `/home/shelby/android/system/out/target/common/obj/APPS/Dialer_intermediates/src/src/org/codeaurora/presenceserv/IPresenceService.java'
build/core/java.mk:334: warning: overriding commands for target `/home/shelby/android/system/out/target/common/obj/APPS/Dialer_intermediates/src/src/org/codeaurora/presenceserv/IPresenceServiceCB.java'
build/core/java.mk:334: warning: ignoring old commands for target `/home/shelby/android/system/out/target/common/obj/APPS/Dialer_intermediates/src/src/org/codeaurora/presenceserv/IPresenceServiceCB.java'
build/core/base_rules.mk:316: warning: overriding commands for target `/home/shelby/android/system/out/target/product/himaul/root/res/images/charger/battery_fail.png'
build/core/base_rules.mk:316: warning: ignoring old commands for target `/home/shelby/android/system/out/target/product/himaul/root/res/images/charger/battery_fail.png'
build/core/Makefile:34: warning: overriding commands for target `/home/shelby/android/system/out/target/product/himaul/system/lib64/hw/consumerir.default.so'
build/core/base_rules.mk:316: warning: ignoring old commands for target `/home/shelby/android/system/out/target/product/himaul/system/lib64/hw/consumerir.default.so'
build/core/Makefile:34: warning: overriding commands for target `/home/shelby/android/system/out/target/product/himaul/system/lib/hw/consumerir.default.so'
build/core/base_rules.mk:316: warning: ignoring old commands for target `/home/shelby/android/system/out/target/product/himaul/system/lib/hw/consumerir.default.so'
Starting build with ninja
ninja: Entering directory `.'
ninja: error: 'vendor/htc/hima-common/proprietary/etc/firmware/BCM4354A2_001.003.015.0100.0102.hcd', needed by '/home/shelby/android/system/out/target/product/himaul/system/etc/firmware/BCM4354A2_001.003.015.0100.0102.hcd', missing and no known rule to make it
build/core/ninja.mk:151: recipe for target 'ninja_wrapper' failed
make: *** [ninja_wrapper] Error 1
make: Leaving directory '/home/shelby/android/system'
#### make failed to build some targets (23 seconds) ####
Very interesting...
Please find out what your directory /home/shelby/android/system/vendor/htc/hima-common/proprietary/etc/firmware/ contains. Or if it actually exists.
Do you find BCM4354A2_001.003.015.0100.0102.hcd or BCM4356A2_001.003.015.0100.0102.hcd there?
If not: please do a 'repo --force-sync' (if you don't have local changes in your sourcetree...)
BCM4354A2_001.003.015.0100.0102.hcd was replaced by a newer bluetooth firmware version BCM4356A2_001.003.015.0100.0102.hcd
But it's still copied under the old name into the output.
So, your problem is that a makefile might be outdated and looks for the old version (and can't find it) or your repo isn't synced correctly.
I looked in that directory and did not find either of those files.
I ran the repo --force-sync as suggested but no changes were made to the directory as far as I could see.
I did a search for BCM435* in android/system and it returned one file with a .hcd extension.
BCM4359C0_003.001.006.0065.0111.hcd in android/system/vendor/htc/pme/proprietary/etc/firmware
Dunno what that means...
I'm not opposed to deleting the directory and starting over if need be
I'm not opposed to deleting the directory and starting over if need be
Click to expand...
Click to collapse
Yes.
Try removing the htc directory under system/vendor and re-sync. It shouldn't take too much time. Your directory should look like h ttps://github.com/TheMuppets/proprietary_vendor_htc (had to insert a space, because I can't post links here )
If that doesn't work you can also download the repo as zip and unpack it in the right place.
Give it a try :good:
115ek said:
Yes.
Try removing the htc directory under system/vendor and re-sync. It shouldn't take too much time. Your directory should look like h ttps://github.com/TheMuppets/proprietary_vendor_htc (had to insert a space, because I can't post links here )
If that doesn't work you can also download the repo as zip and unpack it in the right place.
Give it a try :good:
Click to expand...
Click to collapse
I didn't get the chance to try any of this until this morning.
I deleted the whole directory and started over with the new lines in my roomservice.xml and I was able to build and flash the image successfully!
Thanks for the help! :good:

			
				
I know this tread is very old but as our device has been removed from the official builds, I wanted to try to build on my own to get the latest security patches.
I followed the instructions at htt ps://wiki.lineageos.org/devices/himaul/build and added both links to my roomservice.xml, did several re-syncs and extracted the proprietary blobs a second time but the build still fails and i still have the "Dependencies file not found, bailing out." message at breakfast / brunch.
Code:
<project name="TheMuppets/proprietary_vendor_qcom_binaries" path="vendor/qcom/binaries" remote="github" revision="cm-14.1" />
<project name="TheMuppets/proprietary_vendor_htc" path="vendor/htc" remote="github" revision="cm-14.1" />
os: ubuntu 17.10 x64 on virtual machine, assigned 1 core, 4.5GB of ram

Trying to port to my device and need some help with build errors

I'm trying to port LineageOS 14.1 to my device (HTC Desire C (golfu))
I'm going to write down step by step what I did so that you could maybe see if I did something wrong before the error appeared .
To set my PC up I used this guide but started to change some things midway because my device isn't officially supported:
http://wiki.lineageos.org/cherry_build.html
Downloaded the source code for LineageOS 14.1 with:
repo init -u git://github.com/LineageOS/android.git -b cm-14.1
repo sync
Click to expand...
Click to collapse
Added device, kernel and vendor:
cd ~/android/system #my work directory
mkdir -p device/htc
git clone git://github.com/high1/android_device_htc_golfu device/htc/golfu
mkdir -p kernel/htc/
git clone git://github.com/HtcLegacy/android_kernel_htc_golfu kernel/htc/golfu
mkdir -p vendor/htc
git clone git://github.com/HtcLegacy/android_vendor_htc_golfu vendor/htc/golfu
Click to expand...
Click to collapse
"source build/envsetup.sh" lists my device:
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/htc/golfu/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
Click to expand...
Click to collapse
"breakfast golfu" gave me this errors:
including vendor/cm/vendorsetup.sh
build/core/product_config.mk:254: *** _nic.PRODUCTS.[[device/htc/golfu/cm.mk]]: "vendor/cm/config/nfc_enhanced.mk" does not exist. Schluss.
build/core/product_config.mk:254: *** _nic.PRODUCTS.[[device/htc/golfu/cm.mk]]: "vendor/cm/config/nfc_enhanced.mk" does not exist. Schluss.
build/core/product_config.mk:254: *** _nic.PRODUCTS.[[device/htc/golfu/cm.mk]]: "vendor/cm/config/nfc_enhanced.mk" does not exist. Schluss.
Device golfu not found. Attempting to retrieve device repository from LineageOS Github (github.com/LineageOS).
Repository for golfu 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:254: *** _nic.PRODUCTS.[[device/htc/golfu/cm.mk]]: "vendor/cm/config/nfc_enhanced.mk" does not exist. Schluss.
build/core/product_config.mk:254: *** _nic.PRODUCTS.[[device/htc/golfu/cm.mk]]: "vendor/cm/config/nfc_enhanced.mk" does not exist. Schluss.
** Don't have a product spec for: 'lineage_golfu'
** Do you have the right repo manifest?
Click to expand...
Click to collapse
I couldn't find nfc_enhanced.mk online to download so I commented it out.
Will this lead to future errors?
I could fix the "Device golfu not found." by changing "PRODUCT_NAME := cm_golfu" to "PRODUCT_NAME := lineage_golfu".
The output of "breakfast golfu" is now:
Trying dependencies-only mode on a non-existing device tree?
============================================
PLATFORM_VERSION_CODENAME=REL
PLATFORM_VERSION=7.1.1
LINEAGE_VERSION=14.1-20170215-UNOFFICIAL-golfu
TARGET_PRODUCT=lineage_golfu
TARGET_BUILD_VARIANT=userdebug
TARGET_BUILD_TYPE=release
TARGET_BUILD_APPS=
TARGET_ARCH=arm
TARGET_ARCH_VARIANT=armv7-a-neon
TARGET_CPU_VARIANT=cortex-a5
TARGET_2ND_ARCH=
TARGET_2ND_ARCH_VARIANT=
TARGET_2ND_CPU_VARIANT=
HOST_ARCH=x86_64
HOST_2ND_ARCH=x86
HOST_OS=linux
HOST_OS_EXTRA=Linux-4.4.0-62-generic-x86_64-with-Ubuntu-16.04-xenial
HOST_CROSS_OS=windows
HOST_CROSS_ARCH=x86
HOST_CROSS_2ND_ARCH=x86_64
HOST_BUILD_TYPE=release
BUILD_ID=NMF26V
OUT_DIR=/home/scandals/android/system/out
RECOVERY_VARIANT=omni
============================================
Click to expand...
Click to collapse
What does "Trying dependencies-only mode on a non-existing device tree?" mean?
"brunch golfu" shows this error:
including vendor/cm/vendorsetup.sh
build/core/config.mk:671: COMMON_GLOBAL_C(PP)FLAGS changed
build/core/config.mk:675: *** bailing.... Schluss.
build/core/product_config.mk:268: *** No matches for product "cm_golfu". Schluss.
build/core/config.mk:671: COMMON_GLOBAL_C(PP)FLAGS changed
build/core/config.mk:675: *** bailing.... Schluss.
Device golfu not found. Attempting to retrieve device repository from LineageOS Github (github.com/LineageOS).
Repository for golfu 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/config.mk:671: COMMON_GLOBAL_C(PP)FLAGS changed
build/core/config.mk:675: *** bailing.... Schluss.
build/core/config.mk:671: COMMON_GLOBAL_C(PP)FLAGS changed
build/core/config.mk:675: *** bailing.... Schluss.
** Don't have a product spec for: 'lineage_golfu'
** Do you have the right repo manifest?
No such item in brunch menu. Try 'breakfast'
Click to expand...
Click to collapse
After searching the internet I found this solution:
I actually changed that.
Now I simplay commented the "COMMON_GLOBAL_CFLAGS" in my BoardConfig.mk
Open up ./build/core/config.mk, and scroll down to line 630, where you should see the below.
Code:
# ###############################################################
# Set up final options.
# ###############################################################
ifneq ($(COMMON_GLOBAL_CFLAGS)$(COMMON_GLOBAL_CPPFLAGS),)
$(warning COMMON_GLOBAL_C(PP)FLAGS changed)
$(info *** Device configurations are no longer allowed to change the global flags.)
$(info *** COMMON_GLOBAL_CFLAGS: $(COMMON_GLOBAL_CFLAGS))
$(info *** COMMON_GLOBAL_CPPFLAGS: $(COMMON_GLOBAL_CPPFLAGS))
$(error bailing…)
endif
Which I changed to this:
Code:
# ###############################################################
# Set up final options.
# ###############################################################
#I disagree with your cflags policy. So there. (Go ahead and tell AOSP how you really feel.)
#ifneq ($(COMMON_GLOBAL_CFLAGS)$(COMMON_GLOBAL_CPPFLAGS),)
#$(warning COMMON_GLOBAL_C(PP)FLAGS changed)
#$(info *** Device configurations are no longer allowed to change the global flags.)
#$(info *** COMMON_GLOBAL_CFLAGS: $(COMMON_GLOBAL_CFLAGS))
#$(info *** COMMON_GLOBAL_CPPFLAGS: $(COMMON_GLOBAL_CPPFLAGS))
#$(error bailing…)
#endif
Click to expand...
Click to collapse
Which fixed the error.
Now "brunch golfu" shows this error:
including vendor/cm/vendorsetup.sh
Trying dependencies-only mode on a non-existing device tree?
============================================
PLATFORM_VERSION_CODENAME=REL
PLATFORM_VERSION=7.1.1
LINEAGE_VERSION=14.1-20170215-UNOFFICIAL-golfu
TARGET_PRODUCT=lineage_golfu
TARGET_BUILD_VARIANT=userdebug
TARGET_BUILD_TYPE=release
TARGET_BUILD_APPS=
TARGET_ARCH=arm
TARGET_ARCH_VARIANT=armv7-a-neon
TARGET_CPU_VARIANT=cortex-a5
TARGET_2ND_ARCH=
TARGET_2ND_ARCH_VARIANT=
TARGET_2ND_CPU_VARIANT=
HOST_ARCH=x86_64
HOST_2ND_ARCH=x86
HOST_OS=linux
HOST_OS_EXTRA=Linux-4.4.0-62-generic-x86_64-with-Ubuntu-16.04-xenial
HOST_CROSS_OS=windows
HOST_CROSS_ARCH=x86
HOST_CROSS_2ND_ARCH=x86_64
HOST_BUILD_TYPE=release
BUILD_ID=NMF26V
OUT_DIR=/home/scandals/android/system/out
RECOVERY_VARIANT=omni
============================================
make: Verzeichnis „/home/scandals/android/system“ wird betreten
============================================
PLATFORM_VERSION_CODENAME=REL
PLATFORM_VERSION=7.1.1
LINEAGE_VERSION=14.1-20170215-UNOFFICIAL-golfu
TARGET_PRODUCT=lineage_golfu
TARGET_BUILD_VARIANT=userdebug
TARGET_BUILD_TYPE=release
TARGET_BUILD_APPS=
TARGET_ARCH=arm
TARGET_ARCH_VARIANT=armv7-a-neon
TARGET_CPU_VARIANT=cortex-a5
TARGET_2ND_ARCH=
TARGET_2ND_ARCH_VARIANT=
TARGET_2ND_CPU_VARIANT=
HOST_ARCH=x86_64
HOST_2ND_ARCH=x86
HOST_OS=linux
HOST_OS_EXTRA=Linux-4.4.0-62-generic-x86_64-with-Ubuntu-16.04-xenial
HOST_CROSS_OS=windows
HOST_CROSS_ARCH=x86
HOST_CROSS_2ND_ARCH=x86_64
HOST_BUILD_TYPE=release
BUILD_ID=NMF26V
OUT_DIR=/home/scandals/android/system/out
RECOVERY_VARIANT=omni
============================================
Running kati to generate build-lineage_golfu.ninja...
device/htc/golfu/AndroidBoard.mk was modified, regenerating...
============================================
PLATFORM_VERSION_CODENAME=REL
PLATFORM_VERSION=7.1.1
LINEAGE_VERSION=14.1-20170215-UNOFFICIAL-golfu
TARGET_PRODUCT=lineage_golfu
TARGET_BUILD_VARIANT=userdebug
TARGET_BUILD_TYPE=release
TARGET_BUILD_APPS=
TARGET_ARCH=arm
TARGET_ARCH_VARIANT=armv7-a-neon
TARGET_CPU_VARIANT=cortex-a5
TARGET_2ND_ARCH=
TARGET_2ND_ARCH_VARIANT=
TARGET_2ND_CPU_VARIANT=
HOST_ARCH=x86_64
HOST_2ND_ARCH=x86
HOST_OS=linux
HOST_OS_EXTRA=Linux-4.4.0-62-generic-x86_64-with-Ubuntu-16.04-xenial
HOST_CROSS_OS=windows
HOST_CROSS_ARCH=x86
HOST_CROSS_2ND_ARCH=x86_64
HOST_BUILD_TYPE=release
BUILD_ID=NMF26V
OUT_DIR=/home/scandals/android/system/out
RECOVERY_VARIANT=omni
============================================
bionic/libc/arch-arm/arm.mk:46: *** "TARGET_CPU_VARIANT not set or set to an unknown value. Possible values are cortex-a7, cortex-a8, cortex-a9, cortex-a15, krait, scorpion, denver. Use generic for devices that do not have a CPU similar to any of the supported cpu variants.".
build/core/ninja.mk:166: die Regel für Ziel „/home/scandals/android/system/out/build-lineage_golfu.ninja“ scheiterte
make: *** [/home/scandals/android/system/out/build-lineage_golfu.ninja] Fehler 1
make: Verzeichnis „/home/scandals/android/system“ wird verlassen
#### make failed to build some targets (3 seconds) ####
Click to expand...
Click to collapse
I had to change "TARGET_CPU_VARIANT := cortex-a5" to "TARGET_CPU_VARIANT := generic" in my BoardConfig.mk file.
I deleted "-mtune=cortex-a5" from the CFLAGS beneath believing that that will lead to errors in some future part of compiling.
Is there a way to use cortex-a5?
Maybe with a different compiler?
Now I don't know how to fix this error. Can someone help me or give some tips?
build/core/binary.mk:1253: external/deqp/Android.mk: libdeqp: Unused source files: \
build/core/binary.mk:1253: external/pdfium/third_party/pdfiumbigint.mk: libpdfiumbigint: Unused source files: bigint/BigInteger.cc bigint/BigIntegerUtils.cc bigint/BigUnsigned.cc bigint/BigUnsignedInABase.cc
build/core/package_internal.mk:143: Empty argument supplied to find-subdir-assets
find: "/home/scandals/android/system/out/target/common/obj/SHARED_LIBRARIES/libwifi-hal-mock_intermediates": Datei oder Verzeichnis nicht gefunden
build/core/package_internal.mk:143: Empty argument supplied to find-subdir-assets
No private recovery resources for TARGET_DEVICE golfu
device/htc/golfu/libaudio/Android.mk:60: warning for parse error in an unevaluated line: *** commands commence before first target.
device/htc/golfu/libaudio/Android.mk:61: warning for parse error in an unevaluated line: *** commands commence before first target.
build/core/java.mk:334: warning: overriding commands for target `/home/scandals/android/system/out/target/common/obj/APPS/Dialer_intermediates/src/src/org/codeaurora/presenceserv/IPresenceService.java'
build/core/java.mk:334: warning: ignoring old commands for target `/home/scandals/android/system/out/target/common/obj/APPS/Dialer_intermediates/src/src/org/codeaurora/presenceserv/IPresenceService.java'
build/core/java.mk:334: warning: overriding commands for target `/home/scandals/android/system/out/target/common/obj/APPS/Dialer_intermediates/src/src/org/codeaurora/presenceserv/IPresenceServiceCB.java'
build/core/java.mk:334: warning: ignoring old commands for target `/home/scandals/android/system/out/target/common/obj/APPS/Dialer_intermediates/src/src/org/codeaurora/presenceserv/IPresenceServiceCB.java'
build/core/base_rules.mk:316: warning: overriding commands for target `/home/scandals/android/system/out/target/product/golfu/root/res/images/charger/battery_fail.png'
build/core/base_rules.mk:316: warning: ignoring old commands for target `/home/scandals/android/system/out/target/product/golfu/root/res/images/charger/battery_fail.png'
build/core/Makefile:34: warning: overriding commands for target `/home/scandals/android/system/out/target/product/golfu/system/etc/permissions/android.software.live_wallpaper.xml'
build/core/base_rules.mk:316: warning: ignoring old commands for target `/home/scandals/android/system/out/target/product/golfu/system/etc/permissions/android.software.live_wallpaper.xml'
Starting build with ninja
ninja: Entering directory `.'
ninja: warning: multiple rules generate /home/scandals/android/system/out/target/product/golfu/system/etc/gps.conf. builds involving this target will not be correct; continuing anyway [-w dupbuild=warn]
ninja: error: '/home/scandals/android/system/out/target/product/golfu/obj/STATIC_LIBRARIES/libbootloader_message_intermediates/export_includes', needed by '/home/scandals/android/system/out/target/product/golfu/obj/EXECUTABLES/init_intermediates/import_includes', missing and no known rule to make it
build/core/ninja.mk:151: die Regel für Ziel „ninja_wrapper“ scheiterte
make: *** [ninja_wrapper] Fehler 1
make: Verzeichnis „/home/scandals/android/system“ wird verlassen
#### make failed to build some targets (19 seconds) ####
Click to expand...
Click to collapse
Trying to find the error I commented some parts of the config file in my device directory.
Through some trial and error I could narrow it down to the the file build/target/product/embedded.mk.
The error is caused by the line which adds "atrace" to "PRODUCT_PACKAGES".
I could simply not exclude this package but it seams to be important as the text above states the following.
# This is a build configuration for a very minimal build of the
# Open-Source part of the tree.
Click to expand...
Click to collapse
Does someone know how to fix that?
While fixing a different error I coincidentally fixed the error with atrace.
I had to download some additional files:
git clone https://github.com/LineageOS/android_device_qcom_common.git device/qcom/common
Click to expand...
Click to collapse
That fixed it.
ninja: error: '/home/scandals/android/system_lineageos_14.1/out/target/product/golfu/system/xbin/busybox', needed by '/home/scandals/android/system_lineageos_14.1/out/target/product/golfu/obj/SHARED_LIBRARIES/libbmlutils_intermediates/teamwin', missing and no known rule to make it
Click to expand...
Click to collapse
To fix that I simply copied busybox from my current working ROM.
I don't know how to fix the following error.
Can someone help me with that?
ninja: error: 'system/core/toolbox/ls.c', needed by '/home/scandals/android/system_lineageos_14.1/out/target/product/golfu/obj/EXECUTABLES/toolbox_recovery_intermediates/ls.o', missing and no known rule to make it
Click to expand...
Click to collapse
@scandals:
Is this the general way to port to a new device?
I have device specific sources (https://github.com/TeamButter/android_device_sony_taoshan) and the LineageOS repo initialised according to http://www.lineageosrom.com/2017/01/how-to-build-lineageos-rom-for-any.html
But I do not know how to integrate the device tree.
Ciao
Manuel

Any Tips For Solving No rule to make target?

Does anyone have any tips/techniques for resolving "No rule to make target" errors?
I got the error:
Code:
make: *** No rule to make target 'libsrv_init', needed by '/home/buildbot/android/slim/out/target/product/maguro/obj/EXECUTABLES/pvrsrvinit_intermediates/pvrsrvinit.o'. Stop.
So to find the reference I did
Code:
find -type f -name "*.mk"|xargs grep pvrsrvinit
./device/samsung/tuna/BoardConfig.mk: pvrsrvinit.te \
./hardware/ti/omap4/common.mk: pvrsrvinit \
./hardware/ti/omap4/pvrsrvinit/Android.mk:LOCAL_SRC_FILES := pvrsrvinit.c
./hardware/ti/omap4/pvrsrvinit/Android.mk:LOCAL_MODULE := pvrsrvinit
~/android/slim $ find -type f -name "*.mk"|xargs grep libsrv_init
./device/samsung/maguro/self-extractors/imgtec/staging/device-partial.mk: libsrv_init \
./device/samsung/maguro/self-extractors/imgtec/staging/proprietary/Android.mk:LOCAL_MODULE := libsrv_init
./device/samsung/maguro/self-extractors/imgtec/staging/proprietary/Android.mk:LOCAL_SRC_FILES := libsrv_init.so
./hardware/ti/omap4/pvrsrvinit/Android.mk:LOCAL_ADDITIONAL_DEPENDENCIES := libsrv_init libsrv_um
It is clear here that a blob is missing.
Searching online suggested adding another local manifest (is this the right one?)
Code:
<?xml version="1.0" encoding="UTF-8"?>
<manifest>
<project name="DonkeyCoyote/proprietary_vendor_samsung" path="vendor/samsung" remote="github" revision="android-5.1" />
</manifest>
I suppose if it was a new device I would have to search the filesystem of the phone for the file right?
Has anyone got any tips of better ways of dealing with this situation?
As a side note: How did SlimLP compile without this extra repo in the manifest?
Or is it common that even for big ROMs that people are doing "dirty" compiles with local manifests and/or locally extracted files in place?
P.S. I am using Lollipop still because my new Chinese phone is still on Lollipop and I thought I would start by building SlimLP for my old maguro as a starting point since the maguro was supported at that point.
I wasn't expecting to get compile errors!
opticyclic said:
Does anyone have any tips/techniques for resolving "No rule to make target" errors?
I got the error:
Code:
make: *** No rule to make target 'libsrv_init', needed by '/home/buildbot/android/slim/out/target/product/maguro/obj/EXECUTABLES/pvrsrvinit_intermediates/pvrsrvinit.o'. Stop.
So to find the reference I did
Code:
find -type f -name "*.mk"|xargs grep pvrsrvinit
./device/samsung/tuna/BoardConfig.mk: pvrsrvinit.te \
./hardware/ti/omap4/common.mk: pvrsrvinit \
./hardware/ti/omap4/pvrsrvinit/Android.mk:LOCAL_SRC_FILES := pvrsrvinit.c
./hardware/ti/omap4/pvrsrvinit/Android.mk:LOCAL_MODULE := pvrsrvinit
~/android/slim $ find -type f -name "*.mk"|xargs grep libsrv_init
./device/samsung/maguro/self-extractors/imgtec/staging/device-partial.mk: libsrv_init \
./device/samsung/maguro/self-extractors/imgtec/staging/proprietary/Android.mk:LOCAL_MODULE := libsrv_init
./device/samsung/maguro/self-extractors/imgtec/staging/proprietary/Android.mk:LOCAL_SRC_FILES := libsrv_init.so
./hardware/ti/omap4/pvrsrvinit/Android.mk:LOCAL_ADDITIONAL_DEPENDENCIES := libsrv_init libsrv_um
It is clear here that a blob is missing.
Searching online suggested adding another local manifest (is this the right one?)
Code:
<?xml version="1.0" encoding="UTF-8"?>
<manifest>
<project name="DonkeyCoyote/proprietary_vendor_samsung" path="vendor/samsung" remote="github" revision="android-5.1" />
</manifest>
I suppose if it was a new device I would have to search the filesystem of the phone for the file right?
Has anyone got any tips of better ways of dealing with this situation?
As a side note: How did SlimLP compile without this extra repo in the manifest?
Or is it common that even for big ROMs that people are doing "dirty" compiles with local manifests and/or locally extracted files in place?
P.S. I am using Lollipop still because my new Chinese phone is still on Lollipop and I thought I would start by building SlimLP for my old maguro as a starting point since the maguro was supported at that point.
I wasn't expecting to get compile errors!
Click to expand...
Click to collapse
Did you find a solution? I'm facing the same problem, any clue would be appreciated.
grab (link disallowed since i have less than 10 posts and they ****ing think it's spam... google driver binaries and sources for maguro and it's the imagination technologies file) then extract and execute at root of your source, and it should shove some binaries and a makefile that declares the missing dependency
Skip the "Extract proprietary blobs" step and instead use "TheMuppets"
Skip the "Extract proprietary blobs" step and instead use "TheMuppets", meaning, add the following lines to the file .repo/local_manifests/roomservice.xml:
Code:
<project name="TheMuppets/proprietary_vendor_samsung" path="vendor/samsung" depth="1" />
<project name="TheMuppets/proprietary_vendor_ti" path="vendor/ti" revision="master" depth="1" />
Rerun "repo sync" and the rest of the steps, excluding the "extract proprietary blobs" step. That should fix it.

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