Commit Graph

747 Commits

Author SHA1 Message Date
Bruno Martins
0415cfd127 config: Let mini be really minimal
Move some apps from common_mobile to common_full,
so that devices inheriting from common_mini don't
ship with all the apps.

Example usecase: "tablet-like" device that inherits from
common_mini_tablet_wifionly and has no camera support.

Change-Id: I723e413b0e5b43fee9011c6b55dcbc303e811c44
2023-07-09 13:13:08 +01:00
Nolen Johnson
322d62e1f5 fixup! config: Move IAntiFlicker to fqname
Change-Id: I7198a27cbf4a46b9ea009df4b02830fa1c94d278
2023-06-23 19:10:02 +02:00
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
Michael Bestas
fd6859f6c7 config: Move IAntiFlicker to fqname
Fixes:
ERROR: HIDL interface vendor.lineage.livedisplay@2.0::IAntiFlicker is
referenced in /system/etc/vintf/compatibility_matrix.device.xml,
but there is no corresponding .hal definition associated with a
hidl_interface module in this build. Typo?

Change-Id: If7708540351db6f465504ed433638653e2c52503
2023-06-21 15:35:00 +03: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
Michael Bestas
97f0f8e3f4 config: device_framework_matrix: Add vendor.lineage.health
Change-Id: I91ee2a15ee2f68947f220ab6e885b9049936acb2
2023-06-09 18:06:47 +02:00
Luofan Chen
5bd9ed9840 config: Copy Lineage health permissions
Change-Id: I12dcb124293cac0ba6f7275ee30498b711c723dd
2023-06-09 18:06:47 +02:00
Michael Bestas
57a063cff7 kernel: Restore TARGET_KERNEL_VERSION
This is used in a bunch of QCOM HALs

Change-Id: I5bb76c47ad33e9fb1b81d1d23f78b2dbf390473a
2023-05-26 21:33:48 +03:00
Bruno Martins
2a7b321d51 kernel: Go full LLVM build on 5.10+ kernels
Make the conditions accurately reflect the comment:
"5.10+ can fully compile without GCC by default".

Change-Id: Ia9070871c23a710ba5b461ad522db241183e34d1
2023-05-24 11:31:08 +01:00
Aaron Kling
e6678e8cfd Include build manifest on target
Private repos can be excluded by setting the env var
MANIFEST_EXCLUDES | delimited. proprietary is always
excluded.

Change-Id: I9a085a7102d9905853636e0ad60ac6f80a930ae0
2023-05-18 20:49:27 +02:00
DroidFreak32
055bec9f60 config: common-full: unrar undead
Change-Id: Ic860845748024c113278489aeea2523b2770ca4a
2023-05-12 00:28:58 +05:30
DroidFreak32
dcf0e8899a config: common-full: Build zstd cmdline tools
* Installs the following:
unzstd -> zstd
zstd
zstdcat -> zstd
zstdgrep
zstdless
zstdmt -> zstd

Change-Id: I3e1efae8028a3ac5f6b9d153c9e39eef1d51a34b
2023-05-12 00:24:57 +05:30
Michael Bestas
b2482bb135 overlay: Convert DocumentsUI RRO to standalone package
Fixes:
W idmap2d : overlay '/product/overlay/DocumentsUI__auto_generated_rro_product.apk' is not allowed to overlay resource 'bool/config_default_show_device_root' in target: <overlay> android:targetName "" does not match overlayable name "DocumentsUICustomization"
W idmap2d : failed to find resource 'bool/show_documents_root'
W idmap2d : overlay '/product/overlay/DocumentsUI__auto_generated_rro_product.apk' is not allowed to overlay resource 'string/default_root_uri' in target: <overlay> android:targetName "" does not match overlayable name "DocumentsUICustomization"
E idmap2d : no resources were overlaid

Remove unused overlays while we are at it.

Change-Id: Icf48bb9644bcfd2ca2c1c5681623f4f7c762bf35
2023-04-24 16:51:52 +02: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
Tim Zimmermann
accea8f497 config: Drop ThemePicker icon pack overlays
* Not used with S+ ThemePicker

Change-Id: I7ca2030ea64e588ddaad42464cf15edb1dfe7774
2023-03-23 18:18:00 +02:00
SamarV-121
dd562f83f5 config: Build icon pack overlays
Change-Id: Ibb8f100f3739a3578720dc0d00bca6c2ec77fbd5
2023-03-23 18:18:00 +02:00
Tim Zimmermann
330824d4dd config: Inherit window_extensions.mk
* Instead of explicitly building androidx.window.extensions

Change-Id: I107ef8ef49eab77d91aa06fe3ade55eeaae83c71
2023-03-23 18:18:00 +02:00
Michael Bestas
3450d31de3 Switch to AOSP themes stub package
Change-Id: I6029d6cd8bd2280f994f9992d24777d4f24f4346
2023-03-21 21:01:17 +02:00
Chirayu Desai
5ae7551a20 Revert "config: Build NavigationBarMode2ButtonOverlay"
This reverts commit a461d3228d.

Reason for revert: It's finally broken!

Issue: calyxos#1548
Change-Id: Id9c79102d66feb7beddb9b3914387a1678bf0d83
2023-03-21 18:21:22 +02:00
SGCMarkus
1cc1c8a0a0 qcom: set TARGET_USES_QCOM_AUDIO_AR for the UM 5.10 family
This flag guard vendor/qcom/opensource/{agm,pal,audio-hal/st-hal-ar}
which must not be included in older platforms

Change-Id: I9da02881df9582c10cfb7d1c962a766a9ae041ed
2023-02-10 01:37:13 +02:00
SGCMarkus
22eb16e2de qcom: Include vendor/qcom/opensource/display namespace only for <5.10 platforms
hardware/qcom-caf/sm8450/display contains its own copies of
* libgralloc.qti
* libqdMetaData
* libdisplayconfig.qti

Including this namespace too, results in a module already defined error

Change-Id: I7d5c861307f4d517d5b53c6444897a4b90f0095e
2023-02-10 01:37:12 +02:00
Arian
27409112ff qcom: Add taro platform
Change-Id: I96e3bbccc306817986c6f039a57fd1daa94e7f2d
2023-02-10 01:37:12 +02:00
Michael Bestas
553c540711 config: Split sdm660 from UM_4_4_FAMILY
Change-Id: I6eed22f15ea297c6e842c53edf6a7b29e89366a1
2023-01-19 16:48:59 +01:00
me-cafebabe
390c998fec Split msm8937 from UM_3_18_FAMILY and fix it
Co-authored-by: Michael Bestas <mkbestas@gmail.com>
Change-Id: I06bf48ff8433cc00dbaaa0ee05b3b86c7af01821
2023-01-19 16:48:59 +01:00
Aaron Kling
48d2a4219c config: Only install theme packages on mobile
Theming is not available in leanback

Change-Id: I7227060348dd5285cc99def74aacedcf4ff9b4d2
2023-01-15 06:41:09 +01:00
Aaron Kling
7b124548da config: Only install audio files on mobile
These are not used on atv and are just wasting space

Change-Id: If571c840767fc83e8dd23fc542873fbb86b7c7e3
2023-01-15 06:40:21 +01:00
Nolen Johnson
5924e84035 config: common: Re-enable rsync
Change-Id: I9d2ba68ad145d421920884fe9f5f8eb14a19adb0
2023-01-10 13:02:02 +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
0693b10516 kernel: Remove darwin support
Darwin kernel build is not supported for >=5.10
and non-standard clang versions.
Another side effect is that it causes LD_LIBRARY_PATH
to get overwritten, which breaks certain configurations.
Let's just get rid of it since AOSP darwin build is no longer supported.

Change-Id: I9ac642996b90937bd9c52138fb06bf1eff901c8b
2022-11-01 17:15:13 +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
Nolen Johnson
9d9d16f921 lineage: common: Allow opting out of EPPE
* All Pixel devices fail to pass this check, allow disabling this
  instead of making tons of modifications on the device trees.

Change-Id: I9a6fcc0a05b6ea90818a42d5c9500663db864542
2022-10-10 22:26:52 +03:00
ivanmeler
1b127da402 config: Exclude android.hidl.memory@1.0-impl.vendor and vndk_apex_snapshot_package from package enforcement
These targets do not exist on pre treble devices and are included by core_minimal.mk and base_system.mk

Change-Id: I44e9d2de46270afda48792105ca7320cd4559778
2022-10-05 16:54:53 +02:00
Michael Bestas
d58271339d config: Build Aperture camera app
Change-Id: Ifb70c8772729e42f820ab8861b1e2089a5d8cf5b
2022-10-05 16:11:06 +02:00
Nolen Johnson
722348f737 lineage: common: Exclude ntfs-3g from artifact path requirement
Change-Id: I6253ac0b326f86ba7fd78f6babb9ee2242ba9133
2022-10-04 03:36:16 +02:00
Aaron Kling
c162e6ba1c config: Bring back ntfs tools
This partially reverts commit f911e89edb.

Change-Id: Id0d94715a3d503dd270fe419abacc3c0495659fb
2022-10-03 20:31:22 +02:00
Nolen Johnson
0577797b84 config: Exclude Launcher3*/Calendar packages from enforcement
* These are built by AOSP common includes, and we can track most of
  these apps, but Etar and Trebuchet are only partial rebrands of their
  source-application, which means there are conflicts when tracking
  them, so exclude them.

Change-Id: I1fb893e6f5df693ddb551fa22adde9d05a60d1d8
2022-10-03 01:26:01 +02:00
Bruno Martins
a70b005d3c config: Exclude AOSP rild package from enforcement
Devices using vendor RIL services (ENABLE_VENDOR_RIL_SERVICE)
encounter a dead end when enforcing product package existance.

Change-Id: I101ebf442e35c631a6ff9f352566de63dd5cfba7
2022-10-02 16:49:24 +01:00
Aaron Kling
ca97b5293c config: Remove missing cli tools
These have not been ported for several versions

Change-Id: I40f199b6628e757e2637814b96f20bfb537393a4
2022-10-02 16:48:20 +01:00
Aaron Kling
631ead7979 config: Exclude product_manifest.xml from enforced existing packages
Not all build targets have this target modules

Change-Id: I01051bb0f6e285ca64bfbfbbaa70bfab796533eb
2022-10-02 16:48:20 +01:00
Aaron Kling
ee8dbc29ab config: Require all requested packages to exist
Change-Id: I5b31a90668d4aa0355f9d1abb1b6efa982d1e1d7
2022-10-02 16:48:20 +01:00
Alexander Koskovich
70b1bf3812 lineage: kernel: Use getconf instead of nproc
Change-Id: Id8215f290a88ddf3a6bc1764d9ef9a09f6aa810d
2022-10-02 17:47:00 +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
c80ca08861 kernel: Slightly reorder config
Prepare for 5.10 kernel build changes

Change-Id: I79ecf0655f9adc894091c4f26de337ebe03e3ca2
2022-10-01 00:41:24 +03:00
Michael Bestas
728eff7557 kernel: Use consistent spacing
Change-Id: Ia01336f14599ec8d767d88ad3b76f7bb97153848
2022-10-01 00:39:11 +03:00
Andrew Hexen
f06d0c0a2c QCOM: msm8953: Use legacy-um ipacm
* LEGACY_UM_PLATFORMS didn't account for msm8953 being split from the UM_3_18_FAMILY.

Signed-off-by: Andrew Hexen <SyberHexen@gmail.com>
Change-Id: I3f4e1aa15ce9a8bbe5ab8ae20e96497f8e66e850
2022-09-28 18:23:10 +02:00
Tim Zimmermann
9add63ba7d lineage: Support charger on vendor
Change-Id: I7cfd4cdaf4e3db48e3a970cb103b35986ec290cf
2022-09-25 13:45:03 +02:00
Michael Bestas
c05ae98f0c Revert "Disable vendor/crowdin overlays for now"
This reverts commit c0c8dccdb6.

Change-Id: I91c2c9c216a1bc653f4f9e79b0d6ec870575dc6a
2022-09-22 16:50:28 +03:00
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