I'm trying to build CWM for a device which was recently launched and not much work has been done on it. I tried downloading CM-12.0 repo multiple times and on multiple machines but I still get the following error everytime I try using lunch command (p897a21 is the name of the device and the actual product name is ZTE Grand S2 S251)
Code:
build/core/product_config.mk:234: *** Can not locate config makefile for product "full_p897a21". Stop. Device p897a21 not found. Attempting to retrieve device repository from CyanogenMod Github (http ://github. [new account on xda]xom/CyanogenMod). Repository for p897a21 not found in the CyanogenMod 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:234: *** Can not locate config makefile for product "full_p897a21". Stop. 1
The same error even occurs when I try building CWM for any other device It tries to locate the device config on official cyanogenmod sources but this device doesn't have any vendor/device files on github. AFAIK building only CWM doesn't require those two folders so I'm confused as to where I'm making a mistake. Any help is appreciated . Thanks, DragonWarrior927
Hi there, I'm trying to compile Cyanogenmod 10.1 from source for a chinese phone (MT6572, 512MB RAM, 4GB or so internal), but I'm facing a problem I can't solve (I've attached a log with the problem). So far the source is compiling just fine, the problem is the phone needs EXT4 system imgs, but when I put this line in BoardConfigCommon.mk:
Code:
TARGET_USERIMAGES_USE_EXT4 := true
I get the error in the log.
I'm not sure, but I think my build env is configured correctly, since without that line all goes good, even I get the zip file to install (I get an error related to the ext4 filesystem needed if I try to use it, however).
If you want to see the files I'm using, see them on Github, please. Any ideas? :confused:
Sorry, if this is the wrong place to ask, but I am in need or dire assistance. I am a newbie to compiling kernels, more specifically android kernels. My build environment is:
I downloaded my phone source from opensource.samsung.com. I have the SPH-L300 VMU variant. I followed the steps in the README file for compiling. The first time I added the Smartass governor, using this tutorial. I also used all those steps, along with these and these steps. I thought the gov. was the issue so I just compiled the stock kernel, following the README steps. If you are wondering, the README steps states this:
3. How to Clean $ make clean ################################################################################
After following those steps, I get this error:
Code:
nick@Nick-ubuntu:~/android/kernel/SPH-L300/Kernel$ export CROSS_COMPILE=/home/nick/NDK/toolchains/arm-linux-androideabi-4.4.3/prebuilt/linux-x86/bin/arm-linux-androideabi- nick@Nick-ubuntu:~/android/kernel/SPH-L300/Kernel$ export ARCH=arm nick@Nick-ubuntu:~/android/kernel/SPH-L300/Kernel$ make gogh_defconfig HOSTCC scripts/basic/fixdep HOSTCC scripts/kconfig/conf.o SHIPPED scripts/kconfig/zconf.tab.c SHIPPED scripts/kconfig/lex.zconf.c SHIPPED scripts/kconfig/zconf.hash.c HOSTCC scripts/kconfig/zconf.tab.o HOSTLD scripts/kconfig/conf drivers/battery/Kconfig:126:warning: type of 'CHARGER_SMB347' redefined from 'boolean' to 'tristate' drivers/media/video/msm_zsl/Kconfig:117:warning: choice value used outside its choice group drivers/media/video/msm_zsl/Kconfig:122:warning: choice value used outside its choice group # # configuration written to .config # nick@Nick-ubuntu:~/android/kernel/SPH-L300/Kernel$ make -j3 Traceback (most recent call last): File "/home/nick/android/kernel/SPH-L300/Kernel/scripts/gcc-wrapper.py", line 110, in <module> status = run_gcc() File "/home/nick/android/kernel/SPH-L300/Kernel/scripts/gcc-wrapper.py", line 100, in run_gcc proc = subprocess.Popen(args, stderr=subprocess.PIPE) File "/usr/lib/python2.7/subprocess.py", line 710, in __init__ errread, errwrite) File "/usr/lib/python2.7/subprocess.py", line 1327, in _execute_child raise child_exception OSError: [Errno 2] No such file or directory scripts/kconfig/conf --silentoldconfig Kconfig drivers/battery/Kconfig:126:warning: type of 'CHARGER_SMB347' redefined from 'boolean' to 'tristate' drivers/media/video/msm_zsl/Kconfig:117:warning: choice value used outside its choice group drivers/media/video/msm_zsl/Kconfig:122:warning: choice value used outside its choice group Traceback (most recent call last): File "/home/nick/android/kernel/SPH-L300/Kernel/scripts/gcc-wrapper.py", line 110, in <module> status = run_gcc() File "/home/nick/android/kernel/SPH-L300/Kernel/scripts/gcc-wrapper.py", line 100, in run_gcc proc = subprocess.Popen(args, stderr=subprocess.PIPE) File "/usr/lib/python2.7/subprocess.py", line 710, in __init__ errread, errwrite) File "/usr/lib/python2.7/subprocess.py", line 1327, in _execute_child raise child_exception OSError: [Errno 2] No such file or directory CHK include/linux/version.h UPD include/linux/version.h CHK include/generated/utsrelease.h UPD include/generated/utsrelease.h HOSTCC scripts/genksyms/genksyms.o /home/nick/android/kernel/SPH-L300/Kernel/scripts/gcc-version.sh: line 25: /opt/toolchains/arm-eabi-4.4.3/bin/arm-eabi-gcc: No such file or directory /home/nick/android/kernel/SPH-L300/Kernel/scripts/gcc-version.sh: line 26: /opt/toolchains/arm-eabi-4.4.3/bin/arm-eabi-gcc: No such file or directory /home/nick/android/kernel/SPH-L300/Kernel/scripts/gcc-version.sh: line 25: /opt/toolchains/arm-eabi-4.4.3/bin/arm-eabi-gcc: No such file or directory /home/nick/android/kernel/SPH-L300/Kernel/scripts/gcc-version.sh: line 26: /opt/toolchains/arm-eabi-4.4.3/bin/arm-eabi-gcc: No such file or directory /home/nick/android/kernel/SPH-L300/Kernel/scripts/gcc-version.sh: line 25: /opt/toolchains/arm-eabi-4.4.3/bin/arm-eabi-gcc: No such file or directory /home/nick/android/kernel/SPH-L300/Kernel/scripts/gcc-version.sh: line 26: /opt/toolchains/arm-eabi-4.4.3/bin/arm-eabi-gcc: No such file or directory /home/nick/android/kernel/SPH-L300/Kernel/scripts/gcc-version.sh: line 25: /opt/toolchains/arm-eabi-4.4.3/bin/arm-eabi-gcc: No such file or directory /home/nick/android/kernel/SPH-L300/Kernel/scripts/gcc-version.sh: line 26: /opt/toolchains/arm-eabi-4.4.3/bin/arm-eabi-gcc: No such file or directory /home/nick/android/kernel/SPH-L300/Kernel/scripts/gcc-version.sh: line 25: /opt/toolchains/arm-eabi-4.4.3/bin/arm-eabi-gcc: No such file or directory /home/nick/android/kernel/SPH-L300/Kernel/scripts/gcc-version.sh: line 26: /opt/toolchains/arm-eabi-4.4.3/bin/arm-eabi-gcc: No such file or directory /home/nick/android/kernel/SPH-L300/Kernel/scripts/gcc-version.sh: line 25: /opt/toolchains/arm-eabi-4.4.3/bin/arm-eabi-gcc: No such file or directory /home/nick/android/kernel/SPH-L300/Kernel/scripts/gcc-version.sh: line 26: /opt/toolchains/arm-eabi-4.4.3/bin/arm-eabi-gcc: No such file or directory Generating include/generated/mach-types.h SHIPPED scripts/genksyms/lex.c SHIPPED scripts/genksyms/parse.h SHIPPED scripts/genksyms/keywords.c SHIPPED scripts/genksyms/parse.c HOSTCC scripts/genksyms/parse.o CC kernel/bounds.s CC scripts/mod/empty.o Traceback (most recent call last): File "/home/nick/android/kernel/SPH-L300/Kernel/scripts/gcc-wrapper.py", line 110, in <module> status = run_gcc() File "/home/nick/android/kernel/SPH-L300/Kernel/scripts/gcc-wrapper.py", line 100, in run_gcc proc = subprocess.Popen(args, stderr=subprocess.PIPE) File "/usr/lib/python2.7/subprocess.py", line 710, in __init__ errread, errwrite) File "/usr/lib/python2.7/subprocess.py", line 1327, in _execute_child raise child_exception OSError: [Errno 2] No such file or directory make[1]: *** [kernel/bounds.s] Error 1 make: *** [prepare0] Error 2 make: *** Waiting for unfinished jobs.... HOSTCC scripts/mod/mk_elfconfig Traceback (most recent call last): File "/home/nick/android/kernel/SPH-L300/Kernel/scripts/gcc-wrapper.py", line 110, in <module> status = run_gcc() File "/home/nick/android/kernel/SPH-L300/Kernel/scripts/gcc-wrapper.py", line 100, in run_gcc proc = subprocess.Popen(args, stderr=subprocess.PIPE) File "/usr/lib/python2.7/subprocess.py", line 710, in __init__ errread, errwrite) File "/usr/lib/python2.7/subprocess.py", line 1327, in _execute_child raise child_exception OSError: [Errno 2] No such file or directory make[2]: *** [scripts/mod/empty.o] Error 1 make[2]: *** Waiting for unfinished jobs.... HOSTCC scripts/kallsyms make[1]: *** [scripts/mod] Error 2 make[1]: *** Waiting for unfinished jobs.... HOSTCC scripts/genksyms/lex.o HOSTLD scripts/genksyms/genksyms make: *** [scripts] Error 2 nick@Nick-ubuntu:~/android/kernel/SPH-L300/Kernel$
Red= commands and outputs before make command
Any help is greatly appreciated. I also used Linaro 4.6, 4.6.8, 4.8, SaberMod 4.8, SDK, and NDK (both most recent). None of the toolchains helped with the error.