lfs-scripts/scripts/chapter5/5.4-linux-headers.sh

15 lines
214 B
Bash

#!/bin/bash
cd $LFS/sources
tar xf linux-5.19.2.tar.xz
cd linux-5.19.2
make mrproper
make headers
find usr/include -type f ! -name '*.h' -delete
cp -rv usr/include $LFS/usr
cd $LFS/sources
rm -rf linux-5.19.2