Commit Graph

385 Commits

Author SHA1 Message Date
Alexander Koskovich 72868dd9dc
common: Move TARGET_BOARD_PLATFORM check to common makefile.
* We need the board platform for various makefiles we include
   and for kernel version guards, just require it outright in
   top level.

Change-Id: I1100b2c731e4d5cc8f522641b6ea60e83ec29908
2021-05-02 00:19:52 -07:00
Vishalcj17 c7182b552c
common: Add support for 5.4 platforms.
Change-Id: Ieb8aa2a67b93bc7a7e255cf7df24e12d29860e50
2021-05-02 00:19:51 -07:00
SayanAcharya 0a9fcc6867
common: Include opensource power makefile.
* This ensures required power packages are built and
   SoC specific powerhints are copied.

Change-Id: Ia7f7350dda259a27b1130f8dba7d6a8132a642f2
2021-03-12 07:18:46 -07:00
Alexander Koskovich dd2c114abe
common: Copy public libraries from common repository.
* The QSSI repository likely won't exist for anything
   but CAF ROMs.

Change-Id: I84ef8c7c2b9d20e061ffd46688f208278c7dfdcc
2021-02-17 16:06:42 -07:00
Alexander Koskovich 7c557eddcd
common: Copy public libraries from QSSI.
Change-Id: Ie35872abf829fd1e299b7bb98dc1756574a4c8df
2021-02-17 08:29:36 -07:00
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