Commit Graph

10 Commits

Author SHA1 Message Date
Michael Bestas ca1004e860 build: Fix kernelsavedefconfig target
Change-Id: Ie3d9a187693f2435f2555658c833de666848e48e
2024-09-07 15:45:38 +02:00
Tim Schumacher 0e721b6a4e kernel: Fix the check for official builds
The check for official builds now only affects the case where a prebuilt
kernel was actually used, not the case where a device builds a kernel
from source as normal.

The check has also been turned around so that it only fails the build if
it's actually an official build, not an unofficial one.

Change-Id: I1280b16b90589742c2abe7f3f6f5975a3aaeea03
2022-07-30 14:25:10 +00:00
Sebastiano Barezzi 9d4bb8e43c kernel: Add TARGET_FORCE_PREBUILT_KERNEL flag
* TARGET_FORCE_PREBUILT_KERNEL should be useful when you don't have ready kernel sources (OEM releasing broken sources or releasing them lately)
* It lets you use kernel sources for userspace generated headers (generated_kernel_headers) while keeping using prebuilt kernel
* Keep in mind that generated kernel headers may not align with the ABI of kernel you're including
* This commit also partially revert commit a836d79, where TARGET_KERNEL_SOURCE would have been unset if TARGET_PREBUILT_KERNEL was defined (we already check in kernel.mk if kernel sources are present anyway)

Change-Id: I84acae890dabb5b9dbd48143ad58f6420c0cef75
2022-07-30 14:24:30 +00:00
Alessandro Astone c84395eada Revert "Revert "kernel: fix KERNEL_TOOLCHAIN_PATH_gcc and usage""
The fix was correct...

This reverts commit 168fd231b65f3bd575529984f552354f4c5e3e8b.

Change-Id: If550fd44f32b801553b8ac23cb2a91d3f29df557
2022-07-30 14:24:09 +00:00
Alexander Koskovich ea442ffb45 lineage: config: Make LLVM kernel compile the default
* GCC was deprecated awhile ago, the large majority
   of devices should now be using this. Clang should
   be opt out as opposed to opt in.

Change-Id: Ie388aff8eca189663f2f615f7d059e47eaf2dce3
2022-07-30 14:23:42 +00:00
Captain Throwback 5a109b76f3 twrp-depmod: only run when TW_LOAD_VENDOR_MODULES is set (2/2)
Change-Id: Id9519c8fb38c7033eb1b34b70f97051e04cb5647
2022-05-28 17:47:57 +00:00
bigbiff 484390ec9c depmod: generate module information for prebuilt ramdisk modules
Change-Id: Id89ae77a3951fb6d05cf54b10a821f4744085aed
2021-09-29 20:46:45 +00:00
Captain Throwback 88ffc5784c Remove prebuilt kernel warning
We actually prefer it.

Change-Id: I9b3cbc04d8083e5c1041d3ca9bead14e42a6b7b9
2021-08-30 23:00:39 -04:00
nebrassy a667d6f30e Kernel: allow outputting kernel modules to recovery
Change-Id: I6d23f2d21a4406f6838de5c951741bf673a5423d
2021-06-16 11:34:35 +02:00
Captain Throwback 6e472d3adc twrp: setup custom vendor for TWRP-only tree
- Based on vendor_omni, renamed & cleaned up

Change-Id: I4661f7cca770a4c55cfd428e60d29f994725033e
2021-05-01 18:06:03 +02:00