Building from tarballs seems more reliable and easier.

This commit is contained in:
Ian A. Mason 2018-05-07 09:29:31 -07:00
parent 6a7f027e99
commit 1184fe0a56
4 changed files with 33 additions and 5 deletions

View File

@ -1,10 +1,8 @@
#!/usr/bin/env bash
mkdir -p ${GOPATH}
go get github.com/SRI-CSL/gllvm/cmd/...
mkdir ${HOME}/linux_kernel
cd ${HOME}/linux_kernel
cd ${HOME}
git clone git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable.git
cd linux-stable

View File

@ -0,0 +1,15 @@
#!/usr/bin/env bash
go get github.com/SRI-CSL/gllvm/cmd/...
cd ${HOME}
wget https://cdn.kernel.org/pub/linux/kernel/v4.x/linux-4.14.39.tar.xz
tar xvf linux-4.14.39.tar.xz
cd linux-4.14.39
cp /vagrant/tinyconfig64 .config
make CC=gclang HOSTCC=gclang
get-bc -m -b built-in.o
get-bc -m vmlinux

View File

@ -2,8 +2,7 @@
sudo pip install wllvm
mkdir ${HOME}/linux_kernel
cd ${HOME}/linux_kernel
cd ${HOME}
git clone git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable.git
cd linux-stable

View File

@ -0,0 +1,16 @@
#!/usr/bin/env bash
sudo pip install wllvm
cd ${HOME}
wget https://cdn.kernel.org/pub/linux/kernel/v4.x/linux-4.14.39.tar.xz
tar xvf linux-4.14.39.tar.xz
cd linux-4.14.39
cp /vagrant/tinyconfig64 .config
make CC=wllvm HOSTCC=wllvm
extract-bc -m -b built-in.o
extract-bc -m vmlinux