gllvm/examples/linux-kernel/install-kernel.sh

12 lines
352 B
Bash
Raw Normal View History

2018-05-23 02:16:53 +02:00
#!/usr/bin/env bash
### Copy vmlinux into the bootable linux folder and install the new kernel
cp $HOME/standalone-build/vmlinux $HOME/linux-stable/
2018-05-23 02:16:53 +02:00
cd $HOME/linux-stable
2018-05-23 02:16:53 +02:00
scripts/sortextable vmlinux
2018-05-23 02:16:53 +02:00
nm -n vmlinux | grep -v '\( [aNUw] \)\|\(__crc_\)\|\( \$[adt]\)\|\( .L\)' > System.map
make CC=gclang HOSTCC=gclang
2018-05-23 02:20:00 +02:00
sudo make modules_install install