Commit Graph

380 Commits

Author SHA1 Message Date
Alexander Koskovich 71d90ab284
common: Split common into component specific makefile.
Change-Id: I1b705598d88556f62076fb2f4f2d4f69a8f5dbd5
2020-12-02 12:39:12 -07:00
Alexander Koskovich e3e653fcc2
common: Move SECCOMP extensions to QCOM common.
Change-Id: I9a836f242b4621480db75cb07636e40720052e54
2020-12-02 12:15:04 -07:00
Alexander Koskovich 094a29a014
common: Introduce a vibrator component.
Change-Id: Id37e2af91552fa656b6da5a11c108f1cf027fd88
2020-11-25 09:31:17 -07:00
Alexander Koskovich 282c4a777c common: Add families for kernel versions.
* Wanted by some component checks, inspired by the way
   LOS handles families.

Change-Id: I63f0367ee7d6a1372c5d392bddbd3ec1153680a1
2020-11-22 06:35:32 +00:00
Alexander Koskovich e4ed545b95 common: Create a QTI USB component.
* Add in a script of our own to set product ID since
   QCOM's default is SOC based, e.g. KONA-MTP _SN:XXXXXXXX.

Change-Id: Ieede136b5dd8903dcfe2f41f59d5278df7b02ee6
2020-11-22 06:35:32 +00:00
Alexander Koskovich 40a5ab01d7 common: Create a NQ NFC component.
Change-Id: I6ebab18848b20d3c1848c0612b2196a1968b638b
2020-11-22 06:35:32 +00:00
Alexander Koskovich 45e7972be9 common: Create a WLAN component.
* Only pick up product makefile if it exists, some
   vendorless devices may be opting into all components.

 * Move BoardConfigWlan flags here as CAF's tries to
   include kernel modules that don't exist and this
   is a better solution than touching all of their
   BoardConfigs.

Change-Id: I16d49283f754e2c3dd1743ca85f3e625e8496e8f
2020-11-22 06:35:32 +00:00
Alexander Koskovich 513b7568d3 common: Create a media component.
* Only pick up product makefile if it exists, some
   vendorless devices may be opting into all components.

Change-Id: I3b564a20637c8a1ca4b4e54d829201d0d51f2561
2020-11-22 06:35:32 +00:00
Alexander Koskovich 83d6017f95 common: Import QCOM board utilities from LA.UM.9.12.r1-09000-SMxx50.0.
Change-Id: I77eee7bc8892d836e14564d99b13250b426ead35
2020-11-22 06:35:32 +00:00
Jake Weinstein 95213832a0 common: remove reference to 1.0 Power HAL
Change-Id: I52126b84cb1d05aa6f76127bcf401c266f5e9c72
2020-11-08 06:32:48 +01:00
Alexander Koskovich 18b2d98d71
common: Add an option to pick up all of the QTI components.
Change-Id: I7325dcdd89e28c0df077e1df997cedd108e3ea12
2020-10-20 12:51:21 -07:00
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