Commit Graph

104 Commits

Author SHA1 Message Date
Bruno Martins
b896f2ffc7 sm7250-common: Drop custom APM flag
Custom audio policy manager is hard disabled by CAF
for 2 years now.

Change-Id: Idd34d1cbbdb735d6cf0de3b159c2670bf7ddd1e3
2022-11-13 09:48:33 +10:00
Michael Bestas
243a3a7edc sm7250-common: Remove bdroid_buildcfg.h
As of I3c7aed1bdb45db728d319f7d757400e44d232283 the Bluetooth stack
defaults to reasonable defaults that should work for all devices.

Change-Id: I056d63c4c8a2727e384172e964dc0000b6773504
2022-11-13 09:47:04 +10:00
mikairyuu
d1c0f2ba44 sm7250-common: Add llvm tools flag 2022-10-28 09:47:11 +10:00
mikairyuu
35abf9b94e Revert "sm7250-common: Swich to EROFS"
This reverts commit 2284ac6ad5.
2022-10-23 13:46:15 +10:00
Edwin Moquete
a387946639 sm7250-common: Switch to legacy sepolicy_vndr
Signed-off-by: anuragbhaumik <bhaumik463@gmail.com>
2022-10-12 20:35:49 +10:00
Omkar Chandorkar
8e2f44499c sm7250-common: move to lz4 for EROFS
- while lz4hc,9 provides better compression ratio, it has the cost of
  tremendous compression time and potential hit while decompressing
- internal tests on aarch64 seem to suggest the decompression hit
  is larger than x86_64

Change-Id: I5c102c03f95ace982b85a6ffa5c33aa9ce4637a4
Signed-off-by: Omkar Chandorkar <gotenksIN@aospa.co>
2022-10-08 13:38:09 +10:00
Omkar Chandorkar
7e7aa05828 sm7250-common: match erofs pcluster size to aosp recommendations
- source https://source.android.com/docs/core/architecture/kernel/erofs

Signed-off-by: Omkar Chandorkar <gotenksIN@aosip.dev>
Change-Id: If881388771d3922f05012627e9c51c28a4230739
Signed-off-by: DarkAngelGR <asavvo01@gmail.com>
2022-10-08 13:35:32 +10:00
mikairyuu
84b5c780ad [TEMP] Ignore neverallows 2022-08-19 12:22:21 +03:00
mikairyuu
753abf2d14 Revert "sm7250-common: nuke dt2w node"
This reverts commit 576212d4ca.
2022-08-08 22:31:04 +03:00
mikairyuu
e3b00395fc Revert "sm7250-common: rootdir: provide fstab.qcom"
This reverts commit ef1eb99e5c.
2022-08-03 20:38:20 +03:00
Adithya R
7a1045ff2c sm7250-common: Switch to dot product CPU variant
* monet:/ $ cat /proc/cpuinfo | grep -m 1 Features
   Features: fp asimd evtstrm aes pmull sha1 sha2 crc32
   atomics fphp asimdhp cpuid asimdrdm lrcpc dcpop asimddp

 * From this, it's evident that our CPU (Snapdragon 765G)
   supports all the features of ARMv8.2-DotProd [1].
   Moreover AOSP sets this arch variant in their generic
   cortex-a55 ART target as well [2]. This should unlock
   some optimizations in different code paths.

[1]: https://en.wikichip.org/wiki/arm/armv8#ARMv8_Extensions_and_Processor_Features
[2]: https://android.googlesource.com/device/generic/art/+/refs/heads/master/armv8_cortex_a55/BoardConfig.mk#23

Change-Id: I484bb2bcc181c62e29c04bc6e467e5edea8ac0d8
Signed-off-by: Omkar Chandorkar <gotenksIN@aosip.dev>
2022-07-24 10:11:00 +03:00
mikairyuu
7ec4b192a6 sm7250-common: revert all Vulkan 2022-07-23 18:27:53 +03:00
xSylla
ef1eb99e5c sm7250-common: rootdir: provide fstab.qcom
* Move from fstab.default to fstab.qcom for better compatibility
* Xiaomi hardcode androidboot.fstab_suffix=default in bootloader so let's force load qcom
* Also remove fstab.emmc and recovery.fstab as they're not used
* Inline fstab with sm8250
* Move qcom recovery init script to Android.bp
2022-07-23 18:25:02 +03:00
mikairyuu
576212d4ca sm7250-common: nuke dt2w node 2022-07-09 19:34:28 +10:00
Alexander Koskovich
b70f5f45af sm7250-common: Enable LLVM integrated assembler
* Disabled by default even with LLVM=1, but this is
   another GCC dependency we can remove. Google has
   been doing this for a while now.

   https://android.googlesource.com/kernel/msm/+/b009f0a1a

Change-Id: I1ca23607682299182da0a6e14594ba2e2de00a4a
2022-06-22 12:12:30 +10:00
etancohen
ae02241107 sm7250-common: Declare WiFi Aware support to WiFi HAL
* The Wi-Fi Aware feature added in Android 8.0 enables
   supporting devices to discover, connect, and range
   (added in Android 9) to one another directly using
   the Wi-Fi Aware protocol without internet or cellular
   network access.

 * This feature, built upon the Wi-Fi Alliance (WFA) Wi-Fi
   Aware specification (versions 2.0 and 3.0), allows easy
   sharing of high-throughput data among trusted devices
   and apps that are otherwise off-network.

   https://source.android.com/devices/tech/connect/wifi-aware

Change-Id: I18ff20e7466b8e8fd598381b730fb7db391e9ad4
Signed-off-by: Pranav Vashi <neobuddy89@gmail.com>
2022-06-20 18:53:41 +10:00
Danny Lin
c089bd7993 sm7250-common: Switch to Vulkan UI renderer
We tried doing this on Android 11 and later reverted it due to fd leaks
during prolonged video calls. However, the issue has been fixed on
Android 12, so let's enable it again for performance.

Signed-off-by: Pranav Temkar <pranavtemkar@gmail.com>
Change-Id: I1cd2ca6931aad60f9c48d40aa0212b69c68edef8
Signed-off-by: Joey Huab <joey@evolution-x.org>
2022-06-17 18:49:41 +10:00
mikairyuu
aa98dfe61c sm7250-common: Import kernel config 2022-06-17 18:49:41 +10:00
mikairyuu
e66bcdbc0c sm7250-common: Use lolz clang for kernel 2022-06-17 18:09:45 +10:00
orges
ec99ba4efc sm7250-common: set BOARD_USES_ADRENO to true
* libc2dconvert wont be included unless this is set

Former-commit-id: e8ec4504d4f7995acafa0f7de412fb605240e67f
Signed-off-by: Joey Huab <joey@evolution-x.org>
2022-06-16 13:42:40 +10:00
mikairyuu
a3955afeb1 sm7250-common: Use arch config from redbull 2022-06-16 13:42:17 +10:00
kondors1995
0d8b31cf3e sm7250-common: Add Livedisplay 2.1 2022-06-16 12:56:26 +10:00
EmanuelCN
2284ac6ad5 sm7250-common: Swich to EROFS
*Requires kernel support.
2022-06-16 12:55:22 +10:00
Sebastiano Barezzi
3bf10fed5d sm7250-common: Drop QTI camera device usage
* qcom-camera topic hasn't been ported to 19.1
* Keep building vendor.qti.hardware.camera.device@1.0 interface lib, IMS stack and possibly camera HAL still needs it

Change-Id: I87bcd5b54ad986d5844df50de243fc1a18507198
2022-06-05 14:29:58 +02:00
Sebastiano Barezzi
21100bd7af sm7250-common: Remove USE_DEVICE_SPECIFIC_CAMERA
* Doesn't exist

Change-Id: I10fc7de8721f3c871d00522e1d85c2a8d8c18160
2022-06-05 14:29:58 +02:00
Sebastiano Barezzi
6a82833129 sm7250-common: Remove TARGET_ENABLE_MEDIADRM_64
* It's only used when building drm@1.0 HIDL

Change-Id: I06412e2dd2bb48d798be4ef6e9a26a17b65277a7
2022-06-05 14:29:58 +02:00
SebaUbuntu
a6624039b5 sm7250-common: Move to common Xiaomi fingerprint HIDL
Change-Id: I6c29a831e985ee440c92a98aad8d33f25b9e5b2d
2022-06-05 14:29:13 +02:00
Zhao Wei Liew
631499bb7a sm7250-common: Remove no-op TARGET_KERNEL_ARCH flag
TARGET_KERNEL_ARCH is a no-op unless it is different from TARGET_ARCH.

Change-Id: If36d5adc3296b76d5efb21da0e196f0b005ae784
2022-06-05 14:29:13 +02:00
xSylla
76225f1e92 sm7250-common: Update blobs from MIUI V13.0.2.0.SJIMIXM
Change-Id: Ie65bb522086e1ee099423ca6d4d9cd9f2ebbefe7
2022-06-05 14:28:33 +02:00
althafvly
bed9ce38fb sm7250-common: Set BUILD_BROKEN_VENDOR_PROPERTY_NAMESPACE
Change-Id: I108504e650895ed62dd54f30d6c53f9d16baa5a3
2022-06-05 14:27:56 +02:00
Roger Ellis
1abcc7c151 sm7250-common: Add exclusion for vendor ELF prebuilts
- ELF prebuilts were banned in PRODUCT_COPY_FILES starting May 11.
 - Adding BUILD_BROKEN_ELF_PREBUILT_PRODUCT_COPY_FILES := true to
BoardConfig.mk temoporarily.
 - See b/156534160 for long-term fix which should override this change.

Test: Build
Bug: 156534160
Change-Id: I7d80798d3b2d3818bc835fcede21de2e7ab04735
2022-06-05 14:27:56 +02:00
TheScarastic
e2acea18d7 sm7250-common: biometrics/fod: Uprev to 2.3
* [SebaUbuntu]: Move fingerprint HIDL to 2.3
 * Remove Lineage FOD HIDL
 * Rename fodextension to udfpsextension

Change-Id: I292bbb9509de89eb9031daebab3cb5b2e5411d21
2022-06-05 14:24:12 +02:00
xSylla
bb0029e64e sm7250-common:: sepolicy: Switch to SYSTEM_EXT_{PUBLIC,PRIVATE}_SEPOLICY_DIRS
Change-Id: I817c692a77b3c239f6890ef8ac93d6b1431e54c2
2022-06-05 14:22:53 +02:00
Nolen Johnson
67c80b7613 sm7250-common: Kill deprecated TARGET_USES_MKE2FS
* This has been useless since some time in Pie.

Change-Id: Ic02238aa0f1c25cfad20a2b827c3c2fe128f3543
2022-06-05 14:21:48 +02:00
xSylla
17332c2465 sm7250-common: Move props to properties.mk 2021-12-01 16:43:29 +01:00
xSylla
164843e88f sm7250-common: Update blobs from monet V12.5.5.0.RJIEUXM
Signed-off-by: xSylla <syllamodder@gmail.com>
2021-12-01 16:43:28 +01:00
xSylla
e1e609f04e sm7250-common: Set proper TARGET_CPU_VARIANT_RUNTIME
Signed-off-by: xSylla <syllamodder@gmail.com>
2021-12-01 16:43:28 +01:00
Panchajanya1999
3883c3c56c sm7250-common: Set target arch variant "armv8-2a"
* The target arch variant 'armv8-2a' enables Armv8.2 features in Clang
  and ART compiler when building Android images on host machines

* https://community.arm.com/developer/tools-software/oss-platforms/b/android-blog/posts/bringing-armv8-2-instructions-to-android-runtime

Change-Id: I813f02490c2d0d159dcadf1605e03b734e37e19e
Signed-off-by: Carlos Ayrton Lopez Arroyo <15030201@itcelaya.edu.mx>
Signed-off-by: xSylla <syllamodder@gmail.com>
2021-12-01 16:43:28 +01:00
Erfan Abdi
35b50df64f sm7250-common: Commonize bluetooth header 2021-12-01 16:42:55 +01:00
LuK1337
34c3a32809 sm7250-common: Include device FCM from vendor/lineage
Sadly we aren't able to include it globally without breaking other
devices ;((((

Change-Id: Ia29d6fb047a09a2b4767312cb2a3252c87095723
2021-12-01 13:02:03 +01:00
LuK1337
5f85ad6b2e sm7250-common: Remove all lineage HALs from FCM
No longer needed since we added device framework matrix in
vendor/lineage, see 78870c2.

Change-Id: I00233e7588dcfcd4bb66c42c52edb34cdff4376e
2021-12-01 13:02:03 +01:00
xSylla
f6043070f1 sm7250-common: Build FM2
Signed-off-by: xSylla <syllamodder@gmail.com>
2021-12-01 13:02:03 +01:00
Arne Coucheron
ccc7a74e1b sm7250-common: Silence clang warnings during kernel compile
clang-11: warning: argument unused during compilation:
'-fuse-ld=lld' [-Wunused-command-line-argument]

Change-Id: I66a629f3573e3fad8aa085ea115475f02d60a7ea
2021-12-01 13:02:03 +01:00
Nolen Johnson
124e049414 sm7250-common: Simplify AVB flag logic
* AVB's `--flags 3` argument builds a disabled VBMeta with
  disabled hashtree, so no need to set both flags individually.

Change-Id: Ibe9ee322a5af58f13e76d53e18dee49451fe8838
2021-12-01 13:02:03 +01:00
Albert I
7d020bc1a8 sm7250-common: Extend vbmeta_system to include product
* matches Qualcomm configuration

Signed-off-by: Albert I <kras@raphielgang.org>
Change-Id: I94604c130794c6b3f87a971be7057854d4920ddb
2021-12-01 13:02:03 +01:00
Sebastiano Barezzi
9b33d47fff sm7250-common: Drop M4DEFS
Change-Id: I43c99687e099d029d99a807bb5384151601c9d36
2021-12-01 13:02:03 +01:00
Bruno Martins
51a9e88374 sm7250-common: Drop TARGET_QTI_USB_SUPPORTS_AUDIO_ACCESSORY
It is no longer necessary as per the latest QTI USB HAL update
(LA.UM.9.12.r1-11500-SMxx50.0).

Change-Id: I3caf226de247ac45bdcb9b35ab3a4c5b959dc1dd
2021-12-01 13:02:03 +01:00
Bruno Martins
22b9e2fa86 sm7250-common: Unset BOARD_VNDK_VERSION
PRODUCT_USE_VNDK will be true in Android-P or later launching devices
and consequently BOARD_VNDK_VERSION will be set to 'current'.

Change-Id: Iaed3eb4875c00742903627d63b4f2968e356781b
2021-12-01 13:02:03 +01:00
Sebastiano Barezzi
84f14b1b39 sm7250-common: Enable TARGET_USES_FOD_ZPOS for FOD devices
Change-Id: Iaf830b7fe46ce42e413aeb9df3e85680735751e8
2021-12-01 13:02:03 +01:00
Sebastiano Barezzi
257c3ebaf4 sm7250-common: Add a minimal framework compatibility matrix
* Made with https://gist.github.com/SebaUbuntu/ec053a00a9988eaea091fb1cc1f19324

Change-Id: I180d19e7939ee0c3e9f1aeb04a854f8aaf444235
2021-12-01 13:02:03 +01:00