mirror of
https://git.adityakumar.xyz/lfs-scripts.git
synced 2024-11-21 19:52:52 +00:00
Add 5.4 - build linux api headers
This commit is contained in:
parent
d40db637e1
commit
e5353e8a8e
2 changed files with 23 additions and 0 deletions
11
scripts/chapter5/5.4-linux-headers.sh
Normal file
11
scripts/chapter5/5.4-linux-headers.sh
Normal file
|
@ -0,0 +1,11 @@
|
|||
#!/bin/bash
|
||||
|
||||
cd $LFS/sources
|
||||
tar xvf 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
|
|
@ -151,3 +151,15 @@ if [ $exit_status -ne 0 ]
|
|||
then
|
||||
stop_script "chapter5/5.3-gcc.sh"
|
||||
fi
|
||||
|
||||
# Chapter 5.4
|
||||
# ===========
|
||||
echo "Building Linux API Headers"
|
||||
su - lfs -c "$PWD/chapter5/5.4-linux-headers.sh"
|
||||
|
||||
# Exit on error
|
||||
check_exit_code
|
||||
if [ $exit_status -ne 0 ]
|
||||
then
|
||||
stop_script "chapter5/5.4-linux-headers.sh"
|
||||
fi
|
||||
|
|
Loading…
Reference in a new issue