Commit Graph

369 Commits

Author SHA1 Message Date
Alexander Koskovich cfbd2c16b4
Add an initialization component from LA.UM.9.1.r1-08400-SMxxx0.0.
Change-Id: I49dbed09776c6d8437c4a749ee78849a5d8206e6
2020-10-14 09:06:10 -07:00
Alexander Koskovich 6a706e0b60
common: Add an overlays component from LA.QSSI.11.0.r1-06200-qssi.0.
Change-Id: I6fc4494effa67f52126653867e23e90ad7f0c978
2020-10-14 09:00:46 -07:00
Jyotiraditya 5941911c9f common: Switch to AIDL based power HAL service
Change-Id: Id375d27b2d85cdc874d9583344848d5fc6329aba
2020-09-26 13:50:24 +00:00
Alexander Koskovich 7cf9b8e299
common: Introduce GPS component.
Change-Id: I3d88f36b7da6e06a9a340b9202864ede36378cca
2020-07-30 16:51:15 -04:00
Jake Weinstein 20dcefe12a
common: Introduce display component for QSSI SoCs (845 and newer)
Change-Id: I0853820ab7a52aa1dc7a47d3576d3dc96f451b50
2020-07-30 16:51:13 -04:00
Jake Weinstein 7586e977ff
common: Introduce audio component for QSSI SoCs (845 and newer)
* This includes the basic system flags and properties which
   should be common across all SoCs that support QSSI.

 * We have to disable AHAL_EXT because it depends on
   proprietary headers. AHAL may be something we should
   reverse. On a side note, we can probably move the AHAL
   blobs from AV to audio HAL at some point.

Change-Id: Icac2b2ce985272c7d281cfffa130f76de5adf614
2020-07-30 16:50:45 -04:00
Arian ed3ec32ae5 common: Build Qualcomm PowerHAL
Change-Id: I78f24f16d7454d3cdbea6751b826f6d2badb35de
2020-06-25 15:58:45 +00:00
Jake Weinstein 10564c060b
wfd: Include QCOM display packages.
* WFD is dependent on these to work.
 * Add comment to Makefile to clarify which
   SoCs use wfd (845 and up) and which use
   legacy (835 and older)

Change-Id: I072c88a23bd57e7d5312fc6a7fda11ec8e0d3634
2020-05-05 17:25:05 -04:00
Alexander Koskovich 74b31b107a common: Add legacy WFD component.
Change-Id: I8b10066a79f19b185eb5582862f370d1d6bdad25
2020-05-05 19:21:43 +00:00
Jake Weinstein 98e34b5882 common: Move flags to BoardConfigQcom in vendor/pa
Change-Id: Ic1c75434521dc4afa9addb296566f31d3994503f
2020-04-01 23:25:58 +05:30
Jake Weinstein 9a2475626c common: Move utils.mk to vendor/pa
Change-Id: I1d900a706925191376123a36bc499a328fe6c608
2020-04-01 23:11:22 +05:30
Adithya R 6b48197189 common: Move media extensions flag to vendor board config
- There is no point in adding platform-specific config here
  cuz BoardConfig is read only after pa_device.mk device.mk so
  at this point TARGET_BOARD_PLATFORM is null

Change-Id: Ife96c4c95bb764d08d1c3d0fed1cf2921a58390b
2020-03-29 11:27:45 +05:30
Jake Weinstein a4cf285bca common: enable TARGET_USES_MEDIA_EXTENSIONS on Legacy Devices
This list of SoCs matches CAF.

Change-Id: Ib0f0e63bc0ab365ba4f2e159b43059aa4dd9d9c2
2020-03-23 21:16:07 +01:00
TheStrix d0d9d95577 common: Add common QTI components
- To use this, set TARGET_COMMON_QTI_COMPONENTS := <components>.
   e.g. TARGET_COMMON_QTI_COMPONENTS := av bt perf
 - Configurations go inside qti-components/<component>/qti-<component>.mk
 - Blob list go in qti-components/<component>/proprietary-files.txt

Change-Id: I9868b02da59c69326f3587cf338187753955c1db
2020-03-19 19:22:43 +05:30
Jake Weinstein 4cfb0a59d8 common: move seccomp to vendor/pa
Change-Id: Ifd24850a786c336d7529317a53bdbd912cdecd58
2020-03-19 04:43:51 +01:00
Jake Weinstein 2c646e73c8 common: remove deprecated flags
Change-Id: I9470d0b21e6badda35e35c74be51ff8a2725576a
2020-03-09 03:42:01 +01:00
Jake Weinstein 8444453ffe common: remove TARGET_USES_AOSP
This isn't used anywhere meaningful.

Change-Id: I4d860852c2a5b7da4e5948a4c8834c43c82c1bfe
2020-01-28 06:04:41 +01:00
Jake Weinstein 94b99b76ed common: move skip boot jars check to vendor/pa
This is relevant on all devices.

Change-Id: Ie2a68283cb85a9b74a8f317d7f5bd28e755f7b6a
2020-01-28 06:03:08 +01:00
Jake Weinstein 7dce3a1e74 common: automatically define AOSP and QCOM_BSP flags by SoC
Change-Id: I8e457b7e14d33080eed8fb7bfb0a9d23f3bf4959
2020-01-23 05:35:20 +01:00
Jake Weinstein 3ef6db5bf3 common: Skip boot jars check
Matches CAF and fixes errors like these

Error: out/target/common/obj/JAVA_LIBRARIES/telephony-common_intermediates/classes.jar contains class file org/codeaurora/ims/ImsMultiIdentityControllerBase$MultiIdentityBinder.class, which is not in the whitelist
Error: out/target/common/obj/JAVA_LIBRARIES/tcmiface_intermediates/classes.jar contains class file com/quicinc/tcmiface/DpmTcmIface.class, which is not in the whitelist
Error: out/target/common/obj/JAVA_LIBRARIES/telephony-ext_intermediates/classes.jar contains class file org/codeaurora/internal/BearerAllocationStatus$1.class, which is not in the whitelist

Change-Id: I94f376d14134c80c14188b07eebca01933b7e47a
2019-09-02 04:14:24 +00:00
Jake Weinstein c36be5da03 common: enable TARGET_ENABLE_QC_AV_ENHANCEMENTS for all QC devices
Change-Id: I892e675e6f22e4a5c02235cd434764336b8d4458
2019-08-02 08:45:25 -05:00
Jake Weinstein a328996fff common: remove deprecated DPM configuration
Change-Id: I84d706b1adf72c4f9c36bbdb87476186fff328ed
2019-07-31 20:34:50 +00:00
Jake Weinstein 65ef3f960f Remove cryptfs_hw, power HAL, dtbtool and thermal-engine header
In Android Pie, Qualcomm moved these to vendor/qcom/open-source

Change-Id: I370c88083375aae55bfb863516cc8e52ffa7b169
2018-09-20 16:13:48 +00:00
Lennart Wieboldt e8c30d03da common: move sdclang config files to vendor/pa (1/2)
* Do not limit the usage of sdclang to devices which call
  the qcom/common repo

Change-Id: I667e6270058d02fdd894b8242a6375b1a13237df
Signed-off-by: Lennart Wieboldt <lennart.1997@gmx.de>
2018-04-20 16:38:35 +02:00
Lennart Wieboldt a12c35fb46 common: Remove QCOM_BSP condition
Since caf devices use the following the condition is useless:
TARGET_USES_AOSP := true
TARGET_USES_QCOM_BSP := false

Change-Id: I16b8f7d708c596b741a71e7b37f6f68785939b28
Signed-off-by: Lennart Wieboldt <lennart.1997@gmx.de>
2018-01-22 15:41:10 +01:00
Hernán Castañón b1f1463b37 common: Remove Dash support
On O, Dash was fully deprecated on all chipsets.

Change-Id: I0583ad868390c028cef1e8bf0cb181d7ca1e140a
Signed-off-by: Hernán Castañón <herna@paranoidandroid.co>
2017-11-11 08:34:28 +00:00
Bharat Pawar f96e15a9d6 common: Install video seccomp policy files in /vendor
Vendor extended policy files are separated from the aosp
and will now reside in /vendor

Change-Id: I807484b5a5d69db81db4684adb91c0795ba88673
2017-11-06 19:45:02 +01:00
Hernán Castañón Álvarez 309a5bd17d common: Remove SnapdragonCamera
We are migrating it over vendor/pa as we now have
ParanoidCamera instead of SnapdragonCamera.

Change-Id: Ib383ffa7f2107b0bdfd5af8e72f848a67f972798
2017-09-08 23:14:51 +00:00
Alex Naidis 6277a06729 common: Mark QCNE as supported
All Qualcomm devices are capable of theoretic
QCNE support.

Change-Id: I812a044105698971c280657e40e737be049c124f
Signed-off-by: Alex Naidis <alex.naidis@linux.com>
2017-05-23 20:40:48 +00:00
Jake Weinstein 50ad3dbfab common: disable SnapdragonCamera on TARGET_USES_AOSP_CAMERA
* Some devices, such as Nexus and Pixel have better camera
  performance with the AOSP application.

Change-Id: I9da12b239764b360219a780d052565916f5c885e
2017-05-08 14:08:11 +00:00
Christopher N. Hesse 7f825775e2 Only warn about SDCLANG exclusion once
Please finally shut up. Thanks.

Change-Id: If288e23d43a984a8397b9316eb9711aa3907f435
2017-04-25 18:43:17 +00:00
Alex Naidis b0a8501cda common: Fix QCOM_BSP condition
We cannot assume CAF devices to set this to false
explicitly.

Change-Id: I9659f4f08f93f115dd21ef8b503db0b7772f40ed
Signed-off-by: Alex Naidis <alex.naidis@linux.com>
2016-11-14 23:02:18 +01:00
Christopher N. Hesse 1f16d47d1e common: Conditionally set QCOM_BSP flag
All devices inheriting common.mk should enable
the BSP features, except if a device explicitly
choses to opt-out by setting TARGET_USES_AOSP := true.

Change-Id: I5bed0724ad9492d3a678740fa204b44caf2cc477
2016-11-13 22:54:47 +01:00
Alex Naidis 7b4bdf1aeb common: condition SDCLANG for non-linux hosts
SDCLANG is not supported on non-linux hosts,
move the blocking logic from build system
to device/qcom/common.

Change-Id: I2a1f69e5b1dde05c873683ca7e6b7425c79df848
Signed-off-by: Alex Naidis <alex.naidis@linux.com>
2016-11-12 22:24:45 +01:00
Alex Naidis 3cdac84a4c
mediaextractor/mediacodec: Adding Qualcomm extensions
Qualcomm added these to thulium (msm8996).
However since the AV stack is shared across
the chipsets it is required for all devices
which inherit device/qcom/common.

This commit squashes the following commits:

mediaextractor: allow pread64 and readlinkat syscalls

Add pread64 and readlinkat syscalls.

Change-Id: Ic466e6d401fea5c9b47a9e3abf388cdae1a90f93
Signed-off-by: Alex Naidis <alex.naidis@linux.com>

mediacodec: allow sendto and recvfrom syscalls

Add sendto and recvfrom syscalls

CRs-Fixed: 1001945
Change-Id: Id4287b742f8c559f4e566a687578abdd100ffe4c
Signed-off-by: Alex Naidis <alex.naidis@linux.com>

mediacodec: allow lseek syscall

Add _lseek syscall to make file operations are successful.

Change-Id: I746bf6a9fd5492a359086f8003a771234337e61d
Signed-off-by: Alex Naidis <alex.naidis@linux.com>
2016-10-29 16:22:40 +02:00
Ícaro Hoff 25861f26d5
common: define SnapdragonCamera package in one line
It's single definition, it will be single for the rest of its life.

Change-Id: I7033bfc9d70304603eef5d5effe327509e8d861a
Signed-off-by: Ícaro Hoff <icarohoff@gmail.com>
2016-10-13 18:49:52 -03:00
Alex Naidis b2c1940140 common: add support for SDCLANG
This commit adds the needed bits for SDCLANG support.

SDCLANG is initialised as false currently,
however the implementation allows to override it from device.

The Path is currenly hardcoded to "prebuilts/clang/host/linux-x86/sdclang-3.8/bin"
since we cannot provide support for darwin currently.

The LTO definitions are added and the variable which
gets picked up by build system automatically is set.

Also a new configuration is introduced: SDCLANG_COMMON_FLAGS
These flags will be picked up for arm and arm64 targets.
We are using -O3 currently since SDCLANG defines the levels
of optimisation differently and O3 is a very safe level to use here.

The new configuration SDCLANG_FORCED is initialised
at false and can be overriden. It can be set
to true in order to force SDCLANG to be used
under the condition that it is requested.
Currently we don't want to do this globally,
however it might be useful for OEM builds.

Change-Id: I4f42be82a8a113fdf6406d9879d5586968030517
Signed-off-by: Alex Naidis <alex.naidis@linux.com>
2016-10-02 01:35:14 +02:00
Alex Naidis 6176b89737 common: move Snapdrgon Camera here
This is getting moved here from vendor/pa
since it is specific to Qualcomm devices.

Change-Id: I3195ad5572da92e6d7984f89f4b619b25e514da1
Signed-off-by: Alex Naidis <alex.naidis@linux.com>
2016-09-25 17:36:48 +02:00
Alex Naidis 93f7049171
common: move tcmiface config to our vendor
This is actually needed for non-qcom devices as well, otherwise
the bootclasspath breaks because numerous components
depend on the tcm extensions right now.

Change-Id: I7ca017c3b573c7b2c9760a71513b149df085f6b8
Signed-off-by: Alex Naidis <alex.naidis@linux.com>
2016-09-22 13:07:04 +02:00
Jake Weinstein 53767be2e6 common: enable BOARD_USES_ADRENO
* Needed for N media HAL

Change-Id: I4299f0ac598ae524f7a644e1cfedf0876532c51f
2016-09-08 16:17:11 -04:00
Jake Weinstein 41fad21faa common: remove JACK disabling flag
* This was commented out, but doesn't work on Nougat anyway

Change-Id: I747c3498b544106741adc4187e59f29747dff102
2016-09-01 16:32:47 -04:00
Jake Weinstein 8d89fcea0c common: combine makefiles
Change-Id: Ia253326c1580eb8e697d2775dec5317a83d56657
2016-09-01 16:32:32 -04:00
Alex Naidis 27b777ed17
common: premilinary preparations for N
* reenable jack, since it is much deeper integrated into the new build system and caf won't disable it this time, most likely

Change-Id: I39876445a8a4774f9b335d4bfc1e578a9b4a0bca
Signed-off-by: Alex Naidis <alex.naidis@linux.com>
2016-08-26 16:57:15 +02:00
Alex Naidis 325f9c2441
common: resolve the madness around DPM
* tcmiface should be present on all devices
* that allows us to remove the global hacks from the http repos and tcmiface itself

Change-Id: I58b8ae79bea12e01fe3dee0769bf3a48847a1c13
Signed-off-by: Alex Naidis <alex.naidis@linux.com>
2016-08-14 16:54:21 +02:00
Alex Naidis 51a68c598e common: add the dash extension
* adds qcmediaplayer to boot jars if dash is unblocked
* This assumes that qcmediaplayer is being used if Dash is unblocked

* Also move Dash blocker from vendor/pa here

Change-Id: Id23ee450b68e1a1c5526cc7c0db9e9f0b23378d6
Signed-off-by: Alex Naidis <alex.naidis@linux.com>
2016-08-05 21:18:44 +02:00
Alex Naidis e9a9f3adf9 common: Implement a method to directly hook into product makefile
* add common.mk which gets included from product makefiles
* move things which don't belong to Boardconfig there

Change-Id: Ie6d3ceccf55578f89f7f18673fa1a78af64abbd0
Signed-off-by: Alex Naidis <alex.naidis@linux.com>
2016-08-05 21:17:07 +02:00
Jake Weinstein 157b56fb51 common: remove stuff that either belongs in device or doesn't belong at all.
* Note: cryptfs_hw was removed so that devices can use their own.

Change-Id: I6f83ceb7b32a0f578ecdd1a9ad0b92211deace6b
2015-10-11 20:20:17 +00:00
Pradosh Das 54d08e1cd9 common.mk: Set ro.adb.secure property on user build
Fix CTS failure(UsbDebuggingTest).The test expects
the property value set to 1 for secure
adb debugging.

Change-Id: I801fc2986975ddb262b8ac133370d54dca45a050
CRs-Fixed: 829570
2015-06-18 19:10:48 +05:30
Paras Nagda a8d5474cea media - use google low end video media codec xml
- CTS testGoogVP8FlexNearMaxMax testcase will execute decoding
  and encoding in parallel with max resolution 2048x2048.

- low end chipsets does not support the above max resolution
  so use low end media codec xml which has max resolution 1280x1280.

Change-Id: Idc153ad182262cccd36711f20caa5143a30c3f32
2015-04-24 11:51:03 +05:30
Sreedhar Lakkaraju 1bab9ade2d common: skip bootjar check if not applicable
adding support to skip boot jar check for
not applicable case to avoid build errors

Change-Id: Ib10635a103f1adb2863344be0f7ed09f6d3eea00
2014-12-15 07:16:39 +05:30