forked from IntelLabs/kafl.targets
-
Notifications
You must be signed in to change notification settings - Fork 0
/
compile.sh
39 lines (33 loc) · 929 Bytes
/
compile.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
#
# This file is part of Redqueen.
#
# Copyright 2019 Sergej Schumilo, Cornelius Aschermann
#
# SPDX-License-Identifier: MIT
#
# Build dependencies for Linux kernel/user targets
sudo dpkg --add-architecture i386
sudo apt-get update
sudo apt-get install -y gcc gcc-multilib g++-multilib libc6-dev:i386
sudo apt-get install -y busybox-static
echo "Build samples for Linux kernel targets..."
echo "-----------------------------------------"
cd linux_x86_64
bash compile.sh
cd ../
echo "Build samples for Linux userspace targets..."
echo "--------------------------------------------"
cd linux_x86_64-userspace
bash compile.sh
cd ../
echo "Build samples MacOS kernel targets..."
echo "-------------------------------------"
cd macOS_x86_64
bash compile.sh
cd ../
echo "Build samples for Windows kernel targets..."
echo "-------------------------------------------"
cd windows_x86_64
bash compile.sh
cd ../
echo -e "\n[!] done"