summaryrefslogtreecommitdiff
path: root/kernel_definitions.mk
AgeCommit message (Collapse)Author
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: 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: 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-05-24kernelscripts: Add defconfig support for 32 bit targetsNagireddy Annem
Add support to generate defconfig for 32 bit targets. Change-Id: I55c560a97e249d1bb0f0e7c80055545d4ac795ca
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-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-11-03kernel_definitions.mk: Remove setting of BOARD_KERNEL_BINARIESRaghavendra Rao Ananta
Remove setting of BOARD_KERNEL_BINARIES as Android-S doesn't allow seeting this 'make' target from kernel_definitions.mk. Change-Id: I394bc83a3f13663afc69422ae77d1133e2f4e2eb Signed-off-by: Raghavendra Rao Ananta <rananta@codeaurora.org>
2020-08-21kernel_definitions: Pass TARGET_BUILD_VARIANT to generate_defconfig.shRaghavendra Rao Ananta
generate_defconfig.sh uses the TARGET_BUILD_VARIANT env variable to determine if DEBUG_FS has to be enabled or not. Hence, explicitly set this in generate_defconfig.sh's environment for it to take effect. Change-Id: I927b59971687d74dc41652888399df9ede547d8f Signed-off-by: Raghavendra Rao Ananta <rananta@codeaurora.org>
2020-08-10kernel_definitions: Force GKI kernel to be builtRaghavendra Rao Ananta
The build system doesn't seem to trigger the target to build the GKI kernel, thus leading to inconsistent builds. Hence, add a make target dependency on creating a GKI_OUT directory to force building GKI kernel. Change-Id: I58a3c3901de5bc6c67e02d9fc2cfb023b5b43e44 Signed-off-by: Raghavendra Rao Ananta <rananta@codeaurora.org>
2020-08-06kernel_definitions: Make GKI kernel dependent on UFDT_APPLY_OVERLAYRaghavendra Rao Ananta
With parallel GKI and QGKI kernel compilations, if GKI build starts first it needs the ufdt_apply_overlay host tool present. Hence, add an explicit dependency for the same. Change-Id: Ibc185d684b1ca3a1923c689e80904a3a5ee9a8cb Signed-off-by: Raghavendra Rao Ananta <rananta@codeaurora.org>
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-06-30add auto kernel defconfigVijayakumar Badiger
Change-Id: I672b065120d70fdb052e634c4cd837e5afe13f51
2020-06-24Merge "kernelscripts: Enhance the build scripts to build additional kernel"qctecmdr
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-05-22scripts: gki: Add support for qgki-consolidate_defconfigBruce Levy
The consolidated config fragment is containing/moving all the debug options from debug fragment except the ones which are incurring power and performance penalties. Change-Id: I12a45228bd86a1d5304e06447f1db019563ba718 Signed-off-by: Bruce Levy <blevy@codeaurora.org>
2020-04-28kernel_definitions: Avoid direct usage of TARGET_PRODUCTNaveen Ramaraj
This allows seeding of new Android lunch targets to be decoupled from kernel script updates. Remove this non portable usage and use TARGET_BOARD_PLATFORM instead which achieves the same result. Change-Id: I295be4aee000b4532854e15d844fa74423f52335
2020-04-20kernel_definitions: Export NMRaghavendra Rao Ananta
Export NM to llvm-nm prebuilts path as $NM is used internally by many of the kernel scripts. This is especially needed when LTO is enabled as GCC's nm utility fails to read the object files. Change-Id: Id56ff5faf9544e4c2547f43cc7a7c380ffb15354 Signed-off-by: Raghavendra Rao Ananta <rananta@codeaurora.org>
2020-03-11kernelscripts: Use Linker from platform tools if AOSP tools are unavailablePrakruthi Deepak Heragu
Use binaries from platform toolchain if kernel AOSP toolchains are not available. Change-Id: Ia84eed9a82a7a09d00c475313dce16530ce25dd1 Signed-off-by: Prakruthi Deepak Heragu <pheragu@codeaurora.org>
2020-02-25Merge "kernelscripts: Use AR as env variable instead of LLVM_AR"qctecmdr
2020-02-25kernelscripts: Use AR as env variable instead of LLVM_ARPrakruthi Deepak Heragu
Assign the prebuilt tools to AR and pass it to make as an environment variable. Change-Id: I1f374a423c603206fef62b12af95fabd46a661c0 Signed-off-by: Prakruthi Deepak Heragu <pheragu@codeaurora.org>
2020-02-21Merge "kernel_definitions: Use clang as the HOSTCC for kernel build"qctecmdr
2020-02-19kernelscripts: Use prebuilt MAKE PATH while invoking scripts in kernelPrakruthi Deepak Heragu
Use prebuilt make binary in all make commands used in kernel scripts like generate_defconfig.sh and merge_config.sh scripts. Change-Id: I53e9e7f67d95278fb581c1d4b5e30ebf2ae8ecc3 Signed-off-by: Prakruthi Deepak Heragu <pheragu@codeaurora.org>
2020-02-18kernel_definitions: Use clang as the HOSTCC for kernel buildDivya Sharma
upstream plans to deprecate gcc, use clang for HOSTCC. Bug: 148566020 Change-Id: Iee824bb3c949f142852a34e94b256af03d41c5d8
2020-02-18Merge "kernelscripts: Add linker needed for CFI/LTO enablement"qctecmdr
2020-02-13Merge "kernel/build: Add path for prebuilt location of make"qctecmdr
2020-02-11kernel_definitions: Fix typo in headers installRishabh Bhatnagar
Typo in headers install forced kernel compilation instead of just generating kernel headers. Change-Id: I35d154104c076ed447a864bd7a6c297e20328746
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-23kernelscripts: Add linker needed for CFI/LTO enablementPrakruthi Deepak Heragu
For compilation, use the linker present in the AOSP LLVM for CFI/LTO to be enabled. Change-Id: I7c20cdc6ba3c743c9c111c87ac6af8e50e19261a
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-12-10kernelscripts: Use AOSP LLVM for kernel compilationPrakruthi Deepak Heragu
Use AOSP LLVM for compiling the kernel. If the latest AOSP Clang is not present, fall back to the AOSP Clang specified in the platform toolchain. Change-Id: Iffac9dad320dc7f7de30480b2d3ca62bf8f05713 Signed-off-by: Prakruthi Deepak Heragu <pheragu@codeaurora.org>
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