Commit Graph

1144 Commits

Author SHA1 Message Date
David Ng
0d171a099e 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
2020-07-15 23:03:28 +03:00
Demon000
e07fbb9738 sm6250-common: init: override dalvik heap config based on total RAM 2020-07-15 23:03:28 +03:00
Lokesh Gidra
149534d371 sm6250-common: Use 4GB dalvik-heap config
Change-Id: I086d4a5c09634c3c7bd51ec5d08dcaa1551511b4
2020-07-15 23:03:28 +03:00
Bruno Martins
5103f8908c sm6250-common: Define Soong namespace
Change-Id: Ibea0e8fe5dbc26d8953a9735f0b38cf087805b76
2020-07-15 23:03:28 +03:00
Jiyong Park
f3796a363a sm6250-common: Add updatable_apex.mk
The product abstracts configs that need to be set to support updating of APEXes.

Change-Id: Id5aa944ceba6a6846308f1c18a08af8b3bb38589
2020-07-15 23:03:28 +03:00
Demon000
d531d043ec sm6250-common: set shipping api level
Change-Id: I6fb3ccbdb534fc737888648bc780c2cdbe96070e
2020-07-15 23:03:28 +03:00
Demon000
f36a101882 sm6250-common: inherit from base device configuration 2020-07-15 23:03:28 +03:00
Demon000
ca394df9e8 sm6250-common: add support for curtana 2020-07-15 23:03:28 +03:00
Demon000
c8ce429b15 sm6250-common: create wlan firmware symlinks 2020-07-15 23:03:28 +03:00
Bruno Martins
49d5be9433 sm6250-common: Create RFS symlinks
Change-Id: Ica1d4a9893f526ab98c5ef07e18d51dbf74c8e93
2020-07-15 23:03:28 +03:00
Ameya Thakur
b17e97f25e sm6250-common: Generate non-hlos image mount points for A/B builds
On builds where A/B support is enabled the system image acts as the
rootfs. In this case we can no longer create the non-hlos image mount
points at run time as we used to. We now create them as part of the
build itself.

Change-Id: I30d98f7c50fca3ce7117b9b8d87150655bb5b440
2020-07-15 23:03:28 +03:00
Demon000
37a32ef638 sm6250-common: add root makefile 2020-07-15 23:03:28 +03:00
Demon000
c66d4f6e8f sm6250-common: import extract files scripts 2020-07-15 23:03:28 +03:00
Demon000
ac373c1520 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
2020-07-15 23:03:28 +03:00
Demon000
d6d664d174 sm6250-common: specify recovery fstab 2020-07-15 23:03:28 +03:00
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