Commit Graph

88 Commits

Author SHA1 Message Date
Michael Bestas
e9731bb5dd build: Don't set pathmap for repositories that do not exist
* Camera, gps and sensors are device specific most of the time
  so we do not sync the generic repositories for these projects

Change-Id: Ibb5d0066e362d285a862ea0c0f2a2c824f84f73d
2019-09-27 15:38:21 +03:00
Michael Bestas
0d941af154 build: Don't set pathmap for AOSP qcom hardware repositories
* No longer needed after I9cf83430ffec4fbd224e724513d371ba8785606d

Change-Id: I594266314e1121ac6f13f9ed79774088667090d4
2019-09-25 21:04:48 +03:00
Rashed Abdel-Tawab
84948089b6 build: Move to new qcom HAL directory layout
All CAF forked HALs now reside in hardware/qcom-caf/

Change-Id: I9f84cebf021418c0b402bc3186f37643e63afb24
2019-09-25 21:03:29 +03:00
Michael Bestas
22fe07435b build: Move hardware/qcom/audio back to its original path
* This is a leftover from the early pathmap changes in cm-12.0

Change-Id: Ie1dc738c65cd7ffbf352eb10271b00da0f5ff393
2019-09-25 21:03:05 +03:00
Michael Bestas
156bdadf9c build: Remove ability to set WLAN/BT_VENDOR variant
* These flags have no users since cm-14.1

Change-Id: Ia2b2fd5d95e856fdae3ec23532bc6eceff2910c6
2019-09-25 20:57:26 +03:00
Bruno Martins
9cc0175f16 lineage: Trash the last bits of SDClang support
Change-Id: I9ccb9b931a63342e233578c3ddbc5ea6391af601
2019-09-11 22:08:31 +01:00
Sam Mortimer
a97560956e vendor/lineage: Depend on existing definition of empty
Defined and marked readonly in build/make here:
7ddc50a066/common/core.mk (L46)

Change-Id: Ic233f0d41d03b28beb8d96c68692271d959fa188
2019-09-07 14:44:10 -07:00
Rashed Abdel-Tawab
05aded86f3 qcom: Add UM 4.14 platforms
* Note: msmnile is treated like msmnile because unlike other Qualcomm
  codenames msmnile does not expand to 8150.

Change-Id: If246c0ec06de22097d369c17ce48aa1270bab19c
2019-07-20 08:36:55 +02:00
Isaac Chen
60912cff97 build: Support SDM710 platform
Change-Id: I958a6bfd1087f5437f4074e614198bb622d476ce
Signed-off-by: Isaac Chen <isaacchen@isaacchen.cn>
2019-06-27 20:00:28 +01:00
Ethan Chen
a7b2d0a620 build: Separate platform macros from QCOM platform definition
* The macros used in the file formerly called "qcom_utils.mk" are
  actually generic and not QCOM-specific. Move the QCOM_BOARD definitions
  to a QCOM-specific location, and name the remaning macros something more
  generic.

Change-Id: I6747bc9201e56b456caf251122057d7dbc233f1c
2019-06-26 01:11:42 +02:00
Ethan Chen
66ce59c88e build: Reorganize inclusion of QCOM macros
* There's actually not a whole lot QC-specific about these macros,
  make them available at definition.mk inclusion time rather than
  relying on BoardConfig to include them.
* Don't create a dependency on QCOM macros from a makefile
  that is included very early in the build process.

Change-Id: I3dcaf0e068ca44732cfe58f69384621781ddda67
2019-06-26 01:10:51 +02:00
Ethan Chen
5512b647e0 build: Set mode for makefiles
* These shouldn't be executable.

Change-Id: Idcb4e46f0ac69116b4837cd31f9f2e506b41a3f2
2019-06-25 23:13:21 +02:00
Luca Stefani
48406e8afd Never allow neverallows
Change-Id: Ibf07e9e319d676666e3e7389720c24917e38a9ac
2019-02-16 21:14:14 +01:00
Michael Bestas
e4dc50fa6a lineage: qcom: Set proper CAF data-ipa-cfg-mgr pathmap
Change-Id: Ibaec558bfe945a204968e7f7a3df85dd91d49483
2019-01-03 23:54:09 +02:00
Ethan Chen
da0ae04cd3 lineage: qcom: Set data-ipa-cfg-mgr pathmap
Change-Id: Ifaf6d008425ef38fa8de2aa734cc4b05654995f2
2019-01-03 19:47:35 +01:00
Ethan Chen
7992a6e919 qcom_target: Add wlan-caf to CFI paths
* The default AOSP hardware/qcom/wlan path is listed in
  PRODUCT_CFI_INCLUDE_PATHS since wpa_supplicant is compiled with
  control flow integrity checks. Add the Qualcomm WLAN variant to
  PRODUCT_CFI_INCLUDE_PATHS as well so wpa_supplicant can safely link
  it without exploding.

Change-Id: Id5577846e1e1ea11f8a665d62847c80803e285f7
2018-09-07 10:43:18 +02:00
Rashed Abdel-Tawab
b8ac142535 lineage: Move QC board variables earlier
These variables are usually set in a device's BoardConfig, setting them
in qcom_target is at the very end of the "configuration process" which
results in them being unavailable to plenty of other configuration
"things" (ex. soong namespaces or soong config). Move them to right
after a device's BoardConfig has been found and loaded.

Change-Id: Iddd731202d22ed3f8eb010197ce20d3c75a1f40a
2018-09-03 22:30:59 +01:00
Rashed Abdel-Tawab
ebdb57604c lineage: Ignore neverallows
Change-Id: I35a39ec73c0047f93124f72249a6fa936fe0875a
2018-08-25 14:27:34 -07:00
Bruno Martins
444a366a68 build: Add support for sdm845 platform
Change-Id: Icda63780d7a422303c73f77bd888c1b30bd4bf79
2018-07-09 00:42:54 +02:00
Michael Bestas
307008e754 lineage: qcom: Set thermal & vr HAL pathmaps
Change-Id: I1f9e5060764fe8e4e0f58c0ded1f6bf1b28c0567
2018-06-12 19:01:16 +02:00
Michael Bestas
132c6018fb lineage: qcom: Enable TARGET_USES_COLOR_METADATA for msm8937 & msm8953
* This is set in qcom device trees for all UM platforms

Change-Id: I6feb714e725e7cd81a4428d16a89954b796fac70
2018-06-03 00:03:42 +02:00
Ethan Chen
70c217a5b8 build: Clean up makefile inclusions
* Include MTK/QCOM rules directly from the build/core/config.mk hook.
* Place main.mk hook and main_version.mk into build/core with the rest
  of the make system hooks.

Change-Id: Iad2f808f3e3eefbd2be2ca5facb907ff31babbb7
2018-05-30 21:50:44 +02:00
Ethan Chen
6554f104b5 build: Use TOPDIR, not TOP
Change-Id: I5b2677c22aa878e46e01f4e5b31769e21937c38a
2018-05-28 18:47:48 +02:00
Bruno Martins
8c8d7ef238 clear_vars: Remove Maven leftovers
Change-Id: I2a94d0868334bb4e76398b1b435e67cd8a47e633
2018-05-24 18:20:06 +02:00
Ethan Chen
36ba142248 build: Remove HTTP_PREBUILT
* It appears the only user of this was Gello, which is no longer using
  it.
* Remove this deprecated directive

Change-Id: I6ab869c2f2c3b891b58b9a750e7ce882f169f296
2018-05-22 23:42:08 -07:00
Ethan Chen
e00f7c4fe9 build: Remove maven make rules
* These were leftovers from cyngn days

Change-Id: I11b17e7c8bbba9cf5ca2ccad304654180423f6ad
2018-05-23 00:19:26 +02:00
Paul Keith
35b22a327f lineage: qcom: Enable media extensions for all QC devices
* This is now needed for the latest legacy HAL1 hacks, which were
  previously the only devices not using media extensions.
* Enable it for all QC devices to avoid running into
  issues with devices not having this enabled in the future.

Change-Id: I484840e712f7da6d0064a5f8016e8061b9cba838
2018-04-26 05:18:32 +02:00
Anshuman Dani
b72f8c924e Always use my_installed_module_stem instead of my_built_module_stem
This will prevent link errors in case my_installed_module_stem is different
from my_built_module_stem.

Change-Id: Ic72571637ea404c92128b9cd5a28e82a36bc0033
2018-03-27 17:09:52 +00:00
Pengxuan Zheng
7f5d4e1050 Add support for using the secondary SDLLVM toolchain
If LOCAL_SDCLANG_2 is set to true, the secondary SDLLVM toolchain
(SDCLANG_PATH_2) will be used instead.

Change-Id: Icb7492562aeaa3c584edcbced8fe1e98776774bd
2018-03-27 17:09:52 +00:00
Mandeep Singh Grang
dc8df22add Rules to enable LTO for Adreno GFX driver.
This patch controls rules when LTO is enabled for Adreno GFX driver.

Change-Id: I45bd163889ffd3e0237d5451adaca0fc411b14f8
2018-03-27 17:09:52 +00:00
Ethan Chen
3a0f2fb0e0 qcom_target: Move RIL path mapping to core/config.mk
* hardware/ril is a required project for any build.
  Move the path mapping logic to core/config.mk so
  any build has access to the correct default mapping.

Change-Id: Ia52919d7877ddc91f8a4a988fd0858d14837fc4c
2018-03-07 00:23:23 +00:00
Ethan Chen
87b787abd9 pathmap: remove duplicate include-path-for
* include-path-for is already part of build/core/pathmap.mk

Change-Id: I3133265559b4d4b5cc6c32b49f430422e55b34ac
2018-03-06 16:51:07 +00:00
Joey
546c9a1ec5 lineage: add BUILD_RRO_SYSTEM_PACKAGE target
Allows to ship rro packages in system instead of vendor

Change-Id: I8822ca477e80297dce477de2d87bd3e74d4cbfb0
Signed-off-by: Joey <joey@lineageos.org>
2018-02-05 21:13:24 +01:00
Arne Coucheron
73296f14dc soong_config: Add TARGET_USES_QCOM_BSP_LEGACY
Change-Id: Ia5ddfa263df71388b19c77d2509c29791177208d
2018-01-04 20:42:38 +00:00
Rashed Abdel-Tawab
064b06967f build: Merge UM platforms into common HALs and disable BSP
While UM platform HALs are interchangable and very much interoperable
between platforms and kernels, some have qualms about commonizing
platforms that Qualcomm hasn't fully commonized themselves yet. Therefore
introduce 2 seperate UM platforms, UM3.18 and UM4.4 (corresponding to
the kernel version used for that "version" of UM) and use msm8996 for
UM3.18 and msm8998 for UM4.4 (sdm845 will probably be UM4.9).

Also disable TARGET_USES_QCOM_BSP on the UM platforms to match Qualcomm
trees as it causes WiFi display not to work and calls for missing headers
and struct elements at build time.

Change-Id: Ia574231243b7d628d35959b474dd28bd37ac4031
2018-01-04 01:14:38 +00:00
Michael Bestas
480e2ee431 qcom_target: Commonize UM target HALs
* Use msm8996 HAL for 8953 & 8937 since they share the exact same
  git history sha1 in all 7.0+ released tags.

Change-Id: I764a9a092b6d530de8a9b9e6e54f41c0b5d8a593
2018-01-04 01:14:38 +00:00
Rashed Abdel-Tawab
0d07fa5af5 lineage: qcom: Set power HAL pathmap
Change-Id: I063821f8405cafc57b37a61d119a9b8b7ef9df4a
2017-12-31 02:29:26 +00:00
Dan Pasanen
9fc50bbf73 qcom_utils: allow overriding get-vendor-board-platforms
* Some devices need this function to return something, yet also do not
  set BOARD_USES_QCOM_HARDWARE. Allow them to override this.

Change-Id: I3cf78da39b006ba805ae35fde7379357faa10250
(cherry picked from commit 012cc275e09346ef7909b6a5a144aed59b375ccd)
2017-12-26 00:36:18 +00:00
Sam Mortimer
19ce2d3ad2 vendor/lineage: sdk rebrand: step 2: update file contents
Change-Id: Ib61b9b559c4b0e536979e5cb25fba50aa56c138d
2017-10-12 22:33:59 +00:00
Adrian DC
154df245a5 build: Remove breaking global flags
Change-Id: I9bbc75ce4701dc70c17b1d80c40e8b98e961dd2a
2017-08-25 07:57:31 -05:00
Luca Stefani
52b7080796 vendor: Add project pathmap defs
Change-Id: I5357eadcf6efe6ddbd6686ed69db0d59114e0a5d
2017-08-25 07:53:02 -05:00
Luca Stefani
5c60e4fd24 lineage: Complete the rebrand
* TODO: Rebrand cmsdk when it's in a working state

Change-Id: I0d8d573f9e0032110ae3a0f54ebe11a877b83137
2017-08-23 17:33:22 +03:00
Dan Pasanen
91f7620c4d vendor: change vendor to lineage
Change-Id: I2df13091f5d62b552ef434aef1a389f4fe1249e0
2017-08-23 03:26:28 +03:00
dianlujitao
3bc9c18e11 build: qcom_target: Add sdm660
Change-Id: I90a44e040280bd43c40b06e14f658a5cf7e30297
2017-08-17 16:55:48 +00:00
Rashed Abdel-Tawab
deed26fd06 qcom: Allow setting custom audio, display, and media HALs
Currently, using project-set-path is blocking us from overriding the pathmap
for the audio, display, and media HALs, so set them with set-device-specific-path
to allow overriding the HALs with USE_DEVICE_SPECIFIC_* and DEVICE_SPECIFIC_*_PATH

Change-Id: Iee3723cf251d0f485a77a17fd61cb62178833582
2017-08-01 02:23:17 -04:00
Luca Stefani
c835d38e3e qcom: Enable TARGET_USES_QCOM_MM_AUDIO
Change-Id: Iff693650db4b9423bc4bb16c12f592c2a74248af
2017-07-11 19:42:50 +00:00
Michael Bestas
736c6fe6ad qcom_utils: Cleanup supported QCOM_BOARD_PLATFORMS
* Organize per family
* Remove unsupported mpq8092 and msm_bronze
* Add msm8998

Change-Id: I662a8e403045affa2a9b40511414ac6e8057f967
2017-06-29 20:31:22 +00:00
Michael Bestas
e65a25087f build: qcom_target: Define MASTER_SIDE_CP_TARGET_LIST
Currently, in the display HAL, we're replacing the usage
of this variable with a check for TARGET_BOARD_PLATFORM.

Instead of having to do that every time a new branch is made,
define the variable in qcom_target.

Change-Id: Iddcc38c70adc52267e70c985b7a0ad3d8c4c8929
2017-06-29 20:31:22 +00:00
Rashed Abdel-Tawab
cf65ecf8e6 qcom: Automatically set TARGET_USES_COLOR_METADATA for msm8996/8
Change-Id: I47d71f6f9f5f5c656b89b0ae9f4ec6ec2ff30915
2017-03-07 19:51:36 -05:00
David Marble
20c06fd75e http_prebuilt: Improve retrieval of artifacts from archive
The current version always redownloads the artifact.
Kali does not like the nested md5sum command and ignores it
leaving file checksum value blank so the test always fails.
A temporary variable is used to get around this limitation
of kali.

The echo "Downloading..." command has been modified to actually
print and has been moved so it only does so when downloading
the artifact.

Change-Id: I115860a87e55399a652d6548fe50f6204337f854
2017-01-12 00:50:44 -06:00