Commit Graph

71 Commits

Author SHA1 Message Date
Cyber Knight
5f8ce774dd sm6150-common: Switch to EROFS for relevant partitions
- EROFS offers much more compressed partition sizes compared to the likes of ext4 albeit being read-only.
- We have switched to EROFS for /system, /system_ext, /product, /odm and /vendor.
- This patch was inspired by [1].

[1]: 2b52a00408

Change-Id: I438f6b88ede93fe7e5d581439ba630b5c5440a48
Signed-off-by: Cyber Knight <cyberknight755@gmail.com>
Signed-off-by: donjohanliebert <donjohanliebert@gmail.com>
2024-11-12 14:09:54 +08:00
Arian
d61cf161d9 sm6150-common: Enable camera override format from reserved
This enables qcom additions for high framerate videos.

Change-Id: I572d35c6454711e838b2d0dba31551627d10f6e6
Signed-off-by: donjohanliebert <donjohanliebert@gmail.com>
2024-11-12 14:09:54 +08:00
basamaryan
3df5cd506c
sm6150-common: Commonize sepolicy
Taken from davinci, courbet, surya, sweet, and sweet2

Change-Id: Ie9bd3354d42a36e88004ee77343e0da5397a0eba
2024-10-15 13:25:09 -04:00
Bruno Martins
f3e31a2d6f
sm6150-common: Unset BUILD_BROKEN_INCORRECT_PARTITION_IMAGES
Qualcomm targets can now build hermetic partitions.

Change-Id: I241105e01d85fea983b34846ca675666ac07541b
2024-06-24 03:00:42 +05:30
Sebastiano Barezzi
f36cf7a8a9
sm6150-common: Drop power AIDL extension
Change-Id: Ied144ee0f7840ab43499d43f3d0c64dfd414d99f
2024-06-22 17:27:09 +05:30
basamaryan
c41438c851
sm6150-common: Use the common Xiaomi FCM
Change-Id: I0ca395bc5c23c26e1546d3dd1839592530cc0e3f
2024-06-22 17:26:47 +05:30
Arian
8e3e871e8f sm6150-common: Provide a static lib for power mode extension
Change-Id: I3e2cf17bf1e733838e9e18afdf3f888e814593dc
2024-05-19 18:07:53 +02:00
Bruno Martins
22ae2ff2f8 sm6150-common: Use common libqti-perfd-client and power-libperfmgr
Change-Id: I22d6b35c72629553817005deaefcae60abc72cfd
2024-05-19 18:07:53 +02:00
Nolen Johnson
104c4cf764 Revert "sm6150-common: Ship full recovery image"
This reverts commit 9f3a3d1e47.

Reason for revert: Global now in vendor/lineage.

Change-Id: Ib5d19fe8e69e52c87454418f9e4a0c4bdf90e7b8
2024-04-29 22:11:00 +02:00
Adithya R
4229944346
sm6150-common: Set arch variant to armv8-2a-dotprod
karna:/ $ 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 732G/Kryo 470) 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

Signed-off-by: Adithya R <gh0strider.2k18.reborn@gmail.com>
Change-Id: I484bb2bcc181c62e29c04bc6e467e5edea8ac0d8
2024-04-10 13:26:49 -04:00
Philip Cuadra
14c17f47af
sm6150-common: Target arm v8.2a and A55
This will let bionic use 8.2a atomics which helps scudo locking.

Bug 189248298
Test: Presubmit

Change-Id: Ifa7a6d8386c8adcadb81cb762758b06a8164f700
2024-04-10 13:26:48 -04:00
Michael Bestas
f531fce60d
sm6150-common: Switch to android.hardware.usb@1.3-service.dual_role_usb
Change-Id: Ibd14f7d31dfaf41e040302eda3bc49f351deb618
2024-04-10 13:26:48 -04:00
Cole Faust
5702656b83
sm6150-common: Add BUILD_BROKEN_INCORRECT_PARTITION_IMAGES
Qcom has issues that prevent it from working with a hermetic
partition build.

Bug: 205632228
Test: Presubmits
Change-Id: I490a29da38a6f68e7dd3650d8140cb11adaa8c7a
2024-04-10 13:26:47 -04:00
Michael Bestas
43490e9531
sm6150-common: Inherit common partition reserved sizes
Change-Id: I444ce2fcd37cdfa58d83a7e872dc547fb05a2a89
2024-04-10 13:26:47 -04:00
Bruno Martins
83a0bcef55
sm6150-common: Use the common device compatibility matrix from QCOM
Change-Id: I0c0f3ecddbe6d7b232cc0d13c78ca58094e4e720
2024-04-10 13:26:46 -04:00
Bruno Martins
95750a24bd
sm6150-common: Migrate to restructured sepolicy_vndr
The new folder structure now looks like this:

  device/qcom/sepolicy_vndr
  ├─ legacy-um (meant for sdm845 until sm8350)
  ├─ sm8450
  └─ sm8550

SEPolicy.mk placed in the root automatically redirects devices to the
proper subfolder.

Change-Id: I4ed1a06af779909d64172da294c4a99a3ae9ba0d
2024-04-10 13:26:45 -04:00
LuK1337
dfc3c8754a sm6150-common: Don't limit {product,system,system_ext} inode count when !WITH_GMS
Change-Id: I458edd755fa436feadeb9f5fb2aecb0da797b0ef
2023-12-15 16:15:57 +00:00
Jarl-Penguin
9f3a3d1e47 sm6150-common: Ship full recovery image
* Ensure users are always on the latest recovery image

Signed-off-by: Jarl-Penguin <jarlpenguin@outlook.com>
Change-Id: I033ac4442622b737639d678993daf602a89f9bac
2023-12-15 14:06:43 +01:00
LuK1337
3150c6fef2
sm6150-common: Include vendor/debugfs.config
This disables the following kernel configs:
* CONFIG_DEBUG_FS
* CONFIG_PAGE_OWNER

Change-Id: Idbf74e3dee4dccff4708462271e79374e28449ae
2023-11-09 11:23:01 -05:00
basamaryan
ef7bbdacd2
sm6150-common: Reserve additional space on product
Change-Id: I27032b9250cc9891b502a2a187ee2e13da509e8a
2023-11-09 11:22:55 -05:00
Arian
5d9b716f90 sm6150-common: livedisplay: Make supported interfaces configurable
Change-Id: I2949134f978d3c9b619ae55d3ac41a9b62e65d9c
2023-08-21 22:53:01 +02:00
Michael Bestas
630f539308 sm6150-common: Build Lineage Health HAL
Change-Id: I70cc903a03ac9fa3303bb8fa039c9de4806449bf
2023-08-20 18:47:33 +02:00
LuK1337
cae03c13c8 sm6150-common: Fix BOARD_FLASH_BLOCK_SIZE
BOARD_KERNEL_PAGESIZE * 64 != 131072

Change-Id: Id0762503d1223d0f2b9cacf9af2fca1e6e6caf3d
2023-08-20 18:47:33 +02:00
Arian
7ee23154dd sm6150-common: Commonize flash block size, cache and userdata filesystem types
Change-Id: I10ace86b93aeb4b87ec4ecca4da0952526e6c6ff
2023-08-20 18:47:33 +02:00
Arian
da59885981 sm6150-common: rootdir: Import dynamic non-ab fstabs from LA.UM.9.1.r1-13500-SMxxx0.QSSI13.0
Change-Id: Ib54d1fa04bbc57ec432c0e21cc90d04051321564
2023-08-20 18:46:58 +02:00
Arvind Kumar
4dd6725148 sm6150-comomn: Enable metadata uses flag
Change-Id: I2ad2bded831d82d85799ac6de6c26e779a650122
2023-08-20 18:46:58 +02:00
Arian
e786690216 sm6150-common: Commonize dynamic partitions
Change-Id: If754f1d40d5dd7488a0137fa90d82dce89bbc1dd
2023-08-20 18:46:58 +02:00
Sam Mortimer
dedce30a14 sm6150-common: Remove deprecated TARGET_KERNEL_APPEND_DTB
Background: https://review.lineageos.org/#/c/192397/

Change-Id: I7ed989a418799442bf92eedff6453a77f39f19ad
2023-08-20 18:46:53 +02:00
Sebastiano Barezzi
6d2810da32 sm6150-common: sepolicy: Bringup property_contexts for Android 13
Change-Id: I60070ba7658ce262be66ee3bdd0cb6cdcf9b8c49
2023-06-05 11:38:04 +02:00
Nolen Johnson
be567c8301 sm6150-common: Drop vestigial FM board-flags
* No longer read anywhere.

Change-Id: Iaf5d8cda03e055c4331e3a20e33c8058037b09b2
2023-06-05 11:38:04 +02:00
LuK1337
b2babf0134 sm6150-common: Make trust use dwc3 usb_data_enabled
Change-Id: I8fab94faf383c57e872596f8bb3c448afc6d75de
2023-06-03 21:42:43 +02:00
Arian
34422f17c8 sm6150-common: Include sdmsteppe-perf_defconfig
Change-Id: I23c9bbdf101f2a4d31c7aeaba7a5cca3716a745d
2023-05-18 12:39:56 +02:00
Arian
3719d185b0 sm6150-common: hidl: Add xiaomi framework compatibility matrix
Change-Id: I6c8e4ecfc6391ea1d59c68ddb43bdca9f6180826
2023-04-11 15:22:06 +02:00
Arian
ca7d835016 sm6150-common: Include qcom and lineage framework compatibility matrix
Change-Id: I12ec7ed7ca6c1b6111f46b2441a2768b23ea85bc
2023-04-11 15:21:35 +02:00
Alexander Koskovich
2773427200 sm6150-common: Move BT profiles props to vendor
* Makes it GSI compatible

Change-Id: I8f7caf241d508af59c16482e6185c42f23f8a460
2023-01-27 01:32:42 +00:00
Sebastiano Barezzi
442e1a5049 sm6150-common: Remove USE_XML_AUDIO_POLICY_CONF
* Dead since Q, where XML audio policies weren't enforced yet

Change-Id: I302a0ed97964b052176dc3bb0141db1ba85e78c8
2023-01-17 07:02:03 +00:00
Georg Veichtlbauer
386a6ca5ff sm6150-common: Remove AUDIO_FEATURE_ENABLED_PROXY_DEVICE
No-op, configurable during runtime

Change-Id: Ic54209df613570b15fee29c5b4c4053d38028b9b
2023-01-17 07:02:03 +00:00
Bruno Martins
a78d6fb707 sm6150-common: Drop custom APM flag along with no-op audio flags
Custom audio policy manager is hard disabled by CAF
for 2 years now. Remove as well the audio feature flags
that were used to configure it.

Change-Id: Idd34d1cbbdb735d6cf0de3b159c2670bf7ddd1e3
2023-01-17 07:02:03 +00:00
Arian
e194684060 sm6150-common: Move to legacy-um qcom sepolicy
Change-Id: I9fa72d7c2313c663490c506780ff4c66ad8037a5
2022-11-15 11:20:37 +01:00
Michael Bestas
4e8f1f1f87 sm6150-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-14 22:23:43 +01:00
Nolen Johnson
ac80e30dea Revert "sm6150-common: Use LLVM binutils and LLVM integrated assembler"
This reverts commit 816cf6a1cd.

Reason: This is now default globally.
Change-Id: I4cd4c8af67b8463950045d3887752985b3decc61
2022-11-14 22:23:43 +01:00
Arian
816cf6a1cd sm6150-common: Use LLVM binutils and LLVM integrated assembler
Change-Id: I408c0e1b272af25e8e606e586a9e1d6e7082afba
2022-08-19 17:28:16 +02:00
Sal Savage
77256f499d sm6150-common: Enable bluetooth profiles with product.prop
Bug: 217448211
Test: make -j
Change-Id: Idd7e52b7822915ed61299f1c0b29bf87ca0339fe
2022-08-18 14:32:31 +02:00
Arian
1bc49c2aff sm6150-common: Decommonize vendor security patch level
This common tree is updated further than the EOL state of
some devices now. For EOL devices we can not update the
device specific proprietary vendor blobs. Since the vendor
security patch level should be set according to the least
updated components in vendor this differs betweeen devices,
hence decommonize it so that devices with up-to-date stock
can update it.

Change-Id: I320b2f93f7b78d01393259662450f328bbef5484
2022-07-13 17:54:15 +02:00
Bruno Martins
c6daece9b1 sm6150-common: Build opensource soundtrigger HAL
Change-Id: I956d53a67841a9e1e296de6b73f08ef2efac7470
2022-06-28 00:41:07 +02:00
Sebastiano Barezzi
4ba3c81098 sm6150-common: Remove TARGET_ENABLE_MEDIADRM_64
* It's only used when building drm@1.0 HIDL

Change-Id: I06412e2dd2bb48d798be4ef6e9a26a17b65277a7
2022-06-28 00:23:34 +02:00
Nolen Johnson
7b73446642 sm6150-common: Remove deprecated TARGET_USES_QTI_CAMERA_DEVICE
* Dead as of https://review.lineageos.org/c/LineageOS/android_vendor_lineage/+/331507.
* We never needed this.

Change-Id: I8ec420d6264fee70a1602eecdbb4f34f2e5db3dc
2022-06-22 16:31:02 +02:00
Marc Bourgoin
d5d80a5347 sm6150-common: Drop QCOM WFD
Change-Id: I3dd591444dc54ebe3a32e0385cbfc3db6bfc5e1f
2022-06-22 16:23:58 +02:00
Georg Veichtlbauer
fc459f07b0 sm6150-common: Remove CLANG compile flag
Defaults to true now project-wide.

Change-Id: I1e0ff5adadc889d81c90c816457a72d2621e4b5a
2022-03-17 00:14:36 +01:00
Arian
5a4c03d68e sm6150-common: sepolicy: Move xiaomi specific property labels to vendor
Change-Id: I4f2f5e2ee9b0751e3af14fbb1cd4ab93814755f8
2021-12-29 10:19:42 +00:00