Commit Graph

151 Commits

Author SHA1 Message Date
Bruno Martins
7469b72e89 sm8350-common: Blob out audio HAL extensions
These targets are using prebuilt audio HAL and for some reason,
using the source-built liba2dpoffload breaks A2DP. Just use
prebuilt HAL extensions to avoid mismatches.
Build libtinycompress explicitly as that was built implicitly as
dependency of the audio HAL extensions previously.

Change-Id: I37a5601afdbfdcb81a1053b366fad79fadf4eaa7
2022-09-26 17:12:40 +02:00
Giovanni Ricca
42b801c2e4 sm8530-common: Switch to fragmented defconfigs
Change-Id: I5c3a7c41a9764221a2872830abf078ecc2cdf192
2022-09-26 17:12:40 +02:00
Alexander Koskovich
8bd2080cc3 sm8350-common: Switch to /vendor_dlkm for kernel modules
* This lets us flash /vendor regardless of the kernel situation.

Change-Id: Ie1c18354b26006e416d06474f5844ceef3cfbaf3
2022-09-26 17:12:40 +02:00
Giovanni Ricca
9ff3970ef0 sm8350-common: Update blobs to haydn V13.0.3.0.SKKMIXM
Change-Id: Id056ba050d88849d5bdd56b0e40d0f1f4b67b6c2
2022-09-26 17:11:57 +02:00
Bruno Martins
16a45dcda2 sm6150-common: Move to common fingerprint HIDL
Change-Id: I7cb0a45c865d9dbfd800b1d633f8d5ae613bb1b9
2022-09-25 20:04:30 +02:00
Alexander Koskovich
b98097ff80 sm8350-common: Move DTC_EXT definition to vendor/lineage
Change-Id: I452ec4dabfd6abf052f020fe48527403df873f5f
2022-09-25 20:04:30 +02:00
Alexander Koskovich
5b6287a401 sm8350-common: Move LLVM=1 and LLVM_IAS=1 to BoardConfigKernel
Change-Id: I994ed59207aaad159d8f5363be21a0a1357374e6
2022-09-25 20:04:30 +02:00
Sebastiano Barezzi
2c89c465c5 sm8350-common: Drop QTI camera device usage
* qcom-camera topic hasn't been ported to 19.1
* Keep building vendor.qti.hardware.camera.device@1.0 interface lib, IMS stack and possibly camera HAL still needs it

Change-Id: I87bcd5b54ad986d5844df50de243fc1a18507198
2022-09-25 20:04:30 +02:00
Georg Veichtlbauer
0ec2d73850 sm8350-common: Remove CLANG compile flag
Defaults to true now project-wide.

Change-Id: I1e0ff5adadc889d81c90c816457a72d2621e4b5a
2022-09-25 20:04:30 +02:00
Alexander Koskovich
ec81b275ae sm8350-common: vAB: Move GSI AVB keys to /vendor_boot
Change-Id: I59cac1103239dbd885986a98b2edd70ce1391e8a
2022-09-25 20:04:30 +02:00
Alexander Koskovich
da9b02c08a sm8350-common: vAB: Move recovery resources to /vendor_boot
* https://source.android.com/devices/bootloader/partitions/vendor-boot-partitions

Change-Id: I6ffae14aef4597c7f8c787bfaeece69db0e38394
2022-09-25 20:04:30 +02:00
Michael Bestas
d434f19804 sm8350-common: Switch to SYSTEM_EXT_{PUBLIC,PRIVATE}_SEPOLICY_DIRS
Fixes:
warning: BOARD_PLAT_PRIVATE_SEPOLICY_DIR has been deprecated.
    Use SYSTEM_EXT_PRIVATE_SEPOLICY_DIRS instead.
warning: BOARD_PLAT_PUBLIC_SEPOLICY_DIR has been deprecated.
    Use SYSTEM_EXT_PUBLIC_SEPOLICY_DIRS instead.
Change-Id: I752602079de8ff4c5370fe3ec861b8746838d878
2022-09-25 20:04:30 +02:00
Felix
b310ffed6f sm8350-common: Use BOARD_VENDOR_SEPOLICY_DIRS
BOARD_SEPOLICY_DIRS is deprecated.

Change-Id: I046282b2a2e8c541726fb29cb0044503322d4be9
2022-09-25 20:04:30 +02:00
Roger Ellis
3114d3088b sm8350-common: Allow ELF prebuilts in PRODUCT_COPY_FILES.
* ELF prebuilts were banned in PRODUCT_COPY_FILES starting
   May 11th. See b/156534160 for long-term fix which should
   override this change.

Change-Id: Icd25b40ca4e4285319775046a1b70de30572be07
2022-09-25 20:04:30 +02:00
Christopher N. Hesse
3162411998 sm8350-common: Enforce vendor tree presence
A compiled build has no chance of booting without the prebuilt
binaries, so fail the build if those are not present.

Change-Id: Iadd43e887d426732e549969ab8deb14194ca818d
2022-08-29 01:53:16 +02:00
Nicolas Geoffray
cd8d088c3a sm8350-common: Generate the apex image.
Change-Id: I18a76766590db27a4c32534dc948f55f78da166c
Signed-off-by: Akhil Narang <akhilnarang.1999@gmail.com>
2022-08-29 01:53:16 +02:00
Alexander Koskovich
5a1fa60059 sm8350-common: Remove virtual framebuffer.
* It's largely for testing purposes and it consumes
   a large amount of memory. If your hardware doesn't
   have graphics then it can be useful, which isn't the
   case for shipped devices.

Change-Id: I2348718ad3afba846498572161fa7e83dd8b7ce9
2022-08-29 01:24:29 +02:00
Arian
222cbc7e39 Revert "sm8350-common: Set linker to LLD"
This reverts commit 1275ef272b.
2022-04-12 18:04:57 +02:00
Arian
3d0471a8e2 sm8350-common: Pass TARGET_PRODUCT variable to kernel flags
This is used by audio techpack

Change-Id: I508442db6b8172510eb72ae9733c7903350df940
2022-04-12 18:04:50 +02:00
Arian
8cf9c727e7 sm8350-common: Build GPS HAL from source and import proprietary configs
Configs from odin V12.5.12.0.RKMCNXM
slim_daemon is disabled in izat.conf, hence drop it.

Change-Id: Ia1ed33f6250b898d149970389befe8033cc8eaf3
2022-04-02 00:05:33 +02:00
Arian
ab2ce96501 sm8350-common: Fix section sorting in BoardConfig
Change-Id: I03a1e49268e33a58e5724eb8a737dea903c20022
2022-04-02 00:02:52 +02:00
Arian
6ffc1812de Revert "sm6250-common: allow duplicate targets"
This reverts commit 1bfd9147f0.

Change-Id: I26a0c3f2047a460b842845117b1bff051c1405f8
2022-04-02 00:02:45 +02:00
Pig
57738613fb sm8350-common: fingerprint: Add xiaomi fingerprintextension support
Co-authored-by: C457 <android.c357@gmail.com>
Signed-off-by: Arian <arian.kulmer@web.de>
Change-Id: Ie9deb0dfcc689034cd3c4b9095e319130ba8d8cd
2022-04-02 00:02:26 +02:00
Arian
d90172a404 sm8350-common: Add power HAL extension and use xiaomi-touch to handle dt2w
Change-Id: I5c65e0df255853eb2b3018a27ceb807c111bc4df
2022-04-02 00:00:58 +02:00
Arian
cab4afd2f1 sm8350-common: vibrator: Make the usage of effect stream optional
Change-Id: I45f15112b16b04a9a012bf26e366aaebaa3a3bef
2022-04-01 23:43:34 +02:00
Arian
821be22972 sm8350-common: Upate vendor security patch level from odin V12.5.12.0.RKMCNXM
Change-Id: Idaa8ed9461ccfd5ff419fb996c037e30b5aac459
2022-04-01 17:44:14 +02:00
Arian
057daefb66 sm8350-common: Move vendor manifest fragments to vendor repository
Change-Id: I8770fb6c27637dfa934af45a3993c4447dcd2430
2022-04-01 17:39:06 +02:00
Arian
2eb8ab7ef0 sm8350-common: Checkout framework compatibility matrix to LA.QSSI.11.0.r1-12100-qssi.0
Additonally move xiaomi's additions to xiaomi_framework_compatibility_matrix.xml
and make them optional.

Change-Id: Ib3abddb4a9e9615fb973b9efd2e511d96998d6ce
2022-04-01 17:39:06 +02:00
Arian
da78308f49 sm8350-common: Checkout manifest_lahaina to caf
This is a pre-public tag which matches stock.
https://source.codeaurora.org/quic/la/platform/vendor/qcom/lahaina/plain/manifest_lahaina.xml?h=LA.UM.9.14.r1-12600-LAHAINA.0&id=2100bf201f102dcf517f7436dc5f6e802ab386ac

Change-Id: I4ebe1dc949c0e1188d18e04bae77ed62bdc51fc0
2022-04-01 17:39:06 +02:00
Arian
8799b8c223 sm8350-common: Move manifests to hidl folder
Change-Id: Ie1a43451abdcf02038e58959e1818a5275ae37c8
2022-04-01 17:39:06 +02:00
Arian
027ef2d641 sm8350-common: Drop unnecessary framework manifest
Change-Id: Ib1f92e29fd0830b6f13c2f899e6aa358e1997b4c
2022-04-01 17:39:06 +02:00
Luca Stefani
1275ef272b sm8350-common: Set linker to LLD
Change-Id: Ia165daa55ff707725b0619af12bf3a2e6e79c981
2022-04-01 17:12:23 +02:00
Erfan Abdi
0098ec7279 sm8350-common: Disable debugging full super build 2022-04-01 17:12:22 +02:00
Erfan Abdi
c20701501c sm8350-common: Set armv8-2a for arch variant 2022-04-01 17:11:09 +02:00
Arian
1a3440bdb7 Revert "sm6520-common: use BUILD_COPY_HEADERS"
This reverts commit b220c66461.

Change-Id: If674d4ad180cb51b7a268faf11e79a8ea811a05f
2022-04-01 17:09:12 +02:00
Erfan Abdi
0d8363f239 sm8350-common: Drop RenderScript override 2022-04-01 17:09:02 +02:00
Arian
da5b5366f4 sm8350-common: Drop deprecated TARGET_USES_ION flag
This is not a thing anymore in sm8350 media HAL

Change-Id: I06dd979fd59ea3adb1c0daf2a80e60dedcb4fc67
2022-04-01 17:09:02 +02:00
Nolen Johnson
0269bed70c sm8350-common: Kill deprecated TARGET_USES_MKE2FS
* This has been useless since some time in Pie.

Change-Id: Ic02238aa0f1c25cfad20a2b827c3c2fe128f3543
2022-04-01 17:09:02 +02:00
Arian
02d4073671 sm8350-common: Drop unused TARGET_USES_HWC2 flag
Change-Id: Ibbd99b25b270c4fb593d1ad09d8003d40b6f0d18
2022-04-01 17:09:02 +02:00
Anton Hansson
8a92c6d7e8 sm8350-common: Remove obsolete dex settings
This block is completely redundant because..
- WITH_DEXPREOPT := true is the default
- WITH_DEXPREOPT_PIC is never read
- DEX_PREOPT_DEFAULT := nostripping has no effect when the
  BOARD_USES_SYSTEM_OTHER_ODEX flag is set to true

Test: make
Change-Id: I618a1e395ca1a14555cd50eef1a4f1aa079b553d
2022-04-01 17:09:02 +02:00
Sebastiano Barezzi
114ba94139 sm8350-common: Remove USE_XML_AUDIO_POLICY_CONF
* Dead since Q, where XML audio policies weren't enforced yet

Change-Id: I302a0ed97964b052176dc3bb0141db1ba85e78c8
2022-04-01 17:09:02 +02:00
Arian
2191cd7d4a sm8350-common: Drop unnecessary audio HAL flags from BoardConfig
BOARD_USES_ALSA_AUDIO is only used to determine wether the audio HAL
is built from source, but we ship the prebuilt stock HAL.
AUDIO_FEATURE_ENABLED_GEF_SUPPORT is used to modify the source-built
audio HAL, which does not have an effect for us.

Change-Id: I652de533d1c21a0e45dc7406bd0698326c5dbcd7
2022-04-01 17:09:02 +02:00
Nolen Johnson
02192e7637 sm8350-common: Kill deprecated/unneeded board flags
* TARGET_KERNEL_ARCH - no-op unless it differs from TARGET_ARCH.

Change-Id: I8d140fecdbbaac979bc8398745ffa95b911e4c89
2022-04-01 17:09:02 +02:00
Daniel Mentz
7ba36f043f sm8350-common: Remove ineffective BOARD_KERNEL_TAGS_OFFSET variable
Remove various variables related to where kernel and ramdisk are loaded
by the bootloader. There are two reasons for this:

1. Our bootloader ignores all the offset values for kernel, ramdisk
and tags.

2. The variables BOARD_KERNEL_TAGS_OFFSET and BOARD_RAMDISK_OFFSET are
ignored by the Android build system (unless they are copied into the
BOARD_MKBOOTIMG_ARGS variable). This is in contrast to the variables
BOARD_KERNEL_BASE, BOARD_KERNEL_PAGESIZE and BOARD_MKBOOTIMG_ARGS which
are referenced by build/make/core/Makefile

Bug: 117832711
Change-Id: I3404a4e084ed063d51077a3a80229854362c768b
2022-04-01 17:09:02 +02:00
Nolen Johnson
589821dcaa sm8350-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
2022-04-01 17:09:02 +02:00
Erfan Abdi
941f73234a sm8350-common: Drop vendor modules load
Change-Id: Ibd9c586c62cbb28b145bf98c6fb5bef9a5b2ae8b
2022-04-01 17:09:02 +02:00
Erfan Abdi
e6b036480f sm8350-common: Drop unused releasetools 2022-04-01 17:09:02 +02:00
Erfan Abdi
88c208f447 sm8350-common: Drop disabled ubwc flag 2022-04-01 17:09:02 +02:00
Arian
207f94ca90 sm8350-common: Decommonize dtbo and userdata partition sizes
These sizes are different on odin and renoir

Change-Id: I37c8a248d0f29a018bd23f859271ef9141421653
2022-04-01 17:09:02 +02:00
Arian
8ba658fd19 sm8350-common: Decommonize kernel config
Change-Id: I359cfc735d900056db3f5d060001b395b9197abb
2022-04-01 17:09:02 +02:00