Commit Graph

479 Commits

Author SHA1 Message Date
Demon000
f9271b3d25 sm6250-common: import fstab from stock 2020-07-15 23:03:28 +03:00
Demon000
45f0b20397 sm6250-common: specify recovery flags 2020-07-15 23:03:28 +03:00
Demon000
77159a9816 sm6250-common: inherit proprietary blobs 2020-07-15 23:03:28 +03:00
Demon000
97aafa1110 sm6250-common: include local sepolicy 2020-07-15 23:03:28 +03:00
Demon000
667f722eae sm6250-common: include qcom sepolicy 2020-07-15 23:03:28 +03:00
Demon000
db8ed7dc9c sm6250-common: create dummy property files 2020-07-15 23:03:28 +03:00
Christian Oder
453a236973 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
2020-07-15 23:03:28 +03:00
Demon000
ed08feb3fe 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.
2020-07-15 23:03:28 +03:00
Demon000
c21db8f4da sm6250-common: define security patch level
Can be found by checking the value of ro.vendor.build.security_patch
on stock.
2020-07-06 04:47:59 +03:00
Demon000
1bfd9147f0 sm6250-common: allow duplicate targets
Change-Id: Ied8866cc2d9f76bc2acd77ff07fd72d560ba7c69
2020-07-06 04:47:59 +03:00
Demon000
87a506fee8 sm6250-common: build with qcom hardware
Change-Id: I62a85f2a7d2d1a6c430688f57458bc99c46ce5c5
2020-07-06 04:47:59 +03:00
padarshr
9277c9cf3d sm6250-common: Add device compatibility matrix
Add device compatibility matrix to common project and
targets can point the build variable DEVICE_MATRIX_FILE to
this file to build device compatibility matrix.

Change-Id: If8e75c5ee8de0ef50d6937ffbd6453fb3f5eb648
2020-07-06 04:47:59 +03:00
Demon000
8a113b2d68 sm6250-common: import stock manifest 2020-07-06 04:47:59 +03:00
Demon000
c4e01f6871 sm6250-common: use dexpreopt on linux host and non-eng build 2020-07-06 04:47:59 +03:00
Demon000
24af70e3ba sm6250-common: enable suspend in off-mode charging
This guards usage of libsuspend in off-mode charging.
2020-07-06 04:47:59 +03:00
Demon000
67caa47dff sm6250-common: enable use of QTI camera device
Based on the existance of vendor.qti.hardware.camera.device@1.0.so
on stock.
2020-07-06 04:47:59 +03:00
LuK1337
da4ac49699 sm6250-common: bluetooth: Push×pop PROPERTY_VALUE_MAX in buildcfg header
This deals with the PROPERTY_VALUE_MAX redefinition compilation issue.

Change-Id: I34bb283512ca1a75c680af140846f16cccf0c645
2020-07-06 04:47:59 +03:00
LuK1337
2932db6d60 sm6250-common: Fix build of our bluetooth header
Change-Id: I45c5a123c86f3a9ec1ac72011c018a937d4fc70f
2020-07-06 04:47:59 +03:00
LuK1337
2087946c9d sm6250-common: Switch to a map based BT name
Change-Id: I6e0457441c5d2e7fd936d117439a90ae84496dc2
2020-07-06 04:47:59 +03:00
Bruno Martins
23094912ff sm6250-common: Import BT config header
* Straight from CAF (as per LA.UM.6.3.r4-04300-sdm845.0),
   with BTM_DEF_LOCAL_NAME unset so that ro.product.model
   is used instead.

Change-Id: I20a8460c9d936cc3d94f74e469f8babf1c02bda4
2020-07-06 04:47:59 +03:00
Demon000
a39724cb6f sm6250-common: define audio feature rules used by audio policy 2020-07-06 04:47:59 +03:00
Demon000
c906100e46 sm6250-common: specify rules for audio policy
USE_CUSTOM_AUDIO_POLICY guards out the AOSP audio policy,
while guarding in the CAF audio policy.
USE_XML_AUDIO_POLICY_CONF specifies the use of .xml files
for audio policy.
2020-07-06 04:47:59 +03:00
Demon000
d69d4c2fe8 sm6250-common: remove buildvariant cmdline argument 2020-07-06 04:47:59 +03:00
Demon000
77baa3fc08 sm6250-common: define kernel rules
Extracted from imginfo of mkboot.

TODO: cleanup cmdline arguments
2020-07-06 04:47:59 +03:00
Demon000
a5381b36e1 sm6250-common: define no bootloader rule
This guards out inclusion of bootloader.
2020-07-05 15:51:52 +03:00
Demon000
8b64e910c9 sm6250-common: define board platform rule
Taken from
https://source.codeaurora.org/quic/la/platform/vendor/qcom/atoll/tree/BoardConfig.mk?h=LA.UM.8.9.r1-09500-SM6xx.0#n6

Can be cross-checked with the following prop
ro.board.platform
2020-07-05 15:51:26 +03:00
Demon000
b673c729d3 sm6250-common: define architecture rules
Taken from
https://source.codeaurora.org/quic/la/platform/vendor/qcom/atoll/tree/BoardConfig.mk?h=LA.UM.8.9.r1-09500-SM6xx.0#n11.
2020-07-05 15:37:59 +03:00
Demon000
b9f6f98d99 sm6250-common: specify common path
This path will be used later when including files relative to
this directory.
2020-07-05 15:25:37 +03:00
Demon000
bd8b45068c sm6250-common: initialize tree 2020-07-05 15:08:04 +03:00