blob: 370126ada23ed994db6c5cee8c899b420080d285 [file] [log] [blame]
Sadik Armagan8f397a12022-06-17 15:38:22 +01001#!/usr/bin/env bash
2
3#
4# Copyright © 2022 ARM Ltd and Contributors. All rights reserved.
5# SPDX-License-Identifier: MIT
6#
7
8AOSP_WORKING_DIR=$1
9
10if [ "$#" -ne 1 ]; then
11 echo "Usage: This script must be passed a single parameter which is a path "
12 echo " to an existing directory where the AOSP repo's will be cloned into."
13 echo "Error: No working directory path parameter provided."
14 exit 1
15fi
16if [ ! -d "$1" ]; then
17 echo "Usage: This script must be passed a single parameter which is a path "
18 echo " to an existing directory where the AOSP repo's will be cloned into."
19 echo "Error: Working directory path provided is not a directory."
20 exit 1
21fi
22
23echo "AOSP_WORKING_DIR = $AOSP_WORKING_DIR"
24
25# NNAPI SUPPORT (SHA's for each repo taken from master branch 25/03/22)
26git clone https://android.googlesource.com/platform/packages/modules/NeuralNetworks/ "${AOSP_WORKING_DIR}/packages/modules/NeuralNetworks"
27pushd "${AOSP_WORKING_DIR}/packages/modules/NeuralNetworks"
28git checkout 9c2360318a35756addcd5d321a85f9270e0a04da
29popd
30
31git clone https://android.googlesource.com/platform/system/core "${AOSP_WORKING_DIR}/system/core/"
32pushd "${AOSP_WORKING_DIR}/system/core/"
33git checkout c408ee943a1d9c486e4fac10bee7f76a61c75bab
34popd
35
36git clone https://android.googlesource.com/platform/system/libbase "${AOSP_WORKING_DIR}/system/libbase"
37pushd "${AOSP_WORKING_DIR}/system/libbase"
38git checkout 2d235ac982044ea4985c39a834e2d85c6a8bca8f
39popd
40
41git clone https://android.googlesource.com/platform/system/libfmq "${AOSP_WORKING_DIR}/system/libfmq"
42pushd "${AOSP_WORKING_DIR}/system/libfmq"
43git checkout 331b20e54ddde93785d7688ebb0cdc1cbcf9fd9b
44popd
45
46git clone https://android.googlesource.com/platform/frameworks/native "${AOSP_WORKING_DIR}/frameworks/native"
47pushd "${AOSP_WORKING_DIR}/frameworks/native"
48git checkout fea6523ac18c9d4d40db04c996e833f60ff88489
49popd
50
51git clone https://android.googlesource.com/platform/system/logging "${AOSP_WORKING_DIR}/system/logging"
52pushd "${AOSP_WORKING_DIR}/system/logging"
53git checkout e1a669e529cf5a42cd8b331ca89634bb9dce5cae
54popd
55
56git clone https://android.googlesource.com/platform/external/boringssl "${AOSP_WORKING_DIR}/external/boringssl"
57pushd "${AOSP_WORKING_DIR}/external/boringssl"
58git checkout ebeca38b4ecbe81fdf1d127ef7abb4689722308c
59popd
60
61git clone https://android.googlesource.com/platform/external/tensorflow "${AOSP_WORKING_DIR}/external/tensorflow"
62pushd "${AOSP_WORKING_DIR}/external/tensorflow"
63git checkout a6772d90a9b542ceb50f35f67e1cebf322d8b0d0
64popd
65
66git clone https://android.googlesource.com/platform/external/eigen "${AOSP_WORKING_DIR}/external/eigen"
67pushd "${AOSP_WORKING_DIR}/external/eigen"
68git checkout 10f298fc4175c1b8537c674f654a070c871960e5
69popd
70
71git clone https://android.googlesource.com/platform/external/ruy "${AOSP_WORKING_DIR}/external/ruy"
72pushd "${AOSP_WORKING_DIR}/external/ruy"
73git checkout 4377b97cf0850e0a61caa191586ebe68ccbc2abf
74popd
75
76git clone https://android.googlesource.com/platform/external/gemmlowp "${AOSP_WORKING_DIR}/external/gemmlowp"
77pushd "${AOSP_WORKING_DIR}/external/gemmlowp"
78git checkout 689c69e88b91e7bff068e33396f74c0a5b17390e
79popd
80
81git clone https://android.googlesource.com/platform/prebuilts/vndk/v29 "${AOSP_WORKING_DIR}/prebuilts/vndk/v29"
82pushd "${AOSP_WORKING_DIR}/prebuilts/vndk/v29"
83git checkout 5a73511dd91512681df643ce604d36763cd81b0e
84popd