Skip to content

Commit

Permalink
Remove kernel modules from the dev build
Browse files Browse the repository at this point in the history
Since kernel modules have been deprecated, I think we can remove them
from the dev image builds. Further more, the build is broken on newer
kernels (tested on 6.4) so the script fails in these cases and makes it
harder to test changes.
  • Loading branch information
Molter73 committed Sep 8, 2023
1 parent b99b8d9 commit bba90da
Showing 1 changed file with 0 additions and 10 deletions.
10 changes: 0 additions & 10 deletions kernel-modules/dev/build-drivers.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,6 @@ set -euo pipefail

OUTPUT_DIR="/collector/kernel-modules/container/kernel-modules"

package_kmod() {
kernel=$1
probe_object=$2

gzip -c "${probe_object}" \
> "${OUTPUT_DIR}/collector-${kernel}.ko.gz"
}

package_probe() {
kernel=$1
probe_object=$2
Expand Down Expand Up @@ -38,11 +30,9 @@ cmake -S ${DRIVER_DIR} \
-DBUILD_LIBSCAP_MODERN_BPF=ON \
-DMODERN_BPF_EXCLUDE_PROGS='^(openat2|ppoll|setsockopt|getsockopt|clone3|io_uring_setup|nanosleep)$' \
-B ${DRIVER_DIR}/build
make -C ${DRIVER_DIR}/build/driver
make -C ${PROBE_DIR} FALCO_DIR="${DRIVER_DIR}/driver/bpf"

mkdir -p "${OUTPUT_DIR}"
package_kmod "$KERNEL_VERSION" "$DRIVER_DIR/build/driver/collector.ko"
package_probe "$KERNEL_VERSION" "$PROBE_DIR/probe.o"

# No reason to leave this hanging about
Expand Down

0 comments on commit bba90da

Please sign in to comment.