add 6.8.1

This commit is contained in:
Javier 2024-03-16 21:49:12 -05:00
parent 766bef77c4
commit 3c046ae94a
6 changed files with 22442 additions and 0 deletions

2
linux/.checksums Normal file
View File

@ -0,0 +1,2 @@
ae19f261212d41a3819db4e9717686484f8232d726cf0126ece597047b4c5d32621ccbef001d6a6cf43d5f930dd3e637eebe39dee5e08e2824be9e00f6ed4b71 config-lenovo
255921dd12f1043a4db38b5435b34773267c592f6712815c0851f1e0add71131fb00fd00746200eabdad29ba5b6e38a768da9c048da47fb5aa59d8eaef7d236e linux-6.8.1.tar.xz

2
linux/.gitignore vendored Normal file
View File

@ -0,0 +1,2 @@
./linux-*/
./linux-*.tar.xz

17174
linux/.pkgfiles Normal file

File diff suppressed because it is too large Load Diff

5148
linux/config-lenovo Normal file

File diff suppressed because it is too large Load Diff

29
linux/post-install.sh Executable file
View File

@ -0,0 +1,29 @@
#!/bin/sh
kernver=$(find /lib/modules -type d -iname '*-Venom' -printf "%f\n" )
if [ $(command -v mkinitramfs) ]; then
echo "mkinitramfs: generating initramfs for kernel $kernver..."
mkinitramfs -q -k $kernver -o /boot/initrd-venom.img
fi
depmod $kernver
# run all dkms scripts
if [ $(command -v dkms) ]; then
for i in /var/lib/dkms/buildmodules-*.sh; do
sh $i
done
fi
# removing other venom's kernel
for i in /lib/modules/*; do
[ -d $i ] || continue
case ${i##*/} in
$kernver) continue;;
*-Venom)
[ -d $i/build/include ] && continue
echo "post-install: removing kernel ${i##*/}"
rm -fr $i;;
esac
done

87
linux/spkgbuild Normal file
View File

@ -0,0 +1,87 @@
# description : Linux kernel, sources and modules
# depends : bc elfutils openssl yaml
name=linux
version=6.8.1
release=1
source="https://cdn.kernel.org/pub/linux/kernel/v6.x/$name-${version%.0}.tar.xz
config-lenovo"
NO_STRIP=yes
build() {
echo Creating custom kernel
echo Creating custom kernel
echo Creating custom kernel
echo Creating custom kernel
echo Creating custom kernel
echo Creating custom kernel
cd $name-${version%.0}
make mrproper
cp $SRC/config-lenovo ./.config
make oldconfig
sed '/^CONFIG_LOCALVERSION=/d' -i .config
echo 'CONFIG_LOCALVERSION="-Venom"' >> .config
kernver=${version}$(grep CONFIG_LOCALVERSION= .config | cut -d '"' -f2)
#make menuconfig
# https://github.com/graysky2/kernel_compiler_patch
# Define a '-march= option' exporting the value/values
# for the KCFLAGS and KCPPFLAGS before calling make.
# More info: https://docs.kernel.org/kbuild/kbuild.html
export KCFLAGS=' -march=native'
export KCPPFLAGS=' -march=native'
make
make INSTALL_MOD_PATH=$PKG modules_install
mkdir -p $PKG/boot
cp arch/x86/boot/bzImage $PKG/boot/vmlinuz-venom
cp .config $PKG/boot/config-venom
#cp -iv System.map $PKG/boot/
echo $kernver > $PKG/lib/modules/KERNELVERSION
make clean
make prepare
rm -rf $PKG/lib/firmware
for file in $(ls arch); do
case $file in
x86|Kconfig) continue ;;
*) rm -fr arch/$file ;;
esac
done
# strip down sources
# don't package the kernel in the sources directory
find . -name "*Image" -exec rm "{}" \;
find . -name "*.cmd" -exec rm -f "{}" \;
rm -f .*.d
rm -fr firmware ipc .config.old .version .cocciconfig \
.get_maintainer.ignore .gitattributes .gitignore .mailmap \
COPYING CREDITS MAINTAINERS README Documentation
find . -name ".gitignore" -exec rm "{}" \;
for dir in block certs crypto drivers fs init kernel lib mm net samples security sound usr virt; do
find $dir -type f \( -name "*.c" -o -name "*.h" \) -exec rm "{}" \;
done
for i in $(ls tools); do
[ "$i" = "objtool" ] || rm -fr tools/$i
done
for i in $(ls tools/objtool); do
[ "$i" = "objtool" ] || rm -fr tools/objtool/$i
done
rm $PKG/lib/modules/$kernver/build
mv $SRC/linux-${version%.0} $PKG/lib/modules/$kernver/build
ln -sv build $PKG/lib/modules/$kernver/source
# remove now broken symlinks
find -L $PKG/lib/modules/$kernver/build -type l -exec rm -f "{}" \;
}