Update for 6.7.6, update NTSync patches and remaster build files

This commit is contained in:
2024-02-26 12:01:57 -05:00
parent 2f2ac440b5
commit f5cd997d27
39 changed files with 3631 additions and 867 deletions

View File

@@ -1,22 +1,13 @@
%global debug_package %{nil}
%global zen zen1
Name: linux-zen
Version: 6.7.2
Version: 6.7.6
Release: 1%{?dist}
Summary: Linux kernel and modules with Zen patches
License: GPL-2.0-only
URL: http://www.zen-kernel.org/
Source0: v%{version}-%{zen}.tar.gz
Patch0: 0000-NTPatch.patch
Patch1: 0001-NTPatch.patch
Patch2: 0002-NTPatch.patch
Patch3: 0003-NTPatch.patch
Patch4: 0004-NTPatch.patch
Patch5: 0005-NTPatch.patch
Patch6: 0006-NTPatch.patch
Patch7: 0007-NTPatch.patch
Patch8: 0008-NTPatch.patch
BuildRequires: gcc, make, flex, bison, ncurses-devel, elfutils-libelf-devel, openssl-devel
@@ -27,15 +18,11 @@ Linux kernel and modules with Zen patches (%{version} series) compiled with Clan
%setup -q -n zen-kernel-%{version}-%{zen}
cp %{_sourcedir}/.config .config
%patch0 -p1
%patch1 -p1
%patch2 -p1
%patch3 -p1
%patch4 -p1
%patch5 -p1
%patch6 -p1
%patch7 -p1
%patch8 -p1
# Apply all patch files in a shell loop
for patch in %{_sourcedir}/*.patch; do
echo "Applying $patch"
patch -p1 < $patch
done
%build
# Set environment variables for Clang and LLVM tools
@@ -72,22 +59,21 @@ make LLVM=1 %{?_smp_mflags}
%install
make modules_install INSTALL_MOD_PATH=%{buildroot}
# Define the path for vmlinuz file
VMLINUX_PATH=%{buildroot}/boot
# Create the boot directory
mkdir -p $VMLINUX_PATH
# Navigate to the directory where vmlinux is located
cd %{_builddir}/zen-kernel-%{version}-%{zen}
cd %{_builddir}/zen-kernel-%{version}-zen1/arch/x86/boot
# Compress vmlinux and move it to the vmlinuz path
gzip -c vmlinux > $VMLINUX_PATH/vmlinuz-%{version}-%{zen}.fc39.x86_64
cp bzImage $VMLINUX_PATH/vmlinuz-%{version}-%{zen}.fc39.x86_64
cd %{_builddir}/zen-kernel-%{version}-zen1
cp %{_sourcedir}/.config $VMLINUX_PATH/config-%{version}-%{zen}.fc39.x86_64
%files
/boot/vmlinuz-%{version}-%{zen}
/boot/vmlinuz-%{version}-%{zen}.fc39.x86_64
/boot/config-%{version}-%{zen}.fc39.x86_64
/lib/modules/*
%changelog