-
Notifications
You must be signed in to change notification settings - Fork 8
Expand file tree
/
Copy pathstudent-pull-dir.sh
More file actions
executable file
·33 lines (26 loc) · 906 Bytes
/
student-pull-dir.sh
File metadata and controls
executable file
·33 lines (26 loc) · 906 Bytes
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
# to be executed directly under the student home dir
ROOT=~/optee-qemuv8
if [ -d ${ROOT} ]; then
echo "${ROOT} already exists. rename or remove it, and retry"
exit 1
fi
mkdir -p ${ROOT}
cd ${ROOT}
PREBUILT_ROOT=/cs4414-shared/optee-qemuv8
#ln -sf ${PREBUILT_ROOT}/build
#ln -sf ${PREBUILT_ROOT}/buildroot
ln -sf ${PREBUILT_ROOT}/edk2
ln -sf ${PREBUILT_ROOT}/edk2-platforms
ln -sf ${PREBUILT_ROOT}/env.sh
ln -sf ${PREBUILT_ROOT}/linux
ln -sf ${PREBUILT_ROOT}/mbedtls
ln -sf ${PREBUILT_ROOT}/qemu
ln -sf ${PREBUILT_ROOT}/soc_term
ln -sf ${PREBUILT_ROOT}/toolchains
ln -sf ${PREBUILT_ROOT}/trusted-firmware-a
# copy over
cp -ax ${PREBUILT_ROOT}/build .
cp -ax ${PREBUILT_ROOT}/buildroot .
cp -ax ${PREBUILT_ROOT}/optee_* .
# out/bin containing all firmware symlinks, it also has a symlink for rootfs.cpio.gz which shall be overwritten by student command
cp -ax ${PREBUILT_ROOT}/out .