#!/usr/bin/bash

do_strip() {
	echo "Stripping kernel module $1"
	strip --strip-unneeded --remove-section=.comment --remove-section=.note "$1"
}

export -f do_strip

find "$SRCDIR" -name '*.ko' | parallel -j $(nproc) do_strip
