repo/linux-headers/build
2021-08-25 14:48:48 +02:00

8 lines
170 B
Text
Executable file

cd /usr/src/linux
make HOSTCC="$CC" headers
find usr/include -name \*.h -type f | while read -r file; do
mkdir -p "$1/${file%/*}"
cp -f "$file" "$1/$file"
done