mirror of
https://github.com/danog/gllvm.git
synced 2024-11-30 06:39:06 +01:00
Building from tarballs seems more reliable and easier.
This commit is contained in:
parent
6a7f027e99
commit
1184fe0a56
@ -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
|
15
examples/linux-kernel/build_linux_gllvm_tarball.sh
Normal file
15
examples/linux-kernel/build_linux_gllvm_tarball.sh
Normal 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
|
@ -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
|
16
examples/linux-kernel/build_linux_wllvm_tarball.sh
Normal file
16
examples/linux-kernel/build_linux_wllvm_tarball.sh
Normal 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
|
Loading…
Reference in New Issue
Block a user