repo/linux-headers/PACKAGE

25 lines
736 B
Text
Raw Normal View History

2021-07-02 03:59:14 +03:00
#!/bin/sh
pkg_ver="5.13-headers"
pkg_deps="linux-kernel"
pkg_install(){
if [ "${pkg_deps}" = `sed -n "/${pkg_deps}/" "${prefix}"/var/cache/spkg.cache` ]
then
#mkdir "${prefix}"/usr/src/linux-headers
#cd linux-headers
#cp "${prefix}"/usr/src/linux-kernel/.config .
#make O="${prefix}"/usr/src/linux-headers oldconfig
#rm .config
#make O="${prefix}"/usr/src/linux-headers modules_prepare
#rm "${prefix}"/usr/src/linux-headers/source
#cp "${prefix}"/usr/src/linux-kernel/Module.symvers "${prefix}"/usr/src/linux-headers
cd "${prefix}"/usr/src/linux-kernel
make mrproper
make headers
find ${prefix}/usr/include -name '.*' -delete
rm ${prefix}/usr/include/Makefile
cp -rv ${prefix}/usr/include $LFS/usr
fi
}