forked from quic/toolchain_for_hexagon
-
Notifications
You must be signed in to change notification settings - Fork 0
/
get-src-tarballs.sh
executable file
·48 lines (40 loc) · 1.09 KB
/
get-src-tarballs.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
#!/bin/bash
# Copyright (c) 2022, Qualcomm Innovation Center, Inc. All rights reserved.
# SPDX-License-Identifier: BSD-3-Clause
set -euo pipefail
get_src_tarballs() {
cd ${SRC_DIR}
mkdir -p ${MANIFEST_DIR}
wget --quiet ${LLVM_SRC_URL} -O llvm-project.tar.xz
mkdir llvm-project
cd llvm-project
tar xf ../llvm-project.tar.xz --strip-components=1
rm ../llvm-project.tar.xz
echo ${LLVM_SRC_URL} > ${MANIFEST_DIR}/llvm-project.txt
cd -
wget --quiet ${QEMU_SRC_URL} -O qemu.tar.xz
mkdir qemu
cd qemu
tar xf ../qemu.tar.xz --strip-components=1
patch -p1 < ../test-suite-patches/0002-remove-unused-variable.patch
rm ../qemu.tar.xz
echo ${QEMU_SRC_URL} > ${MANIFEST_DIR}/qemu.txt
cd -
wget --quiet ${MUSL_SRC_URL} -O musl.tar.xz
mkdir musl
cd musl
tar xf ../musl.tar.xz --strip-components=1
rm ../musl.tar.xz
echo ${MUSL_SRC_URL} > ${MANIFEST_DIR}/musl.txt
cd -
wget --quiet ${LINUX_SRC_URL} -O linux.tar.xz
mkdir linux
cd linux
tar xf ../linux.tar.xz --strip-components=1
echo ${LINUX_SRC_URL} > ${MANIFEST_DIR}/linux.txt
cd -
}
SRC_DIR=${1}
MANIFEST_DIR=${2}
set -x
get_src_tarballs