Commit Graph

23 Commits

Author SHA1 Message Date
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