Commit Graph

21 Commits

Author SHA1 Message Date
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
me-cafebabe 4900ceb008 envsetup: Import cout() function from LineageOS
From commit 3952f6cb0d701223f0b60a52c9f10554a898e564 "Import CM build additions"

Change-Id: I0aaa1fde311fe7e477dde7e139ea37548429e5bb
2022-07-29 20:55:32 +08:00
Nolen Johnson 0e23dae5b8 soong: Add TARGET_LEGACY_HW_DISK_ENCRYPTION conditional
[cafebabe: Move to TWRP soong config namespace]

Change-Id: I2c67fe632d415353273839493a86cdd75bd93b23
2022-06-21 23:19:08 +00:00
me-cafebabe bf884c9089 soong: Allow to specify device specific cryptfs_hw module
Change-Id: Ia0a00afd6952caadfcf0f276277569510faba7b6
2022-06-21 23:18:27 +00:00
me-cafebabe b86f764f97 soong: Import HW FDE configurations from LineageOS
Part of this commit https://github.com/LineageOS/android_vendor_lineage/commit/a98d12f8e328334c4db0796f289d8ce95d36eb59

Change-Id: Ie894712a7ccf290120c2e90e0502b5952b093e63
Co-authored-by: Pig <pig.priv@gmail.com>
2022-06-12 20:29:29 +08: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
Captain Throwback 23d2be09f5 roomservice: update default branch to 12.1
Change-Id: I3431fa191de60889b810061618419a88f4c88ef9
2022-04-10 17:03:56 -04:00
nebrassy a4cdcd264a Update roomservice from PixelExperience
https: //github.com/PixelExperience/vendor_aosp/commits/eleven/build/tools/roomservice.py

adapt to TeamWin repo structure

Change-Id: I400987b5ce6e4042a0c799d95633c2beecde7dcf
2021-11-29 13:07:47 +01:00
XiNGRZ 56e71a1ca7 build: Add support of generating kernel includes for prebuilt kernels
For prebuilt kernels, point TARGET_KERNEL_HEADERS_SOURCE to the dummy
kernel source used to generate headers for HALs.

Change-Id: I95a1050a7e0650faac112724b7bd6a300cdb6e4a
2021-11-29 13:05:55 +01:00
SagarMakhar 98254896c9 Rework rule building in twrp_generator
Signed-off-by: SagarMakhar <sagarmakhar@gmail.com>
Co-authored-by: Arian <arian.kulmer@web.de>
Change-Id: I05c36b8660e51a18ac70a6712b2d03edfc561156
2021-11-14 15:14:00 +01: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
DarthJabba9 b10c452940 Empty the vts makefile so that there is no need to run 'repo sync' twice
Change-Id: I1070d7cb93e48b458a1d719490d3c527c7c316f1
2021-08-02 18:37:20 +01:00
nebrassy a667d6f30e Kernel: allow outputting kernel modules to recovery
Change-Id: I6d23f2d21a4406f6838de5c951741bf673a5423d
2021-06-16 11:34:35 +02:00
nebrassy 869a43f5d5 add vendor_init
Change-Id: Ic8e2db11fc0dd18259a009c2d34c34a4d5c3f2e4
2021-06-09 17:04:35 +02:00
nebrassy e65576f8b9 fix and update roomservice
Change-Id: I1f3839751c212d5a96d99483e8fff36265c2f2f8
2021-06-05 18:36:59 +00:00
nebrassy 6babc5581e define twrp soong namespace
Change-Id: Ifd28b13f0ec831c3565e558be2223aac33e5b90e
2021-05-08 17:48:24 +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