diff options
author | johannst <johannes.stoelp@gmail.com> | 2021-07-15 21:20:14 +0200 |
---|---|---|
committer | johannst <johannes.stoelp@gmail.com> | 2021-07-15 21:20:14 +0200 |
commit | 82e9ac4163b46b59e121194f84ac370818482923 (patch) | |
tree | b52adf8f5b2bafe7904f563c33ec23f46cb7c87c /content/2019-10-27-kernel-debugging-qemu/build_kernel.sh | |
parent | 617d73fc9eff5b08a80b873fd97f66caa7e80fc9 (diff) | |
download | blog-82e9ac4163b46b59e121194f84ac370818482923.tar.gz blog-82e9ac4163b46b59e121194f84ac370818482923.zip |
use proper date fmt in content file names that zola can automatically can derive the date
Diffstat (limited to 'content/2019-10-27-kernel-debugging-qemu/build_kernel.sh')
-rwxr-xr-x | content/2019-10-27-kernel-debugging-qemu/build_kernel.sh | 38 |
1 files changed, 38 insertions, 0 deletions
diff --git a/content/2019-10-27-kernel-debugging-qemu/build_kernel.sh b/content/2019-10-27-kernel-debugging-qemu/build_kernel.sh new file mode 100755 index 0000000..7ae3014 --- /dev/null +++ b/content/2019-10-27-kernel-debugging-qemu/build_kernel.sh @@ -0,0 +1,38 @@ +#!/bin/bash + +set -e + +LINUX=linux-5.13.2 +wget https://cdn.kernel.org/pub/linux/kernel/v5.x/$LINUX.tar.xz +unxz $LINUX.tar.xz && tar xf $LINUX.tar + +cd $LINUX + +cat <<EOF > kernel_fragment.config +# 64bit kernel +CONFIG_64BIT=y +# enable support for compressed initrd (gzip) +CONFIG_BLK_DEV_INITRD=y +CONFIG_RD_GZIP=y +# support for ELF and #! binary format +CONFIG_BINFMT_ELF=y +CONFIG_BINFMT_SCRIPT=y +# /dev +CONFIG_DEVTMPFS=y +CONFIG_DEVTMPFS_MOUNT=y +# tty & console +CONFIG_TTY=y +CONFIG_SERIAL_8250=y +CONFIG_SERIAL_8250_CONSOLE=y +# pseudo fs +CONFIG_PROC_FS=y +CONFIG_SYSFS=y +# debugging +CONFIG_DEBUG_INFO=y +CONFIG_PRINTK=y +CONFIG_EARLY_PRINTK=y +EOF + +make tinyconfig +./scripts/kconfig/merge_config.sh -n ./kernel_fragment.config +make -j4 |