[Q] Must specify VARIANT_DEFCONFIG - Android Q&A, Help & Troubleshooting

I am trying to build my own kernel using the Android NDK r5, but whenever I try to
Code:
make msm8974_defconfig
(I have Galaxy s5)
It just gives me this:
Code:
[email protected]:~/linux$ make msm8974_defconfig
sound/soc/codecs/audience/Kconfig:40:warning: type of 'SND_SOC_ES_SLIM' redefined from 'boolean' to 'tristate'
sound/soc/codecs/audience/Kconfig:43:warning: type of 'SND_SOC_ES_I2C' redefined from 'boolean' to 'tristate'
sound/soc/codecs/audience/Kconfig:44:warning: choice value used outside its choice group
sound/soc/codecs/audience/Kconfig:41:warning: choice value used outside its choice group
KCONFIG_SELINUX((null))
KCONFIG_LOG_SELINUX((null))
KCONFIG_TIMA((null))
KCONFIG_VARIANT((null))
***
*** You must specify VARIANT_DEFCONFIG !
***
make[1]: *** [msm8974_defconfig] Error 1
make: *** [msm8974_defconfig] Error 2
Google didn't help me out this time
Does someone have the answer?

Having this problem too.. any ideas?

Related

[Q] Help with CM10.2 compilation errors (from source)

Hope this is the correct forum for this, tried under the HTC One X evita Q/A forum but was told it fits better here.
Hey all, so I've built out a development environment and have followed tutorials on how to build CM10.2 from source. I would consider myself an advanced Linux user and things have been going well with the exception of these compliation errors. Any help troubleshooting these would be greatly appreciated.
Code:
target thumb C++: libc <= bionic/libc/bionic/pthread_debug.cpp
cc1plus: warning: command line option '-std=gnu99' is valid for C/ObjC but not for C++ [enabled by default]
make[3]: *** [linux] Error 2
make[2]: *** [headers_install] Error 2
make[1]: *** [sub-make] Error 2
make[1]: Leaving directory `/home/c0pp3r/android/cm10.2/kernel/htc/msm8960'
make: *** [/home/c0pp3r/android/cm10.2/out/target/product/evita/obj/KERNEL_OBJ/usr] Error 2
make: *** Waiting for unfinished jobs....
bionic/libc/bionic/pthread_debug.cpp:545:13: warning: 'void hashmap_removeEntry(HashTable*, HashEntry*)' defined but not used [-Wunused-function]
[email protected]:/home/c0pp3r/android/cm10.2#

Help with simple problem

Trying to compile CM10.1 for Cube U9GT4.
Got error
Code:
device/cube/u9gt4/overlay/frameworks/base/core/res/res/xml/storage_list.xml:4: error: Error: No resource found that matches the given name (at 'storageDescription' with value '@string/storage_nand_flash').
make: *** [/home/yp/CM10/out/target/common/obj/APPS/framework-res_intermediates/package-export.apk] Ошибка 1
make: *** Удаляется файл `/home/yp/CM10/out/target/common/obj/APPS/framework-res_intermediates/package-export.apk'
make: *** Ожидание завершения заданий...
host C++: libLLVMipo <= external/llvm/lib/Transforms/IPO/LoopExtractor.cpp
make: *** wait: Нет дочерних процессов. Останов.
Storage_list.xml from official rom.
Problem looks simple, but i cant solve it by myself. I do not know what to replace value of storageDescription

[Help] Build error, need help?

Setup my build environment according to this post
http://forum.xda-developers.com/showthread.php?t=2639611
and trying to build this ROM
https://github.com/CarbonDev/android
I got a build error mid way
HTML:
hardware/qcom/display/msm8974/liboverlay/overlayMdp.cpp: In member function 'void overlay::MdpCtrl::setColor(uint32 _t)':
hardware/qcom/display/msm8974/liboverlay/overlayMdp.cpp:105:13: error: 'struct mdp_overlay' has no member named 'bg _color'
make: *** [/root/carbon/out/target/product/hammerhead/obj/SHARED_LIBRARIES/liboverlay_intermediates/overlayMdp.o] E rror 1
make: *** Waiting for unfinished jobs....
target thumb C++: liboverlay <= hardware/qcom/display/msm8974/liboverlay/overlayMdssRot.cpp
make: *** wait: No child processes. Stop.
I google and got this suggesting
Try switching hardware/qcom/display to cyanogenmod 's version
What file do I edit to change this?
Thanks.

[Q] Build Error, need help?

Setup my build environment according to this post
http://forum.xda-developers.com/showthread.php?t=2639611
and trying to build this ROM
https://github.com/CarbonDev/android
I got a build error mid way
HTML:
hardware/qcom/display/msm8974/liboverlay/overlayMdp.cpp: In member function 'void overlay::MdpCtrl::setColor(uint32 _t)':
hardware/qcom/display/msm8974/liboverlay/overlayMdp.cpp:105:13: error: 'struct mdp_overlay' has no member named 'bg _color'
make: *** [/root/carbon/out/target/product/hammerhead/obj/SHARED_LIBRARIES/liboverlay_intermediates/overlayMdp.o] E rror 1
make: *** Waiting for unfinished jobs....
target thumb C++: liboverlay <= hardware/qcom/display/msm8974/liboverlay/overlayMdssRot.cpp
make: *** wait: No child processes. Stop.
I google and got this suggesting
Try switching hardware/qcom/display to cyanogenmod 's version
What file do I edit to change this?
Thanks.

Could use a little help with building a kernel for the g5

Note: I am not sure where I should have put this thread but I was going to put it in the development section but I don't have a high enough post count. If this thread should be in another section please feel free to move it mods.
ok so i am trying to build my own kernel for the g5 and i have read that i need to build a clean unmodified kernel first in order to make sure everything is set up right. these are the errors i keep getting everytime without fail.
these are the compile commands.
[email protected]:~$ cd kernel;
[email protected]:~/kernel$ export /home/maxwell/Android/prebuilts/gcc/linux-x86/aarch64/aarch64-linux-android-4.9/bin/aarch64-linux-android-
bash: export: `/home/maxwell/Android/prebuilts/gcc/linux-x86/aarch64/aarch64-linux-android-4.9/bin/aarch64-linux-android-': not a valid identifier
[email protected]:~/kernel$ export CROSS_COMPILE=/home/maxwell/Android/prebuilts/gcc/linux-x86/aarch64/aarch64-linux-android-4.9/bin/aarch64-linux-android-
[email protected]:~/kernel$ export ARCH=arm64
[email protected]:~/kernel$ make h1_global_com-perf_defconfigdrivers/soc/qcom/Kconfig:287:warning: choice value used outside its choice group
drivers/soc/qcom/Kconfig:292:warning: choice value used outside its choice group
arch/arm64/configs/h1_global_com-perf_defconfig:694:warning: override: reassigning to symbol INET_XFRM_MODE_BEET
arch/arm64/configs/h1_global_com-perf_defconfig:705:warning: override: reassigning to symbol LGE_SP_MIRRORING_CTRL_BL
#
# configuration written to .config
#
[email protected]:~/kernel$ make clean && make mrproper
CLEAN .
CLEAN arch/arm64/kernel/vdso
CLEAN arch/arm64/kernel
CLEAN crypto/asymmetric_keys
CLEAN firmware
CLEAN kernel/time
CLEAN kernel
CLEAN security/selinux
CLEAN usr
CLEAN .tmp_versions
CLEAN scripts/basic
CLEAN scripts/dtc
CLEAN scripts/genksyms
CLEAN scripts/kconfig
CLEAN scripts/mod
CLEAN scripts/selinux/genheaders
CLEAN scripts/selinux/mdp
CLEAN scripts
CLEAN include/config include/generated arch/arm64/include/generated
CLEAN .config .config.old .version include/generated/uapi/linux/version.h signing_key.priv signing_key.x509 x509.genkey
[email protected]:~/kernel$ make h1_global_com-perf_defconfig
HOSTCC scripts/basic/fixdep
HOSTCC scripts/kconfig/conf.o
SHIPPED scripts/kconfig/zconf.tab.c
SHIPPED scripts/kconfig/zconf.lex.c
SHIPPED scripts/kconfig/zconf.hash.c
HOSTCC scripts/kconfig/zconf.tab.o
HOSTLD scripts/kconfig/conf
drivers/soc/qcom/Kconfig:287:warning: choice value used outside its choice group
drivers/soc/qcom/Kconfig:292:warning: choice value used outside its choice group
arch/arm64/configs/h1_global_com-perf_defconfig:694:warning: override: reassigning to symbol INET_XFRM_MODE_BEET
arch/arm64/configs/h1_global_com-perf_defconfig:705:warning: override: reassigning to symbol LGE_SP_MIRRORING_CTRL_BL
#
# configuration written to .config
#
[email protected]:~/kernel$ make -j8
these are the errors.
scripts/Makefile.build:402: recipe for target 'drivers/usb' failed
make[1]: *** [drivers/usb] Error 2
In file included from drivers/soc/qcom/tracer_pkt_private.h:49:0,
from drivers/soc/qcom/tracer_pkt.c:18:
include/trace/define_trace.h:83:43: fatal error: ./tracer_pkt_private.h: No such file or directory
#include TRACE_INCLUDE(TRACE_INCLUDE_FILE)
^
compilation terminated.
scripts/Makefile.build:257: recipe for target 'drivers/soc/qcom/tracer_pkt.o' failed
make[3]: *** [drivers/soc/qcom/tracer_pkt.o] Error 1
make[3]: *** Waiting for unfinished jobs....
scripts/Makefile.build:402: recipe for target 'drivers/soc/qcom' failed
make[2]: *** [drivers/soc/qcom] Error 2
scripts/Makefile.build:402: recipe for target 'drivers/soc' failed
make[1]: *** [drivers/soc] Error 2
Makefile:945: recipe for target 'drivers' failed
make: *** [drivers] Error 2
[email protected]:~/kernel$
have the same error
edit: disabled TRACE_PKT in .config
please established devs help these guys as the g5 badly needs a good kernel.

Categories

Resources