Skip to content

Commit

Permalink
vms: Add Linux kernel with debug facilities
Browse files Browse the repository at this point in the history
Adds a new vmlinuz-debug target that builds the linux kernel with debug
facilities. It is based on config_release but with the following set:

CONFIG_DEBUG_INFO=y
CONFIG_RANDOMIZE_BASE=n
CONFIG_FUNCTION_TRACER=y
CONFIG_BINFMT_SCRIPT=y

The qemu_strace.sh script was modified as well to start the debug kernel
by default.
  • Loading branch information
chp-io committed Nov 2, 2021
1 parent 2290364 commit 3a176a9
Show file tree
Hide file tree
Showing 3 changed files with 1,364 additions and 2 deletions.
2 changes: 1 addition & 1 deletion utils/linux/qemu_strace.sh
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ if [ -z ${BUILD_DIR+x} ]; then
fi

if [ -z ${KERNEL_PATH+x} ]; then
KERNEL_PATH="$(pwd)/vm_cross_compile/bin/bzImage-release"
KERNEL_PATH="$(pwd)/vm_cross_compile/bin/bzImage-debug"
fi

if [ -z ${INITRD_PATH+x} ]; then
Expand Down
2 changes: 1 addition & 1 deletion vms/linux/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,6 @@ macro(add_vmlinux NAME)
COMMAND sync
VERBATIM
)
# install(TARGETS ${NAME} DESTINATION bin)
endmacro(add_vmlinux)

macro(add_userspace NAME)
Expand All @@ -45,6 +44,7 @@ macro(add_userspace NAME)
endmacro(add_userspace)

add_vmlinux(release)
add_vmlinux(debug)

add_userspace(init init.cpp)

Expand Down
Loading

0 comments on commit 3a176a9

Please sign in to comment.