Skip to content

Commit

Permalink
use symbolic folder linux so that vm does not need any concrete kerne…
Browse files Browse the repository at this point in the history
…l version
  • Loading branch information
mudongliang committed Jun 3, 2024
1 parent 3f54c4b commit 364d1dc
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions challenge/Dockerfile_amd64
Original file line number Diff line number Diff line change
Expand Up @@ -184,6 +184,7 @@ RUN <<EOF
make -j$(nproc) bzImage
ln -sf $PWD/arch/x86/boot/bzImage ../bzImage
ln -sf $PWD/vmlinux ../vmlinux
ln -sf /opt/linux/linux-6.6.32 /opt/linux/linux
EOF

FROM builder-kernel-${INSTALL_KERNEL} as builder-kernel
Expand Down
4 changes: 2 additions & 2 deletions challenge/vm/vm
Original file line number Diff line number Diff line change
Expand Up @@ -221,9 +221,9 @@ def build(path):
obj-m += debug.o
all:
\tmake -C /opt/linux/linux-6.6.32 M={workdir} modules
\tmake -C /opt/linux/linux M={workdir} modules
clean:
\tmake -C /opt/linux/linux-6.6.32 M={workdir} clean
\tmake -C /opt/linux/linux M={workdir} clean
"""
)
)
Expand Down

0 comments on commit 364d1dc

Please sign in to comment.