소스 검색

cupid: Add vendor soong imports to extract

Change-Id: I7b290a9412bd11bb5577ce634a0291ffca40b283
Aaron Kling 1 년 전
부모
커밋
0c63ac0f34
1개의 변경된 파일15개의 추가작업 그리고 0개의 파일을 삭제
  1. 15 0
      setup-makefiles.sh

+ 15 - 0
setup-makefiles.sh

@@ -6,6 +6,21 @@
 # SPDX-License-Identifier: Apache-2.0
 #
 
+function vendor_imports() {
+    cat << EOF >> "$1"
+		"device/xiaomi/sm8450-common",
+		"hardware/qcom-caf/sm8450",
+		"hardware/xiaomi",
+		"vendor/qcom/opensource/commonsys-intf/display",
+EOF
+}
+
+# If we're being sourced by the common script that we called,
+# stop right here. No need to go down the rabbit hole.
+if [ "${BASH_SOURCE[0]}" != "${0}" ]; then
+    return
+fi
+
 set -e
 
 export DEVICE=cupid