summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2024-02-04kernel_definitions: Allow overriding module support checkuminekoalk3pInjection
Change-Id: I218adcd6cc4bcdc858a7d38f6f8264a487dc8461
2024-02-04kernel_definitions: Properly find target kernel image if specifiedalk3pInjection
Change-Id: I4c28a2bbb4fbde62321e7a43a6f76712d8a0dbcc
2024-02-04kernelscripts: Allow devices to use GCCCyber Knight
- This patch is heavily inspired by [1]. - It was made to facilitate support for devices that build the kernel with GCC. [1]: https://gerrit.aospa.co/c/AOSPA/android_vendor_pa/+/8673 Also squashes: Author: Mashopy <eliasgheeraert@gmail.com> Date: Mon Apr 24 18:40:07 2023 +0200 kernelscript: Enforce KERNEL_CROSS_COMPILE to aarch64-linux-gnu- and properly support vdso32 KERNEL_CROSS_COMPILE should not been set to arm-eabi- since arm64 kernels expect an aarch64 GNU binary for CROSS_COMPILER. CROSS_COMPILE_ARM32 is currently used by Linux kernels who have an outdated vdso backport like 4.9, but is unused on Linux kernel 4.19 and newer since it got renamed to CROSS_COMPILE_COMPAT during vdso32 bringup. Add CROSS_COMPILE_COMPAT variable for properly support vdso32 on these newer Linux kernels. This also fix an issue where some CC related features like SCS, STACKPROTECTOR, INIT_STACK_ZERO and KASAN weren't available on some kernels despite that some of them depends over clang binary and not GNU binary. Also make sure llvm-objcopy is used as some kernels try to look for aarch64-linux-gnu-objcopy and fail to build. Change-Id: I093a6c7f798c0d111bd04d1cf089c4d5bc9a3028 Change-Id: Icaa9251a8e151d92f84fa10fa14b6b7becfd8927
2024-02-04kernelscripts: Use {lz4, pahole} from Google prebuiltsLuK1337
Fixes: "lz4" is not allowed to be used. Also squashes: Author: Bruno Martins <bgcngm@gmail.com> Date: Tue Sep 19 15:59:00 2023 +0100 kernel: Use pahole from Google prebuilts This fixes the following warnings: 13:04:54 Disallowed PATH tool "pahole" used: []string{"pahole", "--version"} 13:04:54 See https://android.googlesource.com/platform/build/+/master/Changes.md#PATH_Tools for more information. "pahole" is not allowed to be used. See https://android.googlesource.com/platform/build/+/master/Changes.md#PATH_Tools for more information. Change-Id: Ice2a3753301a7b7782037fd35544e2831b258650 Test: breakfast tangorpro && m bootimage Change-Id: I62cfe131f457117cb3745b91f5e43c085e87b611
2024-02-04kernel_definitions: Find all possible dtbsYuan Si
Don't hardcode dtb path. ls kernel/msm-4.19/arch/arm64/boot/dts/vendor 19805 19811 19821 19855 20801 20809 20813 20828 bindings Makefile qcom Signed-off-by: Yuan Si <do4suki@gmail.com> Change-Id: I1fa7270c4d32f2dfa4dc0e4ee3fc3e4b02645a6c
2023-08-16kernel_definitions: Skip targets using prebuilt kerneltachibana-mr1Mesquita
Change-Id: I6c2867aee1d2ef6545f671daf04dc45d6d1595d4 Signed-off-by: Mesquita <mesquita@aospa.co>
2022-09-02kernel_definitions: Switch host binutils to LLVMtachibanaalk3pInjection
Change-Id: Ib55aa1c516048c78491dd026fa07d73cec98c18d
2022-09-02Revert "kernelscripts: define CC variable."alk3pInjection
* Pass both variables simultaneously instead. This reverts commit 63901b118b1bf8bd37f14db4c6e649043b7b31ae. Change-Id: Ibfee7c6590e3154f4582bc86467049beb79993df
2022-09-02kernel_definitions: Declare PATH for clang buildAdithya R
* rather than polluting argument list with the full path of every binary * also set LLVM=1 for 4.19 and above kernels Change-Id: Id58568d6f055368eefa97f7c01d45d339755cecb Signed-off-by: alk3pInjection <webmaster@raspii.tech>
2022-09-02kernel_definitions: Do not duplicate arguments in $(cc)Adithya R
* both cc and real_cc are passed everywhere so it makes no sense to duplicate these parameters in both places Change-Id: Ica40da3308a0c338eb70fd363b326b70c75a07b9
2022-02-20kernel_definitions: Remove duplicate generate_defconfig command.HEADsugisawaAdithya R
* its already present in gki guard configuration, so this one is redundant and breaks build in some cases Change-Id: I97480ea18c30a4fae1cc6e298f3333b9fa9a6321
2022-01-13kernel/build: Compile kernel as user always.Alexander Koskovich
* We should never want DebugFS brought in, and we force user for other kernel drivers like QCACLD. Change-Id: I7f77095379678f8b975fc6da106846431aa2bdb8
2022-01-13kernel/build: Fix path overrides.Alexander Koskovich
* GKI/QGKI now succeed in building their defconfigs from the fragments. Change-Id: I35ad362313cee5b8bcb34c3e1ca76410204b2b95
2022-01-13kernelscripts: Guard DTBO support with BOARD_KERNEL_SEPARATED_DTBO.Vishalcj17
Change-Id: I03307fd8e137b2a9960a05344b42967d0a9dd1d5
2022-01-13kernelscripts: Fix module build support.Anay Wadhera
Change-Id: Iaebe95c89bad68e69a7cf79fe9faa7b3a84149c4
2022-01-13kernelscripts: define CC variable.Jake Weinstein
* CAF's script expects this kernel commit to be present: "scripts: gcc-wrapper: Use wrapper to check compiler warnings". In some cases, it is reverted or not present, which causes compile to try to use GCC 4.9 unsuccessfully without this commit. * Since we build with -Werror anyway, this commit is safe because gcc-wrapper is redundant. Google also reverts the same CAF commit. * Vishalcj17 : Adapt for lahaina scripts. Change-Id: Ie172be870737b7960eb3fc595f51e31e753992ed
2022-01-13kernelscripts: Define 32-bit Cross Compile path.Jake Weinstein
* Needed for VDSO on ARM64 Change-Id: I879a527410bd808a2ec810014805751eb01ea021
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-13kernel_definitions: Fix depmod after no longer being hardcoded.Alexander Koskovich
* "depmod" is not allowed to be used. See https://android.googlesource.com/platform/build/+/master/Changes.md#PATH_Tools for more information. https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/Makefile?h=linux-4.19.y&id=ccf4f2933df8bf3b7a070bfbb7b99fbff9fa63cf Change-Id: I5595797a53bf5ef3782674a6a4f1b9ec7acf4656
2022-01-13defs: Remove non-host header path from host includes.Evan Anderson
* HOSTCFLAGS should not include a path to headers from the target kernel source Change-Id: I919081c6b6f8ce36b9c17f0df8b4e5a41fc1442e
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
2022-01-13kernel_definitions: Only use vendor dir for defconfigs if target defconfig ↵Jake Weinstein
is there. Change-Id: I24bbcfb50376a1f81ba2aab02e1fa1e9422d2dcb
2022-01-13kernel_definitions: Only use vendor DTB directory if exists.Alexander Koskovich
Change-Id: I8bf4b0ed05524fb315f8576e85ea30f03f40361f
2022-01-13kernel_definitions: Account for all possible DTB paths.Anay Wadhera
Change-Id: Idb915d2ca866c2445efeb90400f5d29593097004
2022-01-13kernelscripts: Define TARGET_KERNEL_APPEND_DTB if BOARD_KERNEL_IMAGE_NAME := ↵Jake Weinstein
Image.gz-dtb. * No reason to make this incompatible with literally every other ROM. Change-Id: I2742816adf1ccdf7975dd23d0e3e76f81dda60d4
2022-01-13kernelscripts: Use TARGET_KERNEL_CONFIG if KERNEL_DEFCONFIG is not defined.Jake Weinstein
* Maintain a list of legacy definitions to make it easier for device maintainers. Change-Id: I85bfa23236661322409bd811f57401849bbe44be
2022-01-13kernel_definitions: Use OUT_DIR for custom out directory detection.StyloGey
* Checking for OUT_DIR_COMMON_BASE is not possible because it is unset by Soong. Change-Id: I384724d8c24a79a18a020f6bd84a53b93a370887
2022-01-13kernelscripts: Ditch UFDT overlay check for all.Jyotiraditya
Change-Id: I4c29cf548f7a5fe4c25c7f73a698bdf1e29a195d
2022-01-13kernel_definitions: Condition DTC location on out directory.Anay Wadhera
Change-Id: I4ab8601daaaca0fcf04de92444433580c2571bab
2022-01-13kernelscripts: Remove extra definitions in DTC_EXT.Anay Wadhera
* This breaks compile if the builder has specified an outdir other than out/ * This was likely a result of trying to get an absolute path for outdirs == out/ but there are better ways to do this Change-Id: Ie4df500db3ad8d3233062dfbde5f648428e67553
2022-01-13kernel_definitions: Point to AOSP build tools.Alexander Koskovich
Change-Id: Ia323d40e867f3afe7adc6c527d608a1730dde5b6
2021-06-08Merge b9abda3015969430b55b7b84021a36178a116376 on remote branchLinux Build Service Account
Change-Id: I421ae81bf4903979e4b42500987666a4a1d3edf2
2021-05-24kernelscripts: Add defconfig support for 32 bit targetsNagireddy Annem
Add support to generate defconfig for 32 bit targets. Change-Id: I55c560a97e249d1bb0f0e7c80055545d4ac795ca
2021-04-22Merge f72a723991abf8dea65df17569b1361e6b323ff2 on remote branchLinux Build Service Account
Change-Id: I5deaf6c110d3a6b97bb9434f101472974193e452
2021-04-12Merge "kernelscripts: Use the toybox tool for nproc utility"qctecmdr
2021-04-09Merge 16a93690a2d8ddd236afc843f575c0b9c299e492 on remote branchLinux Build Service Account
Change-Id: I8d3f55a56d092e3bab88b6be50862acfaf5ea648
2021-03-23kernel/build: Optimize no-change incremental kernel buildJeevan Shriram
1. Save and revert the timestamp of KERNEL_USR to the creation of kheaders file to avoid re-compilation of external/vendor modules during no-operation incremental build due to dependency on KERNEL_USR rule. 2.Avoid deletion and re-creation of the symlink in the KERNEL_OUT rule. 3. De-couple KERNEL_USR timestamp from KERNEL_OUT and KENREL_HEADERS_INSTALL target rules. Change-Id: Iea00cdd05477e767bfcab2eb489c4c70e65907c2
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-03-03Merge 9f2985b5d79297ea4e29716b7fff37ef4c4a4d3d on remote branchLinux Build Service Account
Change-Id: I443376d2cad40038bb7deebabdc21f2e2682385d
2021-02-23kernelscripts: Add qca_cld3_qca6390 driver in module blocklistMohammed Siddiq
Add qca_cld3_qca6390 wlan driver in module blocklist. The driver for qca6490 will be loaded via init.target.rc script hence added in module blocklist to avoid the loading via vendor_modprobe script. Change-Id: I2fe8df8d4f90a81d8c4b93c4df4e5197f8a292e0 Signed-off-by: Mohammed Siddiq <msiddiq@codeaurora.org>
2021-02-17kernelscripts: Add qca_cld3_qca6390 driver in module blocklistMohammed Siddiq
Add qca_cld3_qca6390 wlan driver in module blocklist. The driver for qca6490 will be loaded via init.target.rc script hence added in module blocklist to avoid the loading via vendor_modprobe script. Change-Id: I2fe8df8d4f90a81d8c4b93c4df4e5197f8a292e0 Signed-off-by: Mohammed Siddiq <msiddiq@codeaurora.org>
2021-01-23Merge 883cc45323a269456c13e14e42a46f41d586610d on remote branchLinux Build Service Account
Change-Id: I65c0cd6d437f2f6818f2d537a26fee827f42e595
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
2021-01-16Merge "kernelscripts: Add support for modules_prepare for modules"qctecmdr
2021-01-13Merge 816f5cc2bc8c3be3f38c0d13f6ecf8f84b8507af on remote branchLinux Build Service Account
Change-Id: I392b30d88570983baa778ae820fb7b1325609a3e
2021-01-06kernel_definitions: Add kernel dependency for ramdisk modulesRaghavendra Rao Ananta
Add kernel build dependency for ramdisk modules for the ramdisk packaging to wait until the kernel is built completely. Change-Id: I210793b6b4a64b658db2f23cb6a986dee50427ad Signed-off-by: Raghavendra Rao Ananta <rananta@codeaurora.org>
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