-
Notifications
You must be signed in to change notification settings - Fork 464
Description
Build ID
PPW29.116-20-23
Build fingerprint
motorola/evert/evert:9/PPW29.116-20-23/042db:user/release-keys
I edited the fingerprint name of PPW29.116-20-28, as I couldn't find the fingerprint of this version, so this might not be the exact right one.
Additional
I am trying to build this kernel (repo branch: pie-9-release-ppws29.116-20-23) for my Motorola Moto G6 Plus (evert) but I couldn't find any documentation and after trying some things out and doing some research I am stuck and out of options. I hope someone here knows what could be done or where to look for info in order to make this build successful. I know it is an old kernel, but I thought asking was worth a try anyways :)
What error I get during the build phase: (EDIT: ERROR SOLVED - SEE REPLY)
(this is a snippet of what I think is the relevant part, the full log file is attached here: kernel_log.log)
make[1]: Entering directory '/home/edoardo/Desktop/kernel-building/kernel-msm/out'
GEN ./Makefile
scripts/kconfig/conf --silentoldconfig Kconfig
warning: (ICNSS) selects CNSS_UTILS which has unmet direct dependencies (NETDEVICES && WLAN)
warning: (ICNSS) selects CNSS_UTILS which has unmet direct dependencies (NETDEVICES && WLAN)
[......]
In file included from ../security/keys/encrypted-keys/ecryptfs_format.h:21:0,
from ../security/keys/encrypted-keys/encrypted.c:38:
../include/linux/ecryptfs.h:161:12: warning: 'ecryptfs_unregister_from_events' defined but not used [-Wunused-function]
error, forbidden warning: ecryptfs.h:161
make[4]: *** [../scripts/Makefile.build:282: security/keys/encrypted-keys/encrypted.o] Error 1
make[3]: *** [../scripts/Makefile.build:489: security/keys/encrypted-keys] Error 2
make[2]: *** [../scripts/Makefile.build:489: security/keys] Error 2
make[1]: *** [/home/edoardo/Desktop/kernel-building/kernel-msm/Makefile:1010: security] Error 2
make[1]: *** Waiting for unfinished jobs....
[......]
In file included from ../fs/ext4/crypto.c:26:0:
../include/linux/ecryptfs.h:161:12: warning: 'ecryptfs_unregister_from_events' defined but not used [-Wunused-function]
error, forbidden warning: ecryptfs.h:161
make[3]: *** [../scripts/Makefile.build:282: fs/ext4/crypto.o] Error 1
make[2]: *** [../scripts/Makefile.build:489: fs/ext4] Error 2
make[2]: *** Waiting for unfinished jobs....
[......]
make[1]: *** [/home/edoardo/Desktop/kernel-building/kernel-msm/Makefile:1010: fs] Error 2
[......]
make[1]: Leaving directory '/home/edoardo/Desktop/kernel-building/kernel-msm/out'
make: *** [Makefile:152: sub-make] Error 2
What I am using:
- Motorola kernel:
pie-9-release-ppws29.116-20-23(kernel version 4.4.153) - Google GCC Toolchain: aarch64-linux-android-4.9 (branch: pie-qpr3-release)
What I am doing to configure and start the build:
make O=out clean
make O=out mrproper
# Set PATH, CROSS_COMPILE, ARCH variables
export PATH=$PATH:/home/edoardo/Desktop/kernel-building/toolchain-git/aarch64-linux-android-4.9-refs_heads_pie-qpr3-release/bin
export CROSS_COMPILE=aarch64-linux-android-
export ARCH=arm64
# Create the kernel configuration. I use config files in folder arch/arm64/configs/
# I start with the file defconfig
make O=out ARCH=arm64 defconfig
# I then add, in order, the config files: sdm660-perf_defconfig, ext_config/moto-sdm660.config, ext_config/moto-sdm660-evert.config
scripts/kconfig/merge_config.sh -O out -m -r out/.config arch/arm64/configs/sdm660-perf_defconfig
scripts/kconfig/merge_config.sh -O out -m -r out/.config arch/arm64/configs/ext_config/moto-sdm660.config
scripts/kconfig/merge_config.sh -O out -m -r out/.config arch/arm64/configs/ext_config/moto-sdm660-evert.config
# This should apply the changes to the .config file if I understood correctly
make O=out ARCH=arm64 olddefconfig
# Start the build process
make ARCH=arm64 O=out -j$(nproc) 2>&1 | tee kernel_log.log
As the code shows, the sequence I use for creating the config file and then adding the fragments is: start with defconfig and then add sdm660-perf_defconfig, moto-sdm660.config, moto-sdm660-evert.config.
It is based on nothing but intuition, so there's a high chance I am doing the wrong steps here.
I used some help from LLMs as well for a few commands, so there might be hallucinations I didn't pick in the part of the code where I set up the .config file.
If anybody could help in suggesting the right sequence of files for setting up .config, or has other ideas about the source of the error, or points out another crucial step that I am missing, that would be much appreciated, thanks :)