mirror of
https://github.com/linuxkit/linuxkit.git
synced 2025-07-23 11:00:25 +00:00
Merge pull request #1849 from rneugeba/kbuild
kernel: Add vmlinux to debug builds
This commit is contained in:
commit
e975d95b03
@ -33,7 +33,8 @@ RUN make defconfig && \
|
|||||||
make oldconfig && \
|
make oldconfig && \
|
||||||
make -j "$(getconf _NPROCESSORS_ONLN)" KCFLAGS="-fno-pie" && \
|
make -j "$(getconf _NPROCESSORS_ONLN)" KCFLAGS="-fno-pie" && \
|
||||||
cp arch/x86_64/boot/bzImage /out/kernel && \
|
cp arch/x86_64/boot/bzImage /out/kernel && \
|
||||||
cp System.map /out
|
cp System.map /out && \
|
||||||
|
([ -n "${DEBUG}" ] && cp vmlinux /out || true)
|
||||||
|
|
||||||
# Modules
|
# Modules
|
||||||
RUN make INSTALL_MOD_PATH=/tmp/kernel-modules modules_install && \
|
RUN make INSTALL_MOD_PATH=/tmp/kernel-modules modules_install && \
|
||||||
|
Loading…
Reference in New Issue
Block a user