yashsingh1/xdaforums huggingface dataset:
[Android Software/Hacking General [Developers Only]] DSA:
You could try this:

https://xdaforums.com/android/software-hacking/llvm-clang-dragontc-future-t3318386
[Android Software/Hacking General [Developers Only]] nathanchance:
I'll consider adding it to the OP but honestly, the only stock kernel using Clang is the Pixel 2 and Pixel 2 XL. I assume if someone is smart enough to add Clang support to their kernel, they can figure out how to compile with it.

In the meantime, you can just use my Pixel 2 manifest guide (you don't need to worry about dtc or mkdtimg): https://github.com/nathanchance/pixel2-manifest#building-the-kernel-image
[Android Software/Hacking General [Developers Only]] vicatz:
nah maybe u have a little tips about kernel version became long after compiling with clang, its showing too long "(Android (4630689 based on r316199) clang version 6.0.1 (https://android.googlesource.com/toolchain/clang/blablabla) (https://android.googlesource.com/toolchain/llvm/blablabla) (based on LLVM 6.0.1svn))". im using latest clang-4630689, but something strange when using clang-4536805 kernel version showing "(Android clang version 6.0.1(based on LLVM 6.0.1svn))" :eek:
[Android Software/Hacking General [Developers Only]] ajituchiha:
I am compiling kernel for P10 Plus and I wanted to enable support for GPU governors and added the line CONFIG_MALI_DEVFREQ=y in my config and I started compiling and I get this error :

CC drivers/gpu/arm/bifrost-r8p0-00cet0/mali_kbase_device.o
In file included from /home/ajit/Desktop/Code_Opensource/drivers/gpu/arm/bifrost-r8p0-00cet0/mali_kbase.h:55:0,
from /home/ajit/Desktop/Code_Opensource/drivers/gpu/arm/bifrost-r8p0-00cet0/mali_kbase_device.c:31:
/home/ajit/Desktop/Code_Opensource/drivers/gpu/arm/bifrost-r8p0-00cet0/mali_kbase_defs.h:1149:32: error: field ‘devfreq_cooling’ has incomplete type
struct thermal_cooling_device devfreq_cooling;
^
/home/ajit/Desktop/Code_Opensource/drivers/gpu/arm/bifrost-r8p0-00cet0/mali_kbase_defs.h:1167:32: error: field ‘devfreq_cooling’ has incomplete type
struct thermal_cooling_device devfreq_cooling;
^
/home/ajit/Desktop/Code_Opensource/drivers/gpu/arm/bifrost-r8p0-00cet0/mali_kbase_defs.h:1156:17: error: duplicate member ‘devfreq’
struct devfreq devfreq;
^
/home/ajit/Desktop/Code_Opensource/drivers/gpu/arm/bifrost-r8p0-00cet0/mali_kbase_defs.h:1167:32: error: duplicate member ‘devfreq_cooling’
struct thermal_cooling_device devfreq_cooling;
^
/home/ajit/Desktop/Code_Opensource/scripts/Makefile.build:285: recipe for target 'drivers/gpu/arm/bifrost-r8p0-00cet0/mali_kbase_device.o' failed
make[4]: *** [drivers/gpu/arm/bifrost-r8p0-00cet0/mali_kbase_device.o] Error 1

I am using this source https://github.com/fromfuture/elizium I tried to look for ways on how I could fix the duplicate member error but I could not understand much, I am very new to kernel compiling and C
[Android Software/Hacking General [Developers Only]] nathanchance:
It looks like only CONFIG_PM_DEVFREQ or CONFIG_MALI_DEVFREQ should be set, not both.
[Android Software/Hacking General [Developers Only]] ajituchiha:
I tried to disable PM_DEVFREQ and now I get this error :

/home/ajit/Desktop/Code_Opensource/include/hwnet/ipv4/wifipro_tcp_monitor.h:57:19: warning: ‘s_uidRmnetTcpStat’ defined but not used [-Wunused-variable]
static UIDTCPStat s_uidRmnetTcpStat[MAX_UID_CNT]; /* for rmnet TCP uid Stat */
^
/home/ajit/Desktop/Code_Opensource/drivers/connectivity/hisi/wifi/hmac/hmac_auto_adjust_freq.c: In function ‘hmac_wifi_auto_ddr_init’:
/home/ajit/Desktop/Code_Opensource/drivers/connectivity/hisi/wifi/hmac/hmac_auto_adjust_freq.c:607:45: error: ‘PM_QOS_MEMORY_THROUGHPUT’ undeclared (first use in this function)
pm_qos_add_request(g_pst_wifi_auto_ddr, PM_QOS_MEMORY_THROUGHPUT,
^
/home/ajit/Desktop/Code_Opensource/drivers/connectivity/hisi/wifi/hmac/hmac_auto_adjust_freq.c:607:45: note: each undeclared identifier is reported only once for each function it appears in
/home/ajit/Desktop/Code_Opensource/drivers/connectivity/hisi/wifi/hmac/hmac_auto_adjust_freq.c:608:24: error: ‘PM_QOS_MEMORY_THROUGHPUT_DEFAULT_VALUE’ undeclared (first use in this function)
PM_QOS_MEMORY_THROUGHPUT_DEFAULT_VALUE);
^
/home/ajit/Desktop/Code_Opensource/scripts/Makefile.build:285: recipe for target 'drivers/connectivity/hisi/wifi/hmac/hmac_auto_adjust_freq.o' failed
make[5]: *** [drivers/connectivity/hisi/wifi/hmac/hmac_auto_adjust_freq.o] Error 1
make[5]: *** Waiting for unfinished jobs....

According to the error, it seems it needs PM_DEVFREQ to be enabled..

This problem does not exist when only PM_DEVFREQ is enabled. But according to one of my GPU configs, I need to enable MALI_DEVFREQ to to enable simple_ondemand(and other gpu governors).

But I found a dirty way to fix my previous error, I included the devfreq_cooling.h(it already existed) and then I removed

devfreq * from struct devfreq *devfreq and did the same with the other line. This apparently fixed the issue but it seems that there are a lot of files being called out but they are missing in the kernel. If I add one file I found out that something else is missing as well
[Android Software/Hacking General [Developers Only]] milouk:
[MENTION=6842057]nathanchance[/MENTION] i got some questions.

1) Which one of "Image" , "Image-dtb" , "Image.gz" do we use?

2) Im running Lineage 15.1 on my bullhead. As a kernel source code should i use the Lineage kernel source or the google kernel source?

3) I have managed to compile a kernel already using gcc 4.9 but when i flash it the phone reboots to bootloader and if i restart system it hangs on the google logo. Any chance you know whats going on?

Thanks in advance
[Android Software/Hacking General [Developers Only]] nathanchance:
1. Usually the dtb one.

2. I'd use Lineage's.

3. How are you flashing it?
[Android Software/Hacking General [Developers Only]] milouk:
Im unpacking the original boot.img from latest lineage build .

Replacing the original image with the Image.gz-dtb (after renaming it)

Repacking and the flash it via twrp

Edit: I finally managed to build a working kernel! Thanks for your guide
[Android Software/Hacking General [Developers Only]] ThePiGuy:
[MENTION=6842057]nathanchance[/MENTION]

My build finished with

/home/thepiguy/kernel/kernel/scripts/Makefile.fwinst:45: target '/lib/firmware/sic/p1/L0L55P1_1_11.img' given more than once in the same rule

/home/thepiguy/kernel/kernel/scripts/Makefile.fwinst:45: target '/lib/firmware/sic/p1/p1_limit_mfts_flat.txt' given more than once in the same rule

/home/thepiguy/kernel/kernel/scripts/Makefile.fwinst:45: target '/lib/firmware/sic/p1/p1_limit.txt' given more than once in the same rule

/home/thepiguy/kernel/kernel/scripts/Makefile.fwinst:45: target '/lib/firmware/sic/p1/p1_limit_mfts_curved.txt' given more than once in the same rule

/home/thepiguy/kernel/kernel/scripts/Makefile.fwinst:45: target '/lib/firmware/sic/p1/p1_limit_mfts_folder.txt' given more than once in the same rule

CAT arch/arm64/boot/Image.gz-dtb

Is this normal (lots of guides say you end with a zImage)?

Also, can you just put one of Image, Image.gz or Image.gz-dtb in the TARGET_PREBUILT_KERNEL variable in the BoardConfig.mk file for a LineageOS build
[Android Software/Hacking General [Developers Only]] milouk:
[MENTION=6842057]nathanchance[/MENTION]

im trying to compile with linaro 7.2.1

i have nuked the gcc wrapper and pick the 3.10 commit. when i enter the make clean command i get this error.

make: /home/michael/Desktop/Bullhead_Kernel/gcc-linaro/bin/aarch64-linux-gnu-gcc: Command not found
make: /home/michael/Desktop/Bullhead_Kernel/gcc-linaro/bin/aarch64-linux-gnu-gcc: Command not found
/home/michael/Desktop/Bullhead_Kernel/android_kernel_lge_bullhead/scripts/gcc-version.sh: line 25: /home/michael/Desktop/Bullhead_Kernel/gcc-linaro/bin/aarch64-linux-gnu-gcc: No such file or directory
/home/michael/Desktop/Bullhead_Kernel/android_kernel_lge_bullhead/scripts/gcc-version.sh: line 26: /home/michael/Desktop/Bullhead_Kernel/gcc-linaro/bin/aarch64-linux-gnu-gcc: No such file or directory
/home/michael/Desktop/Bullhead_Kernel/android_kernel_lge_bullhead/scripts/gcc-version.sh: line 25: /home/michael/Desktop/Bullhead_Kernel/gcc-linaro/bin/aarch64-linux-gnu-gcc: No such file or directory
/home/michael/Desktop/Bullhead_Kernel/android_kernel_lge_bullhead/scripts/gcc-version.sh: line 26: /home/michael/Desktop/Bullhead_Kernel/gcc-linaro/bin/aarch64-linux-gnu-gcc: No such file or directory
/home/michael/Desktop/Bullhead_Kernel/android_kernel_lge_bullhead/scripts/gcc-version.sh: line 25: /home/michael/Desktop/Bullhead_Kernel/gcc-linaro/bin/aarch64-linux-gnu-gcc: No such file or directory
/home/michael/Desktop/Bullhead_Kernel/android_kernel_lge_bullhead/scripts/gcc-version.sh: line 26: /home/michael/Desktop/Bullhead_Kernel/gcc-linaro/bin/aarch64-linux-gnu-gcc: No such file or directory

what am i doing wrong?
[Android Software/Hacking General [Developers Only]] nathanchance:
Your CROSS_COMPILE variable is incorrect.
[Android Software/Hacking General [Developers Only]] milouk:
i double checked and it seems fine to me.

i run from the Bullhead_Kernel folder (which contains the source + the toolchain folders)

export CROSS_COMPILE=$(pwd)/gcc-linaro/bin/aarch64-linux-gnu-

*i renamed the toolchain folder to "gcc-linaro" so it is shorter.

i read somewhere that i should export the toolchain to the PATH variable. is this the case? if yes how am i supposed to do it?
[Android Software/Hacking General [Developers Only]] nathanchance:
So if you run

ls $(pwd)/gcc-linaro/bin/aarch64-linux-gnu-

And

ls $CROSS_COMPILE

they show the same thing?
[Android Software/Hacking General [Developers Only]] milouk:
this is what i get but as you can see the path is correct.View attachment 4447696
[Android Software/Hacking General [Developers Only]] nathanchance:
Well that's fine because you didn't have the 'gcc' at the end but now try using make.
[Android Software/Hacking General [Developers Only]] milouk:
When i run "make clean" i get the same error.

When i run "make" i get a new error :eek:

View attachment 4448102
[Android Software/Hacking General [Developers Only]] ankk98:
I tried building a kernel and i am getting make error 2.

this is the error:

i tried to look into the msm_dba.c file and cannot find the problem.

also msm_dba_internal.h file exists.

Any suggestions?
[Android Software/Hacking General [Developers Only]] nathanchance:
Did you follow the advice about the out flag?
[Android Software/Hacking General [Developers Only]] ThePiGuy:
Hi [MENTION=6842057]nathanchance[/MENTION], thanks for the great guide.

I was just wondering, are the errors below affecting my kernel build, or can I ignore them.

/home/thepiguy/kernel/kernel/scripts/Makefile.fwinst:45: target '/lib/firmware/sic/p1/L0L55P1_1_11.img' given more than once in the same rule

/home/thepiguy/kernel/kernel/scripts/Makefile.fwinst:45: target '/lib/firmware/sic/p1/p1_limit_mfts_flat.txt' given more than once in the same rule

/home/thepiguy/kernel/kernel/scripts/Makefile.fwinst:45: target '/lib/firmware/sic/p1/p1_limit.txt' given more than once in the same rule

/home/thepiguy/kernel/kernel/scripts/Makefile.fwinst:45: target '/lib/firmware/sic/p1/p1_limit_mfts_curved.txt' given more than once in the same rule

/home/thepiguy/kernel/kernel/scripts/Makefile.fwinst:45: target '/lib/firmware/sic/p1/p1_limit_mfts_folder.txt' given more than once in the same rule

CAT arch/arm64/boot/Image.gz-dtb

Is this normal (lots of guides say you end with a zImage)?

Also, how would you integrate a custom built kernel into a custom built os (e.g. homebuilt lineage)
[Android Software/Hacking General [Developers Only]] nathanchance:
It looks like you can just ignore them, it means they are defined twice in your Makefile, for whatever reason.

It usually just involves syncing the source via a local manifest then adjusting the defconfig target in BoardConfig.mk in your device tree.
[Android Software/Hacking General [Developers Only]] ThePiGuy:
How about using one you prepared earlier (or a prebuilt one). Can you add it into the build process so it doesn't need to be built again (I heard something about incorporating a zImage)
[Android Software/Hacking General [Developers Only]] ankk98:
Specifying out flag did fix my problem but i did not understand why this happened.

If it needed a out directory than why it ran some part of make process and then gave some error.

I want to understand how it works and why it gave such behaviour?

Can u help?
[Android Software/Hacking General [Developers Only]] milouk:
[MENTION=6842057]nathanchance[/MENTION] i fixed the previous error with the 7.2.1 linaro compiler but i have another issue now.

when trying to compile i get a lot of warnings and compilation stops at

Makefile:817: recipe for target 'drivers' failed
make: *** [drivers] Error 2

any ideas?

View attachment 4451193
[Android Software/Hacking General [Developers Only]] nathanchance:
There's some fatal error somewhere in your compilation, you'll need to figure out which area. If I had to guess, I'd say there is probably still a '-Werror' flag in drivers/staging/qcacld-2.0/Kbuild.
[Android Software/Hacking General [Developers Only]] milouk:
i think this is the fatal error. Is there a way to fix it?

View attachment 4451203
[Android Software/Hacking General [Developers Only]] nathanchance:
Do what I said and remove this line: https://github.com/android-linux-st...reo-m5/drivers/staging/qcacld-2.0/Kbuild#L962
[Android Software/Hacking General [Developers Only]] milouk:
i did this and it compiled till the end without errors but i got no output files. No image files in the "boot" directory.

View attachment 4451243
[Android Software/Hacking General [Developers Only]] nathanchance:
There is still some fatal error then.
[Android Software/Hacking General [Developers Only]] milouk:
The only other error i can see in the logs is in lib/mpi/generic_mpih-mul1.c could this be it?
[Android Software/Hacking General [Developers Only]] nathanchance:
Sounds like it.
[Android Software/Hacking General [Developers Only]] J4jks:
make: *** No rule to make target 'clean'. Stop.

I have just downloaded the source zip and extracted and cloned gcc 4.9

after export with 'make' command I get

raj@Build-raj:/media/raj/Apps and Others/Applications/Android/Kenzo/Fransisco-N/Radon-Kenzo-radon-cm-ng-rebase$ make clean
Makefile:322: warning: overriding recipe for target '/media/raj/Apps'
Makefile:114: warning: ignoring old recipe for target '/media/raj/Apps'
Makefile:322: warning: overriding recipe for target 'and'
Makefile:114: warning: ignoring old recipe for target 'and'
Makefile:323: /media/raj/Apps: No such file or directory
Makefile:323: and: No such file or directory
Makefile:323: Others/Applications/Android/Kenzo/Fransisco-N/Radon-Kenzo-radon-cm-ng-rebase/scripts/Kbuild.include: No such file or directory
Makefile:587: /media/raj/Apps: No such file or directory
Makefile:587: and: No such file or directory
Makefile:587: Others/Applications/Android/Kenzo/Fransisco-N/Radon-Kenzo-radon-cm-ng-rebase/arch/x86/Makefile: No such file or directory
make: /media/raj/Apps: Command not found
/bin/bash: /media/raj/Apps: No such file or directory
Makefile:696: /media/raj/Apps: No such file or directory
Makefile:696: and: No such file or directory
Makefile:696: Others/Applications/Android/Kenzo/Fransisco-N/Radon-Kenzo-radon-cm-ng-rebase/scripts/Makefile.kasan: No such file or directory
make: *** No rule to make target 'Others/Applications/Android/Kenzo/Fransisco-N/Radon-Kenzo-radon-cm-ng-rebase/scripts/Makefile.kasan'. Stop.

I am too noob to this stuff, where is it going wrong.

Thanks
[Android Software/Hacking General [Developers Only]] Uzephi:
You need to specify a folder, like OP suggests. You need to do something like "make O=out -j$(nproc --all)

Edit: it's also better to "git clone link://to.repo" than a tarball or zip to grab your source of possible.

Edit 2: after looking at the errors you're also not specifying your architecture. You're pointing to x86.

export ARCH=arm64 && export SUBARCH=arm64
[Android Software/Hacking General [Developers Only]] J4jks:
Did try "makeO=out -j$" also
[Android Software/Hacking General [Developers Only]] Uzephi:
Sorry, my second edit corrected myself. You're still pointing to your build box's architecture. Run the command "export ARCH=arm64 && export SUBARCH=arm64" run with "arm" if you're running an older arm that isn't 64 bit
[Android Software/Hacking General [Developers Only]] J4jks:
Followed all the steps

Exported the arch also

'Make no rule error from make command'
[Android Software/Hacking General [Developers Only]] J4jks:
Edit : After changing the directory i have cleared the above problem but fatal error comes

raj@Build-raj:/media/raj/Entertainmet/Android/Radon-Kenzo-radon-cm-ng-rebase$ make clean
arch/x86/Makefile:148: CONFIG_X86_X32 enabled but no binutils support
Makefile:702: Cannot use CONFIG_CC_STACKPROTECTOR_STRONG: -fstack-protector-strong not supported by compiler
scripts/basic/fixdep.c:444:1: fatal error: opening dependency file scripts/basic/.fixdep.d: Permission denied
}
^
compilation terminated.
make[4]: *** [scripts/basic/fixdep] Error 1
make[3]: *** [scripts_basic] Error 2
[Android Software/Hacking General [Developers Only]] nithin1992:
fstack-protector-strong - Which version of gcc are you using? You might have to get 4.9 to get this to work.

[MENTION=6842057]nathanchance[/MENTION], Hey I'm using docker ubuntu trusty to get my build going for the Pixel 2 XL, but the makefile doesn't seem to be reading the variables and keeps trying x86.

If I do,

sudo make ARCH=$ARCH SUBARCH=$SUBARCH CROSS_COMPILE=$CROSS_COMPILE wahoo_defconfig

it's now able to find the defconfig file correctly by searching in arm64 configs.

However the rest of the compilation seems to be happening on x86 files and finally fails, mostly because of that.

In file included from arch/x86/kernel/cpu/proc.c:5:0:

include/linux/cpufreq.h:665:47: error: unknown type name 'cputime_t'

void acct_update_power(struct task_struct *p, cputime_t cputime);

Any idea how I can get around this?
[Android Software/Hacking General [Developers Only]] J4jks:
Using 4.9 only
[Android Software/Hacking General [Developers Only]] nathanchance:
You need to pass all of those variables along to the main make command as well

make ARCH=arm64 CROSS_COMPILE="blah blah"

Your issue is your cross compile path isn't getting set properly, show me your commands.
[Android Software/Hacking General [Developers Only]] nithin1992:
I am actually passing everything. Here's my command,

sudo make ARCH=arm64 SUBARCH=arm64 CROSS_COMPILE=/home/kernel-dev/aarch64-linux-android-4.9/bin/aarch64-linux-android- wahoo_defconfig
[Android Software/Hacking General [Developers Only]] nathanchance:
And then how are you starting compilation?
[Android Software/Hacking General [Developers Only]] nithin1992:
I use this and this is the error I get,

sudo make ARCH=arm64 SUBARCH=arm64 CROSS_COMPILE='/home/kernel-dev/aarch64-linux-android-4.9/bin/aarch64-linux-android-' -j$(nproc --all)

Makefile:707: Cannot use CONFIG_CC_STACKPROTECTOR_STRONG: -fstack-protector-strong not supported by compiler

make: /home/kernel-dev/aarch64-linux-android-4.9/bin/aarch64-linux-android-gcc: Command not found

CHK include/config/kernel.release

CHK include/generated/uapi/linux/version.h

CC scripts/mod/empty.o

/bin/sh: 1: /home/kernel-dev/aarch64-linux-android-4.9/bin/aarch64-linux-android-gcc: not found

make[2]: *** [scripts/mod/empty.o] Error 127

make[1]: *** [scripts/mod] Error 2

make: *** [scripts] Error 2

make: *** Waiting for unfinished jobs....

ls -lrt /home/kernel-dev/aarch64-linux-android-4.9/bin/aarch64-linux-android-gcc

-rwxr-xr-x 1 root root 1799 Mar 19 22:21 /home/kernel-dev/aarch64-linux-android-4.9/bin/aarch64-linux-android-gcc

Is there elsewhere I could probably bother you a bit quicker, sorry? Telegram if possible?
[Android Software/Hacking General [Developers Only]] nathanchance:
https://t.me/LinuxKernelNewbies
[Android Software/Hacking General [Developers Only]] karthik km:
I compiled the kernel with linaro 7.2 and headset Jack is broken ( my device not able to detect headset, when it is plugged)

Then I compiled using ubertc. And same problem exists

Only stock compiler gcc version 4.9 and now my kernel looks good and also detect headset

So can any one tell me

What is the problem exists with this?
[Android Software/Hacking General [Developers Only]] DSA:
logs?
[Android Software/Hacking General [Developers Only]] karthik km:
What kind of logs you want

1) compilation logs

2) device full logcat

Actually I checked logcat

It doesn't show anything when headset is plugged

I provide logcats when I compile new one

Thanks
[Android Software/Hacking General [Developers Only]] vicatz:
At msm_dba.c find this #include <msm_dba_internal.h> , then edited like this #include "msm_dba_internal.h"
[Android Software/Hacking General [Developers Only]] ankk98:
Specifying out directory fixed the issue.

BTW why i should do that whats wrong in <> ?
[Android Software/Hacking General [Developers Only]] SyncMaster:
Hello, thanks for this guide. I have a problem, I successfully compile kernel and my phone wont boot, just stuck on sony logo. Can you suggest me what may be a problem, and where should I look at? Tried to look into defconfig but dont understand what is what.
[Android Software/Hacking General [Developers Only]] Uzephi:
What commands did you use to build, which defconfig, what is your boot log, if you even get to that point?
[Android Software/Hacking General [Developers Only]] SyncMaster:
Here are commands that I used to compile:

ARCH=arm CROSS_COMPILE=/home/muhamed/linaro_4.9.1/bin/arm-cortex_a15-linux-gnueabihf- make shinano_leo_defconfig

ARCH=arm CROSS_COMPILE=/home/muhamed/linaro_4.9.1/bin/arm-cortex_a15-linux-gnueabihf- make -j 4

and defconfig I used is for xperia z3(shinano_leo). Well I didnt think so much about boot log, and didnt research how to do it. So I just compiled and tried many times and it didnt work. How can I find my boot log ? :confused:
[Android Software/Hacking General [Developers Only]] Uzephi:
Everything seems right. You building from Sony source or a known good source that boots? Its best to try and build and boot a known working source first. What output are you installing? zImage, binary, etc?
[Android Software/Hacking General [Developers Only]] SyncMaster:
I built it from Omnis source. It is supposed to work because that source is used for custom rom that I am currently using (Omni rom 8.1). And the problem is that there are no other sources that "works" with this rom. I flashed boot.img, if you mean that? And tried to repacked with zImage, and zImage-dtb with dt.img(that I built from). With dt.img I built it wont show logo and with original it shows logo but stuck. Maybe I should try to build it with different rom. :(

Thanks for your reply :D
[Android Software/Hacking General [Developers Only]] iissmart:
When compiling the stock kernel for Pixel 2 XL devices does something need to be changed to enable fast charging? I don't have a device to test with but I'm hearing that users lose fast charging after flashing my kernel.

Using the same kernel on a Pixel 2 (not XL) seems to fast charge fine.

Right now I'm changing the following from 'm' to 'y':

CONFIG_LGE_TOUCH_CORE

CONFIG_LGE_TOUCH_CORE_BASE

CONFIG_LGE_TOUCH_LGSIC_SW49408

CONFIG_TOUCHSCREEN_FTM4

CONFIG_TOUCHSCREEN_SYNAPTICS_DSX_CORE_HTC

CONFIG_TOUCHSCREEN_SYNAPTICS_DSX_RMI_DEV_HTC

CONFIG_TOUCHSCREEN_SYNAPTICS_DSX_FW_UPDATE_HTC

Should I do the same for CONFIG_LGE_BATTERY and CONFIG_HTC_BATTERY?
[Android Software/Hacking General [Developers Only]] nathanchance:
Yes. Read this page I've written.

https://github.com/android-linux-stable/notes/blob/master/usability-notes/wahoo.md
[Android Software/Hacking General [Developers Only]] Dior DNA:
I am thinking of building your https://github.com/nathanchance/op5.git myself.

Which defconfig or .config should I chose ?

Thanks
[Android Software/Hacking General [Developers Only]] nathanchance:
flash-oos_defconfig if you are on OxygenOS, flash-custom_defconfig if you are on a custom ROM.
[Android Software/Hacking General [Developers Only]] Dior DNA:
thanks for quick reply !