summaryrefslogtreecommitdiff
path: root/buildkernel.sh
AgeCommit message (Collapse)Author
2022-01-13kernelscripts: Fix module build support.Anay Wadhera
Change-Id: Iaebe95c89bad68e69a7cf79fe9faa7b3a84149c4
2022-01-13kernelscripts: Switch to better way of checking for dtbo files.Anay Wadhera
Change-Id: I5f589d90b6d516926d9c31efbd10de446761c0ac
2022-01-13buildkernel: Only copy DTBO if they actually exist.Alexander Koskovich
Change-Id: I1f12634aa806c6f93d9819926b2ddc0aed050cf6
2022-01-13kernelscripts: Support building kernels without module support.Anay Wadhera
Change-Id: Ice147125fea1658e4c7bb9b5df15cfc6df145afe
2022-01-13kernelscripts: Fix GKI config generation and fix unstripped module location.Anay Wadhera
Change-Id: I01fcc121905c2c96f9b0e6e0494d98f616f5ccab
2022-01-13kernelscripts: Make DTB/DTBO building vendor-agnostic.Jake Weinstein
* No need to hardcode qcom without a way to change it. Change-Id: Ifd69ca2b58bf708ec590615557bfd615acf3e5ef
2021-03-23kernelscripts: Use the toybox tool for nproc utilityShadab Naseem
The nproc host tools to know the number of available cores for building make was being flagged for Disallowed PATH. Replace it with the toybox tool utility. Change-Id: I1117066546bd7b60572bc5321936554862a8b3f9 Signed-off-by: Shadab Naseem <snaseem@codeaurora.org>
2021-01-19Revert "kernelscripts: Add support for modules_prepare for modules"Yogesh Lal
As GKI and QGKI scratch build is broken. This reverts commit f90523ca9bf80e74181aa18201caa50d516c4de6. Change-Id: I565fc0e02ee1fc239357c8c204ddc153a6099ca1
2020-12-16kernelscripts: Add support for modules_prepare for modulesJeevan Shriram
Add support for modules_prepare for preparing kernel for compiling external modules in parallel. This helps in saving complete android build time of 10-15 minutes approximately as external modules are compiled early on without waiting for the kernel image to compile first. Change-Id: Ibacb40fc9e22725366f39e3d79f474db336768b1
2020-07-29kernel_definitions: Build the QGKI and GKI kernels in parallelRaghavendra Rao Ananta
For $(PLATFORM)-qgki_defconfig, currently we build GKI and QGKI kernels in a serial manner. To improve the build time, build the kernels in parallel. For this, remove the 'make' target dependencies between the two kernel builds and make sure that the defconfigs for both the kernels are generated in sequence. Change-Id: I55a12a5bc0de3c4eca9ba773a5cf20e2b104a0ee Signed-off-by: Raghavendra Rao Ananta <rananta@codeaurora.org>
2020-07-17blocklist: Replace all '-' to '_' in blocklist filePrakruthi Deepak Heragu
Modprobe doesn't differenciate between '-' and '_'. That is, the output of 'modprobe -l' returns module names with '_' even though the .ko file has '-' in the name. Since we compare this output with the file name to check if the file is actually blocklisted in vendor_modprobe script, we fail. Hence, convert all the module names in the blocklist file to '_'. This change won't affect the modprobe -b. Change-Id: Ia5e6910b533d4aa491a96b3f00bf1017780502c5 Signed-off-by: Prakruthi Deepak Heragu <pheragu@codeaurora.org>
2020-07-16kernelscripts: Rename modules.blacklist to modules.blocklistPrakruthi Deepak Heragu
As modprobe utility now uses modules.blocklist file to find the list of modules not to insert into the kernel, rename the modules.blacklist file to modules.blocklist. Replace all blacklist to blocklist in the modules.blocklist file. Change-Id: I9205b4f41149c60a8c2d06e329d34d61f46780a1 Signed-off-by: Prakruthi Deepak Heragu <pheragu@codeaurora.org>
2020-06-23kernelscripts: Enhance the build scripts to build additional kernelRaghavendra Rao Ananta
For the sake of GKI compliance testing, QGKI and GKI should be sharing the same vendor.img and vendor_boot.img. Hence, the idea is to build the GKI kernel along with QGKI such that the modules could be packaged accordingly. Change-Id: I72141017240c68278714bd9f4a9338e6a7fc3dfc Signed-off-by: Raghavendra Rao Ananta <rananta@codeaurora.org>
2020-04-15buildkernel: Add support to rename modules which has hyphen in the namePrakruthi Deepak Heragu
Modprobe converts every hyphen in the name of a module to underscore. Debugging such modules with names having hyphen in t32 simulator, gave an error of module not found. So, rename all modules in unstripped folder by replacing all hyphens in the name to underscores. Change-Id: I4dd84ae203d6e2d8b1047da85fd491f63620b019 Signed-off-by: Prakruthi Deepak Heragu <pheragu@codeaurora.org>
2020-04-04buildkernel: Save unstripped modules for debuggingRaghavendra Rao Ananta
Currently, the build script installs the modules by stripping off the symbol information, which further then gets placed on the target. However, this symbol information is really useful for performing postmortem analysis. Hence, install a separate copy of unstripped modules for this purpose. Change-Id: I415fd65d125d91bd054b748651773e2079d9fe50 Signed-off-by: Raghavendra Rao Ananta <rananta@codeaurora.org>
2020-03-22Merge "buildkernel: Clean the dlkm directory prior to copying the binaries"qctecmdr
2020-03-12buildkernel: Clean the dlkm directory prior to copying the binariesRaghavendra Rao Ananta
In the case of incremental builds it's possible that the $KERNEL_MODULES_OUT directory contains stale .ko files from previous builds. This would inturn get packaged into the final image, which is incorrect. Hence, make sure to clean and start with a fresh directory to stage the modules. Change-Id: I7c22527baf9d181f1aa88a12fd8123ec35342fda Signed-off-by: Raghavendra Rao Ananta <rananta@codeaurora.org>
2020-03-03kernel/build: remove kernel sha generation on the kernel projectJeevan Shriram
kernel sha is no more being used for storing the prebuilt images. Change-Id: I2afb2e72b591d480ba0436929f7a2a3e6848801b
2020-02-11kernel/build: Add path for prebuilt location of makeJeevan Shriram
Android build system restricts usage of make from host machine and use the binaries from the prebuilt location. Update kernel script to use the make from prebuilt location. Change-Id: I3886e73a1a2219449a9fc4abb29ab7208a15eedf
2020-01-07kernelscripts: Package vendor and vendor-ramdisk kernel modulesRaghavendra Rao Ananta
Archive the kernel modules that goes into vendor.img and vendor-ramdisk.img and assign it to BOARD_VENDOR_KERNEL_MODULE_ARCHIVE and BOARD_VENDOR_RAMDISK_KERNEL_MODULE_ARCHIVE, respectively. Change-Id: I903ef51e25ee7ac52efd3279b5d41c13fedf2585
2019-10-01kernelscripts: Add snapshots of buildkernel.sh and kernel_definitions.mkRaghavendra Rao Ananta
By default, the build.sh provides a mechanism to compile the kernel as a standalone component, and is not helpful to compile from within the Android tree. As a result, add the snapshots of kernel_definitions.mk and buildkernel.sh files to support kernel compilation from within the Android tree. The snaphot is taken from msm-4.19 branch as of commit <0780fd437f12d401c> (kernel/build: remove wildcard entry for updating makefile variable). Change-Id: I63b3859a9c7d7b5bcf19320fe62235f432f9817a