Add 5.4 - build linux api headers

This commit is contained in:
Aditya 2023-01-08 15:24:09 +05:30
parent d40db637e1
commit e5353e8a8e
2 changed files with 23 additions and 0 deletions

View 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

View file

@ -151,3 +151,15 @@ if [ $exit_status -ne 0 ]
then then
stop_script "chapter5/5.3-gcc.sh" stop_script "chapter5/5.3-gcc.sh"
fi 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