Commit Graph

31 Commits

Author SHA1 Message Date
Arian f9be69fba7 config: Update clang version to clang-r450784d
This is the default clang version on android-13.0.0_r1

Change-Id: Iaecec88ce0a462403d0a3cf705ce794c230e6bd9
2024-09-07 15:45:38 +02:00
Neel Chauhan f5a42b67f9 kernel.mk: Allow building external kernel modules
Here, we introduce the TARGET_EXTERNAL_KERNEL_MODULES variable
for the list of external modules.

Change-Id: I1f8b7a48e66bb0c9efbc396692e5a7159f0b835c
2024-09-07 15:45:38 +02:00
Michael Bestas 80bd054cf2 kernel: Allow overriding dtb target
On some devices we might want to build just the *.dtb files
that we actually need instead of the every dtb that exists.

Change-Id: Id7a152499d4ee1dd08f79d34cc34bfe959313515
2024-09-07 15:45:38 +02:00
Michael Bestas 1e0d2d457e kernel: Allow setting dtbo target path prefix
gs101 uses DTBO_OBJ/arch/arm64/boot/dts/google/dtbo.img
vs DTBO_OBJ/arch/arm/boot/dtbo.img on previous devices.

Change-Id: I945d31cb093fae97385cf84c273088ee7a4edf0b
2024-09-07 15:45:38 +02:00
Michael Bestas be10f65fc4 kernel: Allow overriding dtbo target name
gs101 kernel uses google/dtbo.img target for dtbo.img

Change-Id: Ib03f35c0035f56d303771de9399bcce3d02c0775
2024-09-07 15:45:38 +02:00
Michael Bestas 97bacc9928 config: Use LLVM binutils for 5.10 as well
Change-Id: I14afa17d710778403cd7fecf842c952c569c0c35
2024-09-07 15:45:38 +02:00
Jason Wojcik 4e7956cca3 lineage: config: Use $(abspath .) instead of $(shell pwd)
Change-Id: I7fec28b7cb507918b1b55dd368a74c927a8fc1d2
2024-09-07 15:45:38 +02:00
Chirayu Desai d00f738806 kernel: Don't print grep error messages when checking version
Avoids:
$ lunch lineage_sdk_phone_x86
grep: build/make/target/board/emulator_x86/Makefile: No such file or directory (x4)

Change-Id: Ie803d5ca93e6e7ae94625e7ee3ab0bf337e0515d
2024-09-07 15:45:38 +02:00
Alexander Koskovich fdf7a64db0 kernel: Move TARGET_KERNEL_ADDITIONAL_FLAGS to kernel task
* Currently, because DTC_EXT make flag is in the
   kernel task the only way to override it is to
   have TARGET_KERNEL_ADDITIONAL_FLAGS come after.

Change-Id: If62ed979581dc07eafd4628ce2b2d799388d3704
2024-09-07 15:45:38 +02:00
Alexander Koskovich e46c8a35da lineage: config: Don't pass CFLAGS_MODULE="-fno-pic" if using LLVM
* Seemingly not an issue for kernels compiled with
   LLVM, tested with kernel versions 4.4 -> 5.4.

Change-Id: I00adee2e10e99a540099b5e1a6a1ab9be0b99050
2024-09-07 15:45:38 +02:00
Alexander Koskovich 623015e96b kernel: Use LLVM's substitutes for GNU binutils if possible
Co-authored-by: LuK1337 <priv.luk@gmail.com>
Change-Id: I06884fb774b6548aad68942f1ce659384521c62a
2024-09-07 15:45:37 +02:00
nebrassy 8019caf0c9 TWRP: export TW_SUPPORT_INPUT_1_2_HAPTICS
Change-Id: I7878f4f89e66938430ebddfa5abc814bdd752a29
2023-11-23 16:13:41 +01:00
nebrassy ac1dfae958 TWRP: move TWRP makevars to BoardConfigSoong 1/2
Change-Id: I8665c1f3b77efd1c91831e46b7ecdb170fe353ba
2023-11-14 02:08:28 +00:00
Sushrut1101 93b80a8181 Add TW_NO_FASTBOOT_BOOT flag
* Some Devices that do not support hotbooting an image using fastboot
  boot (eg: mtk devices) face issues like battery level detection,
  unable to reboot to system, etc.
  When twrpfastboot is set to 1 in the kernel cmdline. Setting this flag
  to true will not add twrpfastboot=1 in the cmdline and therefore will
  fix those issues.

* Tested on evergo, fixed battery level detection, reboot to system and
  slot changing.

Change-Id: I3f2d0fb3ef71f42904f756b4c7dec1cc51905f40
Signed-off-by: Sushrut1101 <guptasushrut@gmail.com>
2022-11-05 02:14:27 +05:30
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
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
nebrassy 8364cb56be add twrpfastboot=1 to GENERIC_KERNEL_CMDLINE for all vendor_boot devices
Change-Id: Ic9844cb1f1cf0869d06b96a64b6e9dc713ba34e5
2022-05-28 14:03:29 +00: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
nebrassy 090703a7b3 modify logic for including cmdline for android 12
Change-Id: I3ae1d36f3d292f0a2482a77d5c4584997990c8b3
2021-11-14 18:47:54 +00:00
LuK1337 1987a27dca kernel: Add 32-bit GCC to PATH for vdso32
Change-Id: Ifff495069ab33d9b1346971a21f380f0c23ebf48
2021-11-14 18:47:26 +00:00
Arian e83210c38d config: Update clang version to clang-r416183b1
* That's the default clang version on android-12.0.0_r1

Change-Id: I528d9a6aa497f7c9a0f53b0e778d0eeefaac0e9d
2021-11-14 18:47:03 +00:00
Captain Throwback 1cd2f34985 Disable adb auth for userdebug builds
Change-Id: Iaa7afc1ae2b5c5a87f2bec43b7b9467197b95282
2021-10-28 14:18:14 -04:00
nebrassy b39b87a2ab also set twrp cmdline for legacy A/B
Change-Id: Ibb3d7076d6bd1518585c4f3b3bfcc71cc8e0ceae
2021-09-27 11:57:43 +02:00
nebrassy 869a43f5d5 add vendor_init
Change-Id: Ic8e2db11fc0dd18259a009c2d34c34a4d5c3f2e4
2021-06-09 17:04:35 +02:00
nebrassy 6babc5581e define twrp soong namespace
Change-Id: Ifd28b13f0ec831c3565e558be2223aac33e5b90e
2021-05-08 17:48:24 +02:00
nebrassy 56b5c49dd0 add twrp cmdline for recovery as boot devices
Change-Id: Ib8c6f4f824463dffbbfd7505b369a97a6b6d2db0
2021-05-03 22:48:28 +00: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