[HELP] Cherry Pick from a local source - Moto G Q&A, Help & Troubleshooting

Hi, I wanted to build a CM12 kernel. I used CM kernel source and built a basic one that booted. Now i want to add features. I referred to guides and understand how to cherrypick using commits but instead of doing git fetch, I git cloned it. Now i have a folder of my kernel and other kernel. How do i cherrypick from that folder into my kernel?

Related

[Q] Where to find Kernel Source for CyanogenMod 9 v4.0.3 v2.1?

Good Evening,
I am modifing the kernel source (the wifi part specifically) working on a CM7 system and I want to migrate to CM9 because of the improvements on the system and kernel.
I know I can get the CM9 source code from CyanogenMod Github repo, but the kernel comes pre-compiled. So my question is:
Where I can find the "official" kernel source code that comes with CyanogenMod 9 v4.0.3 v2.1?​
KalimochoAz's samsung-kernel-crespo repo has been last updated 2 months ago, so I guess the kernel updates must be somewhere else.
Thank you in advance,
Renzo

Forking Cyanogenmod for Grouper

Hi,
I am trying to learn building my own rom based on Cyanogenmod 11 and I am thinking of forking CM11 Grouper's code so I can merge patches to the code. Is there a guide on how to fork the repositories and how to build the rom from the repos? I am trying to fork android_device_asus_grouper and android_kernel_asus_grouper repos but I have no idea how to build from there. Am I missing some other repos?
Thanks.
Probably you would like to have a look on this thread

How to add my own linux kernel module to Pixel2?

I have written a linux kernel module for my Pixel2, and compile it under AOSP source: kernel/msm.git android-msm-wahoo-4.4-oreo-dr1
But when I insmod my module, dmesg reports "disagrees about version of symbol module_layout".
Google told me that the kernel source version I used to compile my kernel module is not corresponding to the kernel source version used to building the official Pixel2 kernel.
Where can I find the kernel source version/branch of AOSP used to build the official Pixel2 kernel?
https://android.googlesource.com/device/google/wahoo-kernel/
Thanks, but this link only has some binaries used for pixel device.
I want to have the kernel source location and its branch and version used to build the pixel 2 official kernel.

What is android_vendor_qcom_opensource_audio_kernel_sm8150 (Kernel Compilation)

I am currently trying to compile the kernel from official source... Worked so far. But what is the audio kernel? How to compile / include in kernel? I am finding zero information on it on Google.

Questions on Kernel compilation

I'm new to the android build system but have been running stripped kernels for years. I'm working on a custom rom for a TCL A30 (MT6762/MT6765).
I've looked at the AOSP code base and TCL source, for a similar device, and it looks like the TCL source generates the needed kernel .config file with scripts. There are multiple scripts for different archs and cellphone carriers. My TCL A30 has a Bangkok_CC (ConsumerCellular) tag and I found arch/arm64/configs/bangkok_TF_defconfig (TracFone). There do not appear to be any patches in the TCL source. The source I found:
TCL-Mobile on sourceforge
Has the Tracfone TCL A3:
Tracfone TCL A3x product link
That source contains Bangkok_TF_defconfig.
I was able to adb pull /proc/config.gz directly from the device and it's running 4.19.126+ released last month.
First question: Can I generate a bangkok_CC_defconfig from /proc/config.gz in the AOSP code base? It is mosttly monolithic
Code:
cat .config | grep =m > kernel_modules.txt
CONFIG_IKHEADERS=m
CONFIG_TCP_CONG_WESTWOOD=m
CONFIG_TCP_CONG_HTCP=m
CONFIG_SERIAL_OF_PLATFORM=m
CONFIG_BATTERY_MT6359=m
CONFIG_SND_SOC_MT6359_ACCDET=m
CONFIG_USB_DUMMY_HCD=m
CONFIG_MMC_SDHCI=m
CONFIG_MMC_SDHCI_PLTFM=m
CONFIG_MMSTAT_TRACER=m
At the time of this post the latest upstream is 4.19.244
Second question: Are most Android projects like Debian/RHEL where they back patch kernel vulnerabilites? Would the most up-to-date kernel result from the latest AOSP source and would building it just be a matter of dropping in my /proc/config.gz and setting the build environment that I found in the TCL source?
I suspect that AOSP is contributing back to kernel.org. Third question: AOSP vs Kernel.org source? Does Google backport like RHEL/Debian? Or would I get a more recent,, secure kernel using upstream kernel.org source?.
Last question Clang vs GCC. I've just setup my Arch Linux build box w/ arm64_gcc. Speed is less important to me than stable builds. What are the arguments for one compiler over another?

Categories

Resources