zenfone9: Build Usb and usb gadget from source
Change-Id: Ib6f6bb4d562587ef75ff85884346b0de72dceb1f
diff --git a/device.mk b/device.mk
index 246697a..bc1df79 100755
--- a/device.mk
+++ b/device.mk
@@ -28,6 +28,7 @@
$(call inherit-product, $(SRC_TARGET_DIR)/product/updatable_apex.mk)
# Prebuilt Kernel Binary
+TARGET_KERNEL_VERSION := 5.10
TARGET_KERNEL_DIR ?= device/asus/zenfone9-kernel
LOCAL_KERNEL := $(TARGET_KERNEL_DIR)/Image
PRODUCT_COPY_FILES += \
@@ -302,6 +303,10 @@
PRODUCT_PACKAGES_DEBUG += \
update_engine_client
+# USB
+TARGET_HAS_DIAG_ROUTER := true
+$(call inherit-product, vendor/qcom/opensource/usb/vendor_product.mk)
+
# Vendor service manager
PRODUCT_PACKAGES += \
vndservicemanager
diff --git a/omni.dependencies b/omni.dependencies
index d94c169..51a727d 100644
--- a/omni.dependencies
+++ b/omni.dependencies
@@ -78,5 +78,11 @@
"repository": "platform/vendor/qcom-opensource/healthd-ext",
"target_path": "vendor/qcom/opensource/healthd-ext",
"revision": "88372eed97e98bf8b269cdb882293303ca894f96"
+ },
+ {
+ "remote": "gitlab",
+ "repository": "android_vendor_qcom_opensource_usb",
+ "target_path": "vendor/qcom/opensource/usb",
+ "revision": "android-13.0"
}
]