Commit Graph

33 Commits

Author SHA1 Message Date
6fae12a724 sm6250-common: Build FM libs
Change-Id: If5d73c3a142f44f3b9af69dbe287c362117c254e
2021-09-09 18:46:19 +02:00
f0c75277aa sm6250-common: Build DRM HIDL
Change-Id: I51a46b9dd23b4de19708ad8ffbfba7f939230238
2021-09-09 18:46:17 +02:00
e0a9f12805 sm6250-common: Build display stack
Change-Id: I42bdf9aad5f6619469c5e11487b92b1837dd252d
2021-09-09 18:46:17 +02:00
1dd5cac91d sm6250-common: Disable UBWC
Change-Id: If28a6bce43640b854a66b51944575a892da6bdbc
2021-09-09 18:46:16 +02:00
d0046db961 sm6250-common: Build camera libs
Change-Id: I9b5d730c54018614c8e28a946a1d234663339b0c
2021-09-09 18:46:16 +02:00
c9751304db sm6250-common: Commonize bluetooth config
Change-Id: I44a7841dfef8fe399d242c0de8475bda9f11664a
2021-09-09 18:46:16 +02:00
3f85485d2d sm6250-common: Build opensource soundtrigger HAL
Change-Id: I956d53a67841a9e1e296de6b73f08ef2efac7470
2021-09-09 18:46:12 +02:00
7723d44913 sm6250-common: Build audio stack
Change-Id: Id1e28604c0c83093e309656a2059c517084984f5
2021-09-09 18:46:12 +02:00
4a2375f2bc sm6250-common: rootdir: Import rootdir files
* From curtana-user 11 RKQ1.200826.002 V12.0.4.0.RJWMIXM release-keys

Signed-off-by: Alexander Winkowski <dereference23@outlook.com>
Change-Id: Ibcf71853e6d45b4ca6948f5267f2af26bf8b812a
2021-09-09 18:46:05 +02:00
e5bcbf6389 sm6250-common: Add common config.fs AID/fs configuration file
Common config.fs/$TARGET_FS_CONFIG_GEN AID/fs configuration
file for all chipset inheriting from base.mk.

Since legacy device-specific android_filesystem_config.h and
config.fs do not co-exist, temporarily include config.fs only
if legacy file is absent.  Once all legacy, device-specific
files have been deleted, config.fs can be made unconditional.

Change-Id: Ie100d0cd9db808b82d99be7139f0709390c7f3a2
2021-09-09 18:46:04 +02:00
3e433303bf sm6250-common: Inherit proprietary blobs
Change-Id: Ib182c1a70449097e332c1233c7909fc419b65091
2021-09-09 18:46:00 +02:00
5c18a2d726 sm6250-common: avb: Compile recovery image as a chain partition
Add AVB flags to compile recovery image
as a chained partition. This is required
for safe OTA when multislot support is
not present.

Change-Id: I1115eba4038e6fcaa61440846a25861366996ed4
Signed-off-by: Volodymyr Zhdanov <wight554@gmail.com>
2021-09-09 18:45:59 +02:00
8b15fb7dae sm6250-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-09-09 18:45:59 +02:00
c9394889aa sm6250-common: Build disabled VBMeta image
Partitions that use vbmeta_system can be found by looking at
avb flag in fstab from boot ramdisk.

--flags 2 makes the verification function of avb always return a
positive result.

--set_hashtree_disabled_flag builds the vbmeta images with the
HASHTREE_DISABLED bit set and as a result they don't need to manually
disable dm-verity via e.g. 'adb disable-verity'.

The rest of the configuration is taken from
https://source.android.com/devices/tech/ota/dynamic_partitions/implement#avb-configuration-changes

Change-Id: I381feef8f6fefc8449ca50d85d704b67bcc8a77e
2021-09-09 18:45:59 +02:00
aab5ab4811 sm6250-common: Include qcom sepolicy
Change-Id: Iaf54a187cda5e6921b791031fa2132a91a62d184
2021-09-09 18:45:59 +02:00
86f966abab sm6250-common: Define security patch level
Can be found by checking the value of ro.vendor.build.security_patch
on stock.

Change-Id: I1d4a8bb4a5b6fdb4d1213fab0ea5e19eb7904ff7
2021-09-09 18:45:59 +02:00
16b28c14ac sm6250-common: Define vendor RIL service usage
This can be checked by looking for a rild service in system.
If it's missing, then a vendor ril service is being used, in
our case, it is qcrild.

Change-Id: I5378de6eec4ff2511a49c19c0fc474658efe338f
2021-09-09 18:45:58 +02:00
d0df23cd8c sm6250-common: releasetools: Add dtbo image to the output zip if present
Change-Id: I8bb4da99945eceae3beab77489e6b9e2a47ab972
2021-09-09 18:45:58 +02:00
76fd1493b6 sm6250-common: Specify recovery flags
Change-Id: I203a86d59908b96ab90f1599f3426ba4ebd8ba26
2021-09-09 18:45:58 +02:00
28e76b69d4 sm6250-common: Initial build properties
* From curtana-user 11 RKQ1.200826.002 V12.0.4.0.RJWMIXM release-keys

Change-Id: I6898416bacc3ebde9938f9a9cd455d90e3dcef0a
2021-09-09 18:45:57 +02:00
b6871b71e6 sm6250-common: Declare BOARD_VENDOR
* Needed for xiaomi-perfmgr power AIDL guards

Change-Id: I54f2377ac529053906ee4dbdc16def74c8ed80fc
2021-09-09 18:45:56 +02:00
1f48e70a82 sm6250-common: Add platform flags
Change-Id: I06431ef5fb73eceda5bbff8706d45303fe6f5aab
2021-09-09 18:45:56 +02:00
e7b68cf01e sm6250-common: Reserve some space in dynamic partitions
Change-Id: If5546e4459da7408932c797d1c239b6442f96dd7
2021-09-09 18:45:56 +02:00
fab0daa3bd sm6250-common: Define partition rules
Partition sizes can be found by query-ing sysfs.
For example, for super partition.

> ls -la /dev/block/by-name/super
lrwxrwxrwx 1 root root   16 1970-03-23 06:51 super -> /dev/block/sda17
> cat /proc/partitions | grep sda17
 259        1    8388608 sda17

The size needs to be multiplied by the block size used by
/proc/partitions, which is 1024 bytes.

Logical partitions found inside the physical super partition
can be found by looking for entries with the logical flag in the
fstab inside boot ramdisk.

Change-Id: Ic65df8e093a601e3f603c40174b116b20072ee27
2021-09-09 18:45:56 +02:00
af4ac57c6e sm6250-common: Use as many LLVM tools as possible
Signed-off-by: Albert I <kras@raphielgang.org>
Change-Id: I3cff2a996944d8fe354859fa51b71d21475c3972
2021-09-09 18:45:56 +02:00
f874e702d7 sm6250-common: Define kernel rules
Change-Id: Iba6e0617d69a6c1ef2266dddf551613e5876aa56
2021-09-09 18:45:55 +02:00
27c7899680 sm6250-common: Initial variant handler libinit
* This libinit has been made to commonize device variants props handling

[dereference23: Adapt for Xiaomi SM6250]
Signed-off-by: Alexander Winkowski <dereference23@outlook.com>
Change-Id: Iab68ff451ab1d6e861fb4cda4ef07fad3123ecde
2021-09-09 18:45:55 +02:00
223d20e8cd sm6250-common: Add framework compatibility matrix
* Generated with https://gist.github.com/SebaUbuntu/ec053a00a9988eaea091fb1cc1f19324

Change-Id: Ic40d19adb0d47a52c4b82eb71bb60ddaff76548d
2021-09-09 18:45:55 +02:00
fee6e4e2c5 sm6250-common: Import compatibility matrix and manifest
* From mojito-user 11 RKQ1.201022.002 V12.5.2.0.RKGMIXM release-keys

Change-Id: I9ffb0687e0f8bdfdec3253f198a6e08b93543a01
2021-09-09 18:45:54 +02:00
c38eca6eb1 sm6250-common: Define bootloader flags
Change-Id: I9a47b68089717e8ad96cec85ea9ed99ba0e75b7e
2021-09-09 18:45:54 +02:00
597303833b sm6250-common: Define architecture rules
Taken from ad8e3a17f6/BoardConfig-common.mk

Change-Id: I5d53c033449a86e0ec354ba38214a11e8b7d7c6c
2021-09-09 18:45:53 +02:00
5bb1b2b40a sm6250-common: Allow duplicate targets
Change-Id: Ied8866cc2d9f76bc2acd77ff07fd72d560ba7c69
2021-09-09 18:45:53 +02:00
0528cf0e42 sm6250-common: Specify common path
This path will be used later when including files relative to
this directory.

Change-Id: I09870cf0525e7ae6ef9a85a1b36eff14fa898590
2021-09-09 18:45:53 +02:00