mirror of
https://github.com/cirosantilli/linux-kernel-module-cheat.git
synced 2026-01-23 02:05:57 +01:00
Buildroot config fragment to separate file
This commit is contained in:
4
buildroot_config_fragment
Normal file
4
buildroot_config_fragment
Normal file
@@ -0,0 +1,4 @@
|
|||||||
|
BR2_LINUX_KERNEL_CONFIG_FRAGMENT_FILES="../kernel_config_fragment"
|
||||||
|
BR2_PACKAGE_BUSYBOX_CONFIG_FRAGMENT_FILES="../busybox_config_fragment"
|
||||||
|
BR2_PACKAGE_KERNEL_MODULE=y
|
||||||
|
BR2_ROOTFS_OVERLAY="../rootfs_overlay"
|
||||||
7
run
7
run
@@ -21,12 +21,7 @@ fi
|
|||||||
# Work.
|
# Work.
|
||||||
cd buildroot
|
cd buildroot
|
||||||
make BR2_EXTERNAL="$(pwd)/../kernel_module" qemu_x86_64_defconfig
|
make BR2_EXTERNAL="$(pwd)/../kernel_module" qemu_x86_64_defconfig
|
||||||
echo '
|
cat ../buildroot_config_fragment >> .config
|
||||||
BR2_LINUX_KERNEL_CONFIG_FRAGMENT_FILES="../kernel_config_fragment"
|
|
||||||
BR2_PACKAGE_BUSYBOX_CONFIG_FRAGMENT_FILES="../busybox_config_fragment"
|
|
||||||
BR2_PACKAGE_KERNEL_MODULE=y
|
|
||||||
BR2_ROOTFS_OVERLAY="../rootfs_overlay"
|
|
||||||
' >> .config
|
|
||||||
env -u LD_LIBRARY_PATH make BR2_JLEVEL="$(($(nproc) - 2))" kernel_module-rebuild all
|
env -u LD_LIBRARY_PATH make BR2_JLEVEL="$(($(nproc) - 2))" kernel_module-rebuild all
|
||||||
qemu-system-x86_64 \
|
qemu-system-x86_64 \
|
||||||
-M pc \
|
-M pc \
|
||||||
|
|||||||
Reference in New Issue
Block a user