Commit graph

590 commits

Author SHA1 Message Date
LuK1337
0b81f4020e soong: Add aapt_version_code default
This appends `--version_code=$(date -u +%Y%m%d)` to aapt flags, which is
useful for flushing some caches upon system updates.

Change-Id: I6575b878f09c1c3138e12abc34d39405f51245e7
2023-06-22 20:06:00 +02:00
Luofan Chen
2decc6661e soong: Add TARGET_HEALTH_CHARGING_CONTROL related configs
To specify the charging control allowed modes:
TARGET_HEALTH_CHARGING_CONTROL_SUPPORTS_{BYPASS,DEADLINE,TOGGLE},

To specify the charging control paths:
TARGET_HEALTH_CHARGING_CONTROL_{CHARGING_PATH,DEADLINE_PATH},

To specify data written to TARGET_HEALTH_CHARGING_CONTROL_CHARGING_PATH:
TARGET_HEALTH_CHARGING_CONTROL_CHARGING_{ENABLE,DISABLE}

Change-Id: I88831c84966f82648c8ca60de5abb34416140f6c
2023-06-09 18:06:47 +02:00
Chirayu Desai
11eaeaf039 repopick: Don't ignore change status for query mode (-Q)
* Why not just use force with it if you really want to
  pick abandoned changes?
* Avoids surprises

Change-Id: I7420e1c37cc127d1f74539d5685bd9bf77be44c3
2023-05-27 05:15:30 +05:30
DroidFreak32
d7fa6a32e2 lineage: Fix SDK Addon build on x86/x86_64 targets
- Fixes the following build error:

100% 1/1] analyzing Android.bp files and generating ninja file at ou
FAILED: out/soong/build.ninja
cd "$(dirname "out/host/linux-x86/bin/soong_build")" && BUILDER="$PWD/$(basename "out/host/linux-x86/bin/soong_build")" && cd / && env -i  "$BUILDER"     --top "$TOP"     --soong_out "out/soong"     --out "out"     -o out/soong/build.ninja --globListDir build --globFile out/soong/globs-build.ninja -t -l out/.module_paths/Android.bp.list --available_env out/soong/soong.environment.available --used_env out/soong/soong.environment.used.build Android.bp
error: packages/modules/RuntimeI18n/apex/Android.bp:67:1: dependency "art-bootclasspath-fragment" of "i18n-bootclasspath-fragment" missing variant:
  apex:com.android.art
available variants:
  os:android,arch:common
error: packages/modules/RuntimeI18n/apex/Android.bp:67:1: dependency "prebuilt_art-bootclasspath-fragment" of "i18n-bootclasspath-fragment" missing variant:
  apex:com.android.art
available variants:
  os:android,arch:common
15:24:42 soong bootstrap failed with: exit status 1

 #### failed to build some targets (19 seconds) ####

Change-Id: Iff5aa79b4148f83680bc33bdd0ea9751038feea1
2023-05-03 22:08:40 +02:00
LuK1337
d0612f5768 roomservice: Read all local manifests
Change-Id: Idfe6330ff82b9e4c0d11cb0320defa7bf44121f5
2023-04-22 21:26:19 +02:00
Michael Bestas
83fbf7dc32
envsetup: aospremote: Take .gitupstream into account
Adapt function for .gitupstream so we always get the correct
remote without needing to calculate the path manually.

Test: Run `aospremote` in `kernel/configs` repository.
Change-Id: Idcac37ded4a5b2d62d26dc01dd7d68039def6220
2023-04-17 19:29:41 +03:00
Nolen Johnson
1a6d8417b0 soong: Bring bootloader_message_offset back
This is squashed revert of:

    Revert "config: Remove BOOTLOADER_MESSAGE_OFFSET"

    This reverts commit a8bbd0e4aa.

    Change-Id: I66df34e901e87e543102377469a150a9bf03e5b8

    Revert "Revert "soong: Export bootloader_message_offset to dependencies""

    This reverts commit d0b4f9894a.

    Reason for revert: Bringing this back, LGE 8996 lives.

    Change-Id: Iae68fee53ba647d8c64c54388e7296232adf4db8

Change-Id: I358d8e19f2d4da590c9579c1473b5f1964bb71aa
2023-04-08 21:55:24 +02:00
LuK1337
7395c7f50e roomservice: Use mirror manifest instead of search API
Change-Id: Ifc64e42e1d443f36033756a6247a9f253b1ab82d
2023-03-04 13:19:33 +01:00
dianlujitao
62c1374385 kernel: Check HIP support of clang before disabling it
Old clang releases don't support --hip-path, so passing this flag will
break the build.

Change-Id: If36defb0e74893581849700fb67e6aa4617908a8
2023-03-02 20:43:04 +08:00
dianlujitao
ef68678120 kernel: Force disable LLVM HIP
Gets rid of the following from clang -v:

```
Found HIP installation: /opt/rocm, version 5.4.22804
```

Change-Id: Ic58b3fb2dd67d345372bec7f5d2cf023ed2fb34d
2023-03-01 23:07:23 +08:00
Arian
27409112ff
qcom: Add taro platform
Change-Id: I96e3bbccc306817986c6f039a57fd1daa94e7f2d
2023-02-10 01:37:12 +02:00
Alessandro Astone
ba14020f85 kernel: Force disable LLVM CUDA
The kernel tries to define the LINUX_COMPILER macro from the output
of `$(CC) -v | grep ' version '`, but in clang that might produce
more than one line containing ' version ' when CUDA is installed:

```
Android (8490178, based on r450784d) clang version 14.0.6
Found CUDA installation: /usr/local/cuda, version 11.0
```

That causes the macro to expand into multiple lines, upsetting the
compiler that cannot find the ending double quote.

In upstream linux this is fixed from v5.8

Change-Id: Icde4253e989df1cbbefc0ce98f437d16822fc93b
2023-01-22 19:51:39 +01:00
Michael Bestas
41abb0b970
kernel: Allow devices to opt-in for full LLVM build
android11-5.4 kernel can fully compile with LLVM with a few cherrypicks
from android12-5.4 and android12-5.10

Change-Id: Ib71935d284ad78f1c23d039c15bfc5e0314a19eb
2022-11-14 19:20:23 +02:00
Michael Bestas
bdfc913935
kernel: Support copying modules to vendor_kernel_boot
Test: Build gs201 with source built kernel/modules, boot.
Change-Id: Ie66400ddd44cfd249e1b4710f4d1c4efa32389a4
2022-11-04 02:12:55 +02:00
Michael Bestas
be4730a53e
kernel: Remove TARGET_KERNEL_MODULES error
This has been an error for 3 years now, plus it has not been functional
for even more years.

Change-Id: I8b12e8d08847ba119d2904f90766105367025d9c
2022-11-01 17:15:13 +02:00
Michael Bestas
2adf74c191
kernel: Only add GCC to PATH when using GNU binutils
Change-Id: Ia842ed409145a81a92077dde5d6e9749a057f047
2022-11-01 17:15:13 +02:00
Michael Bestas
19c16dff32
kernel: Override LD_LIBRARY_PATH only on <5.10
5.10 doesn't need LD_LIBRARY_PATH set

Change-Id: I5f6e732610f947d50b47e238d6a42365396b18ad
2022-11-01 15:55:19 +02:00
Michael Bestas
69e7a49d95
kernel: Fix clang version override
Change-Id: I18fceeeeab5426f55a73d0cb8d72abd5f40c67ec
2022-11-01 15:55:18 +02:00
Michael Bestas
ed8e192818 config: Remove TARGET_CAMERA_BOOTTIME_TIMESTAMP
This is no longer needed in T

Change-Id: Id14c88a548c14a8c26858a13f262f355ba72745e
2022-10-23 03:14:52 +02:00
Aaron Kling
50de801adf kernel: Add support for custom dtbimage generation rules
Change-Id: I79d67f9f40ef3f0970d0e29393d00600b57e337b
2022-10-18 00:59:46 +02:00
Alessandro Astone
39392c99e1 roomservice: Try major-only revision if default doesn't exist
Change-Id: I91c18a1711e0d01b25e33b30bf0be9bbd443904e
2022-10-10 14:58:57 +02:00
Alessandro Astone
a4cbd27142 roomservice: Finer branch control for roomservice repositories
* Recursively extend the fallback branches mechanism to any
  layer of dependencies.

* Instead of forcing a dependency to use the fallback branch,
  check for each repository if the current one is available.

* Always write the revision in the manifest entry

Change-Id: I37a4aa094de51e9f58e72851f3bc9dc4767dd79b
2022-10-10 14:58:57 +02:00
Tim Zimmermann
bcfa69d705 kernel: Support building dtbimage with mkdtboimg.py config
Change-Id: Ic0efbf0308e334c1cfe0df0493caa71afe27a621
2022-10-02 17:45:12 +02:00
Michael Bestas
0d450dd954
kernel: Changes for 5.10 build without GCC
Change-Id: Id6e09467937e60e6b00a30a246ba0a4a8d71687b
2022-10-01 00:46:45 +03:00
Michael Bestas
8ab31cfc01
kernel: add pahole dependency
This is needed for 5.10+ T kernel build.

Change-Id: I0729af39cad5509ea3bc8629fdf1176156be6c08
2022-09-28 22:03:50 +03:00
Chirayu Desai
404fb47daf fixup! Hookup GRALLOC_HANDLE_HAS_RESERVED_SIZE
Change-Id: Id12058a238c241acb138e3e419bb0bab8280e51b
2022-09-20 01:50:24 +05:30
Chirayu Desai
b5da4d5070 Hookup GRALLOC_HANDLE_HAS_RESERVED_SIZE
* Needed for camera on redbull 13

Change-Id: Ibc1d941f8a6e5e61e3a56cb0065e387022fa3441
2022-09-19 19:17:27 +05:30
Michael Bestas
1c39c90a8d QCOM: RIP pre-UM families
Change-Id: I36e88d74928303ef13334e5feb3d4d3a98c25bd3
2022-09-19 11:26:29 +02:00
Luca Stefani
a1af8cb166 kernel: Allow passing empty DTB to mkbootimg via board-flag
* Boot Image header v2 demands a DTB be passed by default.
* We don't /need/ one at all, as we have and use a dedicated
  DTB partition.
* Signing hates trying to find dtb.img anywhere for some magical
  reason, so cheat and introduce a flag to include a blank one.

Change-Id: I889ce3815476a55829870b30de1b9210283a79ae
(cherry picked from commit fa16b42ddd1eb341f201b8d810c717ea12afe1cb)
2022-09-15 23:02:14 +02:00
Michael Bestas
18dd1748df
kernel: Changes for LLVM binutils
* Remove KERNEL_LD from kernel.mk, we simply set LD in BoardConfigKernel
* Add llvm-ar in path allowlist (used by LTO)

Change-Id: I76addb6f9d8d413edb1832dba23082ffb6d5ebc3
2022-09-08 04:39:49 +03:00
Michael Bestas
a8bbd0e4aa
config: Remove BOOTLOADER_MESSAGE_OFFSET
This hasn't been ported after lineage-18.1

Change-Id: Ie3d798a009a4e0042b767839b39dd6f68695ef2a
2022-08-30 03:13:55 +03:00
Michael Bestas
50fb699870
config: Remove TARGET_PROCESS_SDK_VERSION_OVERRIDE
This hasn't been ported after lineage-18.1

Change-Id: I3024e503e97075d5bfffc41b60da83a445a4e580
2022-08-30 03:13:55 +03:00
Michael Bestas
fa5bc45a95
config: Remove TARGET_DISABLE_POSTRENDER_CLEANUP
This hasn't been ported after lineage-18.1

Change-Id: Ib1bca251c6de7529c58ea2fb9b439e37b55be6c5
2022-08-30 03:13:55 +03:00
Michael Bestas
3bff07a506
config: Remove TARGET_NEEDS_NETD_DIRECT_CONNECT_RULE
This hasn't been ported after lineage-18.1

Change-Id: I2946fdb08c09a3bfd238d65103869dc89ca2b558
2022-08-30 03:13:55 +03:00
Michael Bestas
e19c6db3c9
config: Remove TARGET_IGNORES_FTP_PPTP_CONNTRACK_FAILURE
This hasn't been ported after lineage-17.1

Change-Id: I2aff9bb7bc17fa1444a904d47248d885268bf29b
2022-08-30 03:13:55 +03:00
Michael Bestas
e020bffce2
config: Remove TARGET_HAS_MEMFD_BACKPORT
Change-Id: I17444007429f826bf3d7504cba760204c476e664
2022-08-30 03:13:54 +03:00
Michael Bestas
1cfc6cbf4b
config: Remove TARGET_SPECIFIC_CAMERA_PARAMETER_LIBRARY
This hasn't been ported after lineage-18.1

Change-Id: Ib3ae63ee549b774349268a42923e462a3ef975a0
2022-08-30 03:13:54 +03:00
Michael Bestas
829f975cd8
config: Remove TARGET_HAS_LEGACY_CAMERA_HAL1
Change-Id: I6f4cbe41f6df3ceb6b4058d5b6e77c02e1899809
2022-08-30 02:43:52 +03:00
Michael Bestas
89fd58c860
config: Remove TARGET_USES_QCOM_BSP_LEGACY
Change-Id: I93f111285c46e1a1f811b9d8555de96474d60386
2022-08-30 02:39:47 +03:00
Michael Bestas
f1614da261
config: Remove QCOM HW FDE setup
Change-Id: Ia88a5331e5f3b69a2eea95aa13338f4282779856
2022-08-30 02:36:39 +03:00
Michael Bestas
73732cd931 envsetup: cafremote -> cloremote
Adapt function for .gitupstream so we always get the correct
remote without needing to calculate the path manually.

RIP CodeAurora

Change-Id: I56720dfb859a08c53e79255a9e5e61e7a2e50619
2022-08-25 15:44:58 +02:00
Arian
eb72c64757
soong: generator: Replace android.SourceDepTag usage with IsSourceDepTagWithOutputTag
Change-Id: Iad5d9a07d06a7efda233cc8d3387e8db5c3b0ab5
2022-08-23 02:02:20 +03:00
Michael Bestas
5dfc89a4db
kernel: Always build dtb targets before dtbo.img
Fixes:
error: unable to open output file
'arch/arm64/boot/dts/google/devices/bluejay/google-base/.gs101-b0.dtb.dts.tmp':
'No such file or directory'

Change-Id: I457062e46062fb3553421d196b432de7d06a49ad
2022-08-13 15:16:31 +03:00
Michael Bestas
319d4c4e9a
kernel: Add support for vendor_boot image header version 4
vendor_boot v4 supports packaging multiple "fragmented" vendor ramdisks.
A secondary can be used to store the kernel modules instead of storing
them in the "normal" vendor_ramdisk.

Test: Create a vendor_boot with source built kernel/modules,
      gs101 still boots.
Change-Id: Ic295ccf201c2593e08b9559ae28f80c70a7eb341
2022-08-13 03:02:44 +03:00
Neel Chauhan
fadfdbf4f5
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
2022-08-11 18:34:23 +03:00
Michael Bestas
98447383e4
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
2022-08-11 18:34:23 +03:00
Michael Bestas
12b812b4c9
kernel: Allow overriding dtbo target name
gs101 kernel uses google/dtbo.img target for dtbo.img

Change-Id: Ib03f35c0035f56d303771de9399bcce3d02c0775
2022-08-11 18:34:23 +03:00
SahilSonar
cb15b81b01 qcom: Add holi platform
Change-Id: I1f41059c385a37bef71bd7d8ee34739d8bcca77a
2022-07-19 18:12:17 +02:00
althafvly
68544f936f lineage: products: Un-break SDK addon
- Fixes error while building
  Trying to build sdk_addon, but product 'vendor/lineage/build/target/product/lineage_sdk_phone_x86_64.mk' does not define one
- Move gsi_release.mk to gsi_tv_arm*.mk. SDK and x86* targets won't build.
- Set TARGET_SUPPORTS_64_BIT_APPS for x86_64 gsi to support both arch apps.

Change-Id: If01e2eecfc5e27a98e696c29f29babbc1a5ec726
2022-07-04 20:05:29 +02:00
Alexander Koskovich
a78681c09c
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
2022-06-24 14:23:06 +03:00