mirror of
https://github.com/cirosantilli/linux-kernel-module-cheat.git
synced 2026-01-23 10:15:57 +01:00
Buildroot QEMU works. Nuff said.
This commit is contained in:
10
run
10
run
@@ -1,10 +1,8 @@
|
||||
#!/usr/bin/env bash
|
||||
set -e
|
||||
cd buildroot
|
||||
make BR2_EXTERNAL="$(pwd)/.." qemu_x86_64_defconfig
|
||||
echo '
|
||||
BR2_TOOLCHAIN_EXTERNAL=y
|
||||
BR2_PACKAGE_KERNEL_MODULE=y
|
||||
' >> .config
|
||||
make BR2_JLEVEL="$(($(nproc) - 2))"
|
||||
make BR2_EXTERNAL="$(pwd)/../kernel_module" qemu_x86_64_defconfig
|
||||
echo 'BR2_PACKAGE_KERNEL_MODULE=y' >> .config
|
||||
# kernel_module-reconfigure rebuilds the modules if they were modified.
|
||||
env -u LD_LIBRARY_PATH make BR2_JLEVEL="$(($(nproc) - 2))" kernel_module-reconfigure all
|
||||
qemu-system-x86_64 -M pc -kernel output/images/bzImage -drive file=output/images/rootfs.ext2,if=virtio,format=raw -append root=/dev/vda -net nic,model=virtio -net user
|
||||
|
||||
Reference in New Issue
Block a user