Can I enable all options in multifunction device drivers,voltage and current regulator support,power supply class support,hardware monitoring support and gpio support in kernel configuration????
Yeah, why not
But @sev3n1985 tried voltage control and it was buggy and unstable. I really encourage you to try it and test. Good luck.
When I run command make -j3 I get error:
scripts/kconfig/conf --silentoldconfig Kconfig
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
warning: (SND_SOC_MSM8226) selects DOLBY_DAP which has unmet direct dependencies (SOUND && !M68K && !UML && SND && SND_SOC && SND_SOC_MSM8974)
warning: (SND_SOC_MSM8226) selects DOLBY_DAP which has unmet direct dependencies (SOUND && !M68K && !UML && SND && SND_SOC && SND_SOC_MSM8974)
*** Error during update of the configuration.
/media/sf_gti9301i/GT-I9301I_KK_Opensource/Kernel/scripts/kconfig/Makefile:33: recipe for target 'silentoldconfig' failed
make[2]: *** [silentoldconfig] Error 1
/media/sf_gti9301i/GT-I9301I_KK_Opensource/Kernel/Makefile:496: recipe for target 'silentoldconfig' failed
make[1]: *** [silentoldconfig] Error 2
make: *** No rule to make target 'include/config/auto.conf', needed by 'include/config/kernel.release'. Stop.
I have fixed problem by putting source inside home folder.
Related
When I run command make msm8226-sec_defconfig I got error:
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
arch/arm/configs/msm8226-sec_defconfig:320:warning: override: reassigning to symbol MSM_CPP
arch/arm/configs/msm8226-sec_defconfig:482:warning: override: reassigning to symbol SWITCH
arch/arm/configs/msm8226-sec_defconfig:483:warning: override: reassigning to symbol COMPACTION
warning: (SND_SOC_MSM8226) selects DOLBY_DAP which has unmet direct dependencies (SOUND && !M68K && !UML && SND && SND_SOC && SND_SOC_MSM8974)
KCONFIG_SELINUX((null))
KCONFIG_LOG_SELINUX((null))
KCONFIG_TIMA((null))
KCONFIG_VARIANT((null))
***
*** You must specify VARIANT_DEFCONFIG !
***
/root/android/GT-I9301I_KK_Opensource/Kernel/scripts/kconfig/Makefile:117: recipe for target 'msm8226-sec_defconfig' failed
make[1]: *** [msm8226-sec_defconfig] Error 1
Makefile:496: recipe for target 'msm8226-sec_defconfig' failed
make: *** [msm8226-sec_defconfig] Error 2
When I run command make -j3 I get error:
scripts/kconfig/conf --silentoldconfig Kconfig
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
warning: (SND_SOC_MSM8226) selects DOLBY_DAP which has unmet direct dependencies (SOUND && !M68K && !UML && SND && SND_SOC && SND_SOC_MSM8974)
warning: (SND_SOC_MSM8226) selects DOLBY_DAP which has unmet direct dependencies (SOUND && !M68K && !UML && SND && SND_SOC && SND_SOC_MSM8974)
*** Error during update of the configuration.
/media/sf_gti9301i/GT-I9301I_KK_Opensource/Kernel/scripts/kconfig/Makefile:33: recipe for target 'silentoldconfig' failed
make[2]: *** [silentoldconfig] Error 1
/media/sf_gti9301i/GT-I9301I_KK_Opensource/Kernel/Makefile:496: recipe for target 'silentoldconfig' failed
make[1]: *** [silentoldconfig] Error 2
make: *** No rule to make target 'include/config/auto.conf', needed by 'include/config/kernel.release'. Stop.
I have fixed problem by putting source inside home folder.
Hello All.
I am building a new Cyanogenmod 13.0 for Galaxy A5H and I make a lot progress but, Im havng building error mostly on the kernel.
Here is the error log:
Building Kernel
make -C kernel/samsung/msm8916-caf O=/media/storage/android/cm-13.0/out/target/product/a53g/obj/KERNEL_OBJ ARCH=arm CROSS_COMPILE="/media/storage/android/cm-13.0/prebuilts/misc/linux-x86/ccache/ccache /home/ahmed/android/ndk/toolchains/arm-linux-androideabi-4.9/prebuilt/linux-x86_64/bin/arm-linux-androideabi-/arm-eabi-" zImage
make[1]: Entering directory '/media/storage/android/cm-13.0/kernel/samsung/msm8916-caf'
/media/storage/android/cm-13.0/kernel/samsung/msm8916-caf/Makefile:603: Cannot use CONFIG_CC_STACKPROTECTOR_REGULAR: -fstack-protector not supported by compiler
GEN /media/storage/android/cm-13.0/out/target/product/a53g/obj/KERNEL_OBJ/Makefile
scripts/kconfig/conf --silentoldconfig Kconfig
drivers/misc/Kconfig:421:warning: type of 'TIMA_LOG' redefined from 'boolean' to 'tristate'
drivers/misc/Kconfig:752:warning: choice value used outside its choice group
drivers/misc/Kconfig:754:warning: choice value used outside its choice group
drivers/misc/Kconfig:762:warning: choice value used outside its choice group
drivers/misc/Kconfig:765:warning: choice value used outside its choice group
drivers/misc/Kconfig:767:warning: choice value used outside its choice group
warning: (SND_SOC_QDSP6V2) selects SND_SOC_MSM_QDSP6V2_INTF which has unmet direct dependencies (SOUND && !M68K && !UML && SND && SND_SOC && MSM_QDSP6_APRV2)
warning: (SND_SOC_APQ8084 && SND_SOC_MSM8X16 && SND_SOC_MSM8994) selects SND_SOC_CPE which has unmet direct dependencies (SOUND && !M68K && !UML && SND && SND_SOC && SND_SOC_WCD_CPE)
warning: (ARCH_MSM_KRAIT && ARCH_MSM8909 && ARCH_MSM8916 && ARCH_MSM8610 && ARCH_MSM8226) selects DEVFREQ_GOV_MSM_BW_HWMON which has unmet direct dependencies (PM_DEVFREQ && (ARCH_MSM_KRAIT || ARCH_MSM_BIMC_BWMON))
warning: (SND_SOC_QDSP6V2) selects SND_SOC_MSM_QDSP6V2_INTF which has unmet direct dependencies (SOUND && !M68K && !UML && SND && SND_SOC && MSM_QDSP6_APRV2)
warning: (SND_SOC_APQ8084 && SND_SOC_MSM8X16 && SND_SOC_MSM8994) selects SND_SOC_CPE which has unmet direct dependencies (SOUND && !M68K && !UML && SND && SND_SOC && SND_SOC_WCD_CPE)
warning: (ARCH_MSM_KRAIT && ARCH_MSM8909 && ARCH_MSM8916 && ARCH_MSM8610 && ARCH_MSM8226) selects DEVFREQ_GOV_MSM_BW_HWMON which has unmet direct dependencies (PM_DEVFREQ && (ARCH_MSM_KRAIT || ARCH_MSM_BIMC_BWMON))
GEN /media/storage/android/cm-13.0/out/target/product/a53g/obj/KERNEL_OBJ/Makefile
CHK include/generated/uapi/linux/version.h
CHK include/generated/utsrelease.h
Using /media/storage/android/cm-13.0/kernel/samsung/msm8916-caf as source for kernel
/media/storage/android/cm-13.0/kernel/samsung/msm8916-caf is not clean, please run 'make mrproper'
in the '/media/storage/android/cm-13.0/kernel/samsung/msm8916-caf' directory.
/media/storage/android/cm-13.0/kernel/samsung/msm8916-caf/Makefile:843: recipe for target 'prepare3' failed
make[2]: *** [prepare3] Error 1
Makefile:130: recipe for target 'sub-make' failed
make[1]: *** [sub-make] Error 2
make[1]: Leaving directory '/media/storage/android/cm-13.0/kernel/samsung/msm8916-caf'
build/core/tasks/kernel.mk:286: recipe for target 'TARGET_KERNEL_BINARIES' failed
make: *** [TARGET_KERNEL_BINARIES] Error 2
make: *** Waiting for unfinished jobs....
#### make failed to build some targets (02:30:51 (hh:mm:ss)) ####
Please I need your help.
hi, which version of java you use?
and since you compile source ?, I also tried to compile a kernel from 0, and gave me errors
You can ignore everything after Cannot use CONFIG_CC_STACKPROTECTOR regular as those are just warnings.
It's saying your compiler doesn't support CONFIG_CC_STACKPROTECTOR regular set in the defconfig.
Are you sure you've got your environment correctly setup and paths correct.
I always set my path and platform variables in the MAKE file
Then just do MAKE to build.
If you still get the error try commenting out CONFIG_CC_STACKPROTECTOR regular in the defconfig.
Also run make mrproper and make clean before building.
Also which distro are you building on?
I'm building with Java 1.7 and Ubuntu 16.04 64-Bit I'll try it and PM you.
Hello guys while compiling kernel for OpT (MM), I am getting this error.. how to solve this?
Error 1
[email protected]:~/android/kernel/oneplus2$ make -j4
scripts/kconfig/conf --silentoldconfig Kconfig
warning: (PCI_MSM && AMD_IOMMU) selects PCI_MSI which has unmet direct dependencies (PCI && ARCH_SUPPORTS_MSI)
warning: (ARCH_MSM) selects DEVFREQ_GOV_MSM_BW_HWMON which has unmet direct dependencies (PM_DEVFREQ && (ARCH_MSM_KRAIT || ARCH_MSM_BIMC_BWMON))
warning: (PCI_MSM && AMD_IOMMU) selects PCI_MSI which has unmet direct dependencies (PCI && ARCH_SUPPORTS_MSI)
warning: (ARCH_MSM) selects DEVFREQ_GOV_MSM_BW_HWMON which has unmet direct dependencies (PM_DEVFREQ && (ARCH_MSM_KRAIT || ARCH_MSM_BIMC_BWMON))
...
scripts/asn1_compiler.c: In function ‘render_out_of_line_list’:
scripts/asn1_compiler.c:1341:3: warning: enumeration value ‘NOT_COMPOUND’ not handled in switch [-Wswitch]
switch (e->compound) {
^
scripts/asn1_compiler.c:1341:3: warning: enumeration value ‘CHOICE’ not handled in switch [-Wswitch]
scripts/asn1_compiler.c:1341:3: warning: enumeration value ‘ANY’ not handled in switch [-Wswitch]
scripts/asn1_compiler.c:1341:3: warning: enumeration value ‘TYPE_REF’ not handled in switch [-Wswitch]
scripts/asn1_compiler.c:1341:3: warning: enumeration value ‘TAG_OVERRIDE’ not handled in switch [-Wswitch]
...
In file included from drivers/media/platform/msm/camera_v2/sensor/vl6180/src/vl6180x_i2c.c:42:0:
drivers/media/platform/msm/camera_v2/sensor/vl6180/inc/vl6180x_i2c.h:16:23: fatal error: stmvl6180.h: No such file or directory
#include "stmvl6180.h"
^
compilation terminated.
scripts/Makefile.build:308: recipe for target 'drivers/media/platform/msm/camera_v2/sensor/vl6180/src/vl6180x_i2c.o' failed
make[7]: *** [drivers/media/platform/msm/camera_v2/sensor/vl6180/src/vl6180x_i2c.o] Error 1
scripts/Makefile.build:455: recipe for target 'drivers/media/platform/msm/camera_v2/sensor/vl6180' failed
make[6]: *** [drivers/media/platform/msm/camera_v2/sensor/vl6180] Error 2
scripts/Makefile.build:455: recipe for target 'drivers/media/platform/msm/camera_v2/sensor' failed
make[5]: *** [drivers/media/platform/msm/camera_v2/sensor] Error 2
scripts/Makefile.build:455: recipe for target 'drivers/media/platform/msm/camera_v2' failed
make[4]: *** [drivers/media/platform/msm/camera_v2] Error 2
scripts/Makefile.build:455: recipe for target 'drivers/media/platform/msm' failed
make[3]: *** [drivers/media/platform/msm] Error 2
scripts/Makefile.build:455: recipe for target 'drivers/media/platform' failed
make[2]: *** [drivers/media/platform] Error 2
scripts/Makefile.build:455: recipe for target 'drivers/media' failed
make[1]: *** [drivers/media] Error 2
make[1]: *** Waiting for unfinished jobs....
...
Makefile:824: recipe for target 'drivers' failed
make: *** [drivers] Error 2
Please tell guys how to fix this error
Error 2
[email protected]:~/android/kernel/oneplus2$ make clean
CLEAN .
CLEAN arch/arm64/kernel/vdso
CLEAN arch/arm64/kernel
CLEAN crypto/asymmetric_keys
CLEAN kernel
CLEAN lib
CLEAN net/wireless
CLEAN security/selinux
CLEAN usr
scripts/Makefile.clean:17: /home/rohan/android/kernel/oneplus2/arch/arm64/boot/qcom/Makefile: No such file or directory
make[2]: *** No rule to make target '/home/rohan/android/kernel/oneplus2/arch/arm64/boot/qcom/Makefile'. Stop.
scripts/Makefile.clean:94: recipe for target 'arch/arm64/boot/qcom' failed
make[1]: *** [arch/arm64/boot/qcom] Error 2
/home/rohan/android/kernel/oneplus2/arch/arm64/Makefile:92: recipe for target 'archclean' failed
make: *** [archclean] Error 2
[email protected]:~/android/kernel/oneplus2$
Error 3(FIXED)
FIXED:
HTML:
[CODE][email protected]:~/android/kernel/oneplus2$ make msm8994-OnePlus2_defconfig
HOSTCC scripts/basic/fixdep
HOSTCC scripts/kconfig/conf.o
HOSTCC scripts/kconfig/zconf.tab.o
In file included from scripts/kconfig/zconf.tab.c:2503:0:
scripts/kconfig/menu.c: In function ‘get_symbol_str’:
scripts/kconfig/menu.c:567:18: warning: ‘jump’ may be used uninitialized in this function [-Wmaybe-uninitialized]
jump->offset = r->len - 1;
^
scripts/kconfig/menu.c:528:19: note: ‘jump’ was declared here
struct jump_key *jump;
^
HOSTLD scripts/kconfig/conf
arch/arm64/configs/msm8994-OnePlus2_defconfig:685:warning: unexpected data
warning: (PCI_MSM && AMD_IOMMU) selects PCI_MSI which has unmet direct dependencies (PCI && ARCH_SUPPORTS_MSI)
warning: (SND_SOC_APQ8074 && SND_SOC_MSM8994) selects SND_SOC_MSM_HDMI_CODEC_RX which has unmet direct dependencies (SOUND && !M68K && !UML && SND && SND_SOC && FB_MSM_MDSS_HDMI_PANEL && (SND_SOC_MSM8974 || SND_SOC_APQ8084 || SND_SOC_MSM8994))
warning: (ARCH_MSM) selects DEVFREQ_GOV_MSM_BW_HWMON which has unmet direct dependencies (PM_DEVFREQ && (ARCH_MSM_KRAIT || ARCH_MSM_BIMC_BWMON))
warning: (PCI_MSM && AMD_IOMMU) selects PCI_MSI which has unmet direct dependencies (PCI && ARCH_SUPPORTS_MSI)
warning: (SND_SOC_APQ8074 && SND_SOC_MSM8994) selects SND_SOC_MSM_HDMI_CODEC_RX which has unmet direct dependencies (SOUND && !M68K && !UML && SND && SND_SOC && FB_MSM_MDSS_HDMI_PANEL && (SND_SOC_MSM8974 || SND_SOC_APQ8084 || SND_SOC_MSM8994))
warning: (ARCH_MSM) selects DEVFREQ_GOV_MSM_BW_HWMON which has unmet direct dependencies (PM_DEVFREQ && (ARCH_MSM_KRAIT || ARCH_MSM_BIMC_BWMON))
#
# configuration written to .config
#
[email protected]:~/android/kernel/oneplus2$ make -j4
Makefile:609: Cannot use CONFIG_CC_STACKPROTECTOR_REGULAR: -fstack-protector not supported by compiler
Makefile:800: *** multiple target patterns. Stop.[/CODE]
please help this noob ;_; I am using this kernel source : [url]https://github.com/OnePlusOSS/android_kernel_oneplus_msm8994/tree/oneplus/6.0.1[/url] and wanna build a kernel for ParanoidAndroid ROM.. if it's wrong one then pls do guide me the right kernel.. :)
EDIT: Fixed with this command :
[B]export SUBARCH=arm64[/B]
[B]export CROSS_COMPILE=/home/rohan/android/kernel/toolchain1/bin/aarch64-linux-android-[/B]
Added some others errors.. I built them using msm8994-OnePlus2_defconfig, msm8994_defconfig and msm8994-perf_defconfig.. all of them resulting in error.. THANKS!!
after Lenovo added the Sources of its STOCK Firmware public, i wanted to set-up my Lenovo Tab 4 10 Plus TB-X704L to stock firmware by myself to compile it.
How can I read out dependencies from the sources to get any error while compiling?
here is the stock firmware from lenovo: pcsupport.lenovo.com/de/de/products/tablets/a-series/tab4-10-plus/downloads
i did follow this tut for building a GCC Cross Compiler but still get errors while following the TUT by myself: preshing.com/20141119/how-to-build-a-gcc-cross-compiler/
Can someone please tell me how to solve such problems - maybe in summoning general ways like. reading header files to follow dependencies, too?
Thanks.
Code:
[email protected]:/media/kick/jdownloads/kernel# sudo ./build_kernel.sh
make[1]: Verzeichnis „/media/kick/jdownloads/kernel/kernel/msm-3.18/out“ wird betreten
GEN ./Makefile
drivers/soc/qcom/Kconfig:368:warning: choice value used outside its choice group
drivers/soc/qcom/Kconfig:373:warning: choice value used outside its choice group
arch/arm64/configs/hq_msm8953_a6090-perf_defconfig:64:warning: override: reassigning to symbol ARCH_MMAP_RND_COMPAT_BITS
arch/arm64/configs/hq_msm8953_a6090-perf_defconfig:657:warning: unexpected data
warning: (SND_SOC_APQ8084 && SND_SOC_MSM8994 && SND_SOC_MSM8996 && SND_SOC_MSM8X16 && SND_SOC_MDM9607 && SND_SOC_MDM9640) selects SND_SOC_WCD9330 which has unmet direct dependencies (SOUND && !M68K && !UML && SND && SND_SOC && WCD9330_CODEC)
warning: (SND_SOC_APQ8084 && SND_SOC_MSM8994 && SND_SOC_MSM8996 && SND_SOC_MSM8X16 && SND_SOC_MDM9607 && SND_SOC_MDM9640) selects SND_SOC_WCD9330 which has unmet direct dependencies (SOUND && !M68K && !UML && SND && SND_SOC && WCD9330_CODEC)
#
# configuration written to .config
#
make[1]: Verzeichnis „/media/kick/jdownloads/kernel/kernel/msm-3.18/out“ wird verlassen
make[1]: Verzeichnis „/media/kick/jdownloads/kernel/kernel/msm-3.18/out“ wird betreten
GEN ./Makefile
scripts/kconfig/conf --silentoldconfig Kconfig
drivers/soc/qcom/Kconfig:368:warning: choice value used outside its choice group
drivers/soc/qcom/Kconfig:373:warning: choice value used outside its choice group
warning: (SND_SOC_APQ8084 && SND_SOC_MSM8994 && SND_SOC_MSM8996 && SND_SOC_MSM8X16 && SND_SOC_MDM9607 && SND_SOC_MDM9640) selects SND_SOC_WCD9330 which has unmet direct dependencies (SOUND && !M68K && !UML && SND && SND_SOC && WCD9330_CODEC)
warning: (SND_SOC_APQ8084 && SND_SOC_MSM8994 && SND_SOC_MSM8996 && SND_SOC_MSM8X16 && SND_SOC_MDM9607 && SND_SOC_MDM9640) selects SND_SOC_WCD9330 which has unmet direct dependencies (SOUND && !M68K && !UML && SND && SND_SOC && WCD9330_CODEC)
CHK include/config/kernel.release
GEN ./Makefile
CHK include/generated/uapi/linux/version.h