From c2034752143a34970f42a6e75bea0fa46970e8a8 Mon Sep 17 00:00:00 2001 From: johnmart19 Date: Mon, 7 Oct 2024 21:50:20 +0300 Subject: [PATCH] MiuiCamera: Add vendor soong imports to extract Inspired from sm8250-common: Add vendor soong imports to extract [https://github.com/LineageOS/android_device_xiaomi_sm8250-common/commit/c8096b98e8fa8db7101f61f9ec5814e8a455e703] - Also includes Alioth and sm8250-common repos Co-authored-by: Aaron Kling --- Android.bp | 10 ++++++++++ setup-makefiles.sh | 15 +++++++++++++++ 2 files changed, 25 insertions(+) diff --git a/Android.bp b/Android.bp index 4d1bebe..46c80a2 100644 --- a/Android.bp +++ b/Android.bp @@ -4,6 +4,16 @@ soong_namespace { imports: [ + "vendor/xiaomi/alioth", + "vendor/xiaomi/sm8250-common", + "hardware/qcom-caf/common/libqti-perfd-client", + "hardware/qcom-caf/sm8250", + "hardware/qcom-caf/wlan", + "hardware/xiaomi", + "vendor/qcom/opensource/commonsys/display", + "vendor/qcom/opensource/commonsys-intf/display", + "vendor/qcom/opensource/dataservices", + "vendor/qcom/opensource/display", ], } diff --git a/setup-makefiles.sh b/setup-makefiles.sh index 292a719..b10f168 100755 --- a/setup-makefiles.sh +++ b/setup-makefiles.sh @@ -27,6 +27,21 @@ if [ ! -f "${HELPER}" ]; then fi source "${HELPER}" +function vendor_imports() { + cat <>"$1" + "device/xiaomi/alioth", + "device/xiaomi/sm8250-common", + "hardware/qcom-caf/common/libqti-perfd-client", + "hardware/qcom-caf/sm8250", + "hardware/qcom-caf/wlan", + "hardware/xiaomi", + "vendor/qcom/opensource/commonsys/display", + "vendor/qcom/opensource/commonsys-intf/display", + "vendor/qcom/opensource/dataservices", + "vendor/qcom/opensource/display", +EOF +} + # Initialize the helper setup_vendor "${DEVICE}" "${VENDOR}" "${ANDROID_ROOT}" true