aboutsummaryrefslogtreecommitdiff
path: root/shim/sl/scripts/clone_aosp_libs.sh
diff options
context:
space:
mode:
Diffstat (limited to 'shim/sl/scripts/clone_aosp_libs.sh')
-rwxr-xr-xshim/sl/scripts/clone_aosp_libs.sh42
1 files changed, 42 insertions, 0 deletions
diff --git a/shim/sl/scripts/clone_aosp_libs.sh b/shim/sl/scripts/clone_aosp_libs.sh
new file mode 100755
index 0000000000..a33e341f9f
--- /dev/null
+++ b/shim/sl/scripts/clone_aosp_libs.sh
@@ -0,0 +1,42 @@
+#!/usr/bin/env bash
+
+SCRIPT_PATH=$(dirname "$0")
+AOSP_DIR="${SCRIPT_PATH}/../aosp/"
+
+# NNAPI SUPPORT
+git clone https://android.googlesource.com/platform/packages/modules/NeuralNetworks/ "${AOSP_DIR}/packages/modules/NeuralNetworks"
+pushd "${AOSP_DIR}/packages/modules/NeuralNetworks"
+git checkout remotes/origin/android12-s1-release
+popd
+
+git clone https://android.googlesource.com/platform/system/core "${AOSP_DIR}/system/core/"
+pushd "${AOSP_DIR}/system/core/"
+git checkout remotes/origin/android12-s1-release
+popd
+
+git clone https://android.googlesource.com/platform/system/libbase "${AOSP_DIR}/system/libbase"
+pushd "${AOSP_DIR}/system/libbase"
+git checkout remotes/origin/android12-s1-release
+popd
+
+git clone https://android.googlesource.com/platform/system/libfmq "${AOSP_DIR}/system/libfmq"
+pushd "${AOSP_DIR}/system/libfmq"
+git checkout remotes/origin/android12-s1-release
+popd
+
+git clone https://android.googlesource.com/platform/frameworks/native "${AOSP_DIR}/frameworks/native"
+pushd "${AOSP_DIR}/frameworks/native"
+git checkout remotes/origin/android12-s1-release
+popd
+
+git clone https://android.googlesource.com/platform/system/logging "${AOSP_DIR}/system/logging"
+pushd "${AOSP_DIR}/system/logging"
+git checkout remotes/origin/android12-s1-release
+popd
+
+git clone https://android.googlesource.com/platform/external/boringssl "${AOSP_DIR}/external/boringssl"
+pushd "${AOSP_DIR}/external/boringssl"
+git checkout remotes/origin/android12-s1-release
+popd
+
+git clone https://android.googlesource.com/platform/prebuilts/vndk/v29 "${AOSP_DIR}/prebuilts/vndk/v29"