common: usb: Build the QTI HAL for v5.4 targets.

Change-Id: Ic1b2741eb00ca8d5f1eeb55280aeb3ebda3a084f
This commit is contained in:
Alexander Koskovich 2021-04-21 08:35:49 -07:00
parent eab4852806
commit a3b0ce6365
No known key found for this signature in database
GPG Key ID: F1107C9A417AC130
1 changed files with 5 additions and 1 deletions

View File

@ -18,7 +18,11 @@ PRODUCT_SOONG_NAMESPACES += \
# Inherit from the USB product definition.
$(call inherit-product, vendor/qcom/opensource/usb/vendor_product.mk)
ifneq ($(TARGET_KERNEL_VERSION), 4.19)
ifeq ($(TARGET_KERNEL_VERSION),5.4)
TARGET_HAS_DIAG_ROUTER := true
endif
ifeq (,$(filter 4.19 5.4, $(TARGET_KERNEL_VERSION)))
PRODUCT_PACKAGES += android.hardware.usb@1.0-service
endif