repo/linux-headers/build

9 lines
170 B
Text
Raw Permalink Normal View History

2021-08-25 15:48:48 +03:00
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