Skip to content

Commit

Permalink
Fix modules.dep location in GH action on newer kernels
Browse files Browse the repository at this point in the history
  • Loading branch information
gsingh93 committed Apr 7, 2024
1 parent 9720815 commit 1d74cd2
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -93,8 +93,13 @@ jobs:
# Expand the glob
MODULES_DIR=$(echo $MODULES_DIR)
# The module won't load without `modules.dep`
echo "extra/art-kernel-toolkit.ko:" > $MODULES_DIR/modules.dep
ART_KT_MOD=$(find $MODULES_DIR -name art-kernel-toolkit.ko)
# Get the directory the module is in i.e. `extra` or `updates`
ART_KT_DIR=$(basename $(dirname $ART_KT_MOD))
# `modprobe` won't work without `modules.dep`
echo "${ART_KT_DIR}/art-kernel-toolkit.ko:" > $MODULES_DIR/modules.dep
# LINUX_OUT, ROOTFS, and QEMU_KERNEL_IMAGE are set in the environment
make art-kt_test | tee test.log
Expand Down

0 comments on commit 1d74cd2

Please sign in to comment.