introduce RHEL's config

This commit is contained in:
Pratham Patel 2023-10-15 22:34:21 +05:30
parent 7f47d22c07
commit 4ee9b492cc
No known key found for this signature in database
5 changed files with 2 additions and 6 deletions

View File

@ -3,7 +3,6 @@
%global major_ver 6 %global major_ver 6
%global minor_ver 1 %global minor_ver 1
%global patch_ver 57 %global patch_ver 57
%global target_config defconfig
%global kname lts %global kname lts
Version: %{major_ver}.%{minor_ver}.%{patch_ver} Version: %{major_ver}.%{minor_ver}.%{patch_ver}

View File

@ -4,7 +4,6 @@
%global minor_ver 6 %global minor_ver 6
%global patch_ver 0 %global patch_ver 0
%global next_snapshot_date 20231013 %global next_snapshot_date 20231013
%global target_config defconfig
%global kname next %global kname next
Version: %{major_ver}.%{minor_ver}.%{patch_ver} Version: %{major_ver}.%{minor_ver}.%{patch_ver}

View File

@ -3,7 +3,6 @@
%global major_ver 6 %global major_ver 6
%global minor_ver 6 %global minor_ver 6
%global rc_ver 5 %global rc_ver 5
%global target_config defconfig
%global kname rc %global kname rc
Version: %{major_ver}.%{minor_ver}.0 Version: %{major_ver}.%{minor_ver}.0

View File

@ -3,7 +3,6 @@
%global major_ver 6 %global major_ver 6
%global minor_ver 5 %global minor_ver 5
%global patch_ver 7 %global patch_ver 7
%global target_config defconfig
%global kname stable %global kname stable
Version: %{major_ver}.%{minor_ver}.%{patch_ver} Version: %{major_ver}.%{minor_ver}.%{patch_ver}

View File

@ -35,6 +35,7 @@ Requires: linux-firmware
%global make make -j$(( $(nproc) + 2 )) KERNELRELEASE=%{KVERREL} %global make make -j$(( $(nproc) + 2 )) KERNELRELEASE=%{KVERREL}
Source2: https://git.resf.org/thefossguy/kernel-tfg/archive/master.tar.gz Source2: https://git.resf.org/thefossguy/kernel-tfg/archive/master.tar.gz
Source3: config
%description %description
The Linux Kernel, the operating system core itself The Linux Kernel, the operating system core itself
@ -94,8 +95,7 @@ export LLVM=1 AR=llvm-ar CC=clang HOSTAR=llvm-ar HOSTCC=clang HOSTCXX=clang++ HO
[ -f .config ] && rm -vf .config* [ -f .config ] && rm -vf .config*
%{make} distclean %{make} distclean
%{make} "${EXTRA_LINUX_CONFIG[@]}" %{target_config} cp %{SOURCE3} .config
cp .config .config.%{target_config}
tar -xf %{SOURCE2} -C . tar -xf %{SOURCE2} -C .
cp -vr kernel-tfg/{configure-linux.sh,extra-configs} . cp -vr kernel-tfg/{configure-linux.sh,extra-configs} .