File tree Expand file tree Collapse file tree 1 file changed +25
-14
lines changed
Expand file tree Collapse file tree 1 file changed +25
-14
lines changed Original file line number Diff line number Diff line change 11#! /bin/bash
22
3- OUT=output/opt/llvm-obfuscator/sysroot
3+ stage_sysroot () {
44
5- rm -rf " $OUT "
6- mkdir -p " $OUT "
5+ OUT=output/opt/llvm-obfuscator/sysroot
76
8- SYSROOT_DIRS=(
9- " /usr/arm-linux-gnueabihf/include"
10- " /usr/arm-linux-gnueabi/libhf"
11- " /usr/arm-linux-gnueabihf/include/c++/4.8.5"
12- " /usr/lib/gcc-cross/arm-linux-gnueabihf/4.8"
13- " /usr/arm-linux-gnueabihf/include/c++/4.8.5/arm-linux-gnueabihf"
14- )
7+ rm -rf " $OUT "
8+ mkdir -p " $OUT "
159
16- for SYSROOT_DIR in ${SYSROOT_DIRS[@]} ; do
17- mkdir -p " ${OUT} /${SYSROOT_DIR} "
18- rsync -azv " ${SYSROOT_DIR} /" " ${OUT} /${SYSROOT_DIR} /"
19- done
10+ SYSROOT_DIRS=(
11+ " /usr/arm-linux-gnueabihf/include"
12+ " /usr/arm-linux-gnueabi/libhf"
13+ " /usr/arm-linux-gnueabihf/include/c++/4.8.5"
14+ " /usr/lib/gcc-cross/arm-linux-gnueabihf/4.8"
15+ " /usr/arm-linux-gnueabihf/include/c++/4.8.5/arm-linux-gnueabihf"
16+ )
17+
18+ for SYSROOT_DIR in ${SYSROOT_DIRS[@]} ; do
19+ mkdir -p " ${OUT} /${SYSROOT_DIR} "
20+ rsync -azv " ${SYSROOT_DIR} /" " ${OUT} /${SYSROOT_DIR} /"
21+ done
22+ }
23+
24+ docker run -i -t --rm \
25+ -v $PWD /example:/work/example \
26+ -v $PWD /build:/work/build \
27+ -v $PWD /output/opt:/opt \
28+ -v $PWD :/this_dir \
29+ arm-llvm-obf:base \
30+ /bin/bash -c " . /this_dir/stage_sysroot.bash; stage_sysroot"
You can’t perform that action at this time.
0 commit comments