gllvm/examples/linux-kernel/build_linux_wllvm.sh
2018-04-30 09:58:19 -07:00

18 lines
333 B
Bash
Executable File

#!/usr/bin/env bash
sudo pip install wllvm
mkdir ${HOME}/linux_kernel
cd ${HOME}/linux_kernel
git clone git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable.git
cd linux-stable
git checkout tags/v4.14.34
cp /vagrant/tinyconfig64 .config
make CC=wllvm HOSTCC=wllvm
extract-bc -m -b built-in.o
extract-bc -m vmlinux