mirror of
https://github.com/ivabus/asahi-opensuse
synced 2024-11-21 22:45:06 +03:00
Update kernel.sh
This commit is contained in:
parent
67cbd0dadb
commit
3b90d2623c
1 changed files with 5 additions and 1 deletions
|
@ -2,7 +2,7 @@
|
||||||
cd=$(pwd)
|
cd=$(pwd)
|
||||||
_rcver=6.2
|
_rcver=6.2
|
||||||
_rcrel=3
|
_rcrel=3
|
||||||
_asahirel=7
|
_asahirel=6
|
||||||
_commit_id=asahi-${_rcver}${_rcrel+-rc}${_rcrel}-${_asahirel}
|
_commit_id=asahi-${_rcver}${_rcrel+-rc}${_rcrel}-${_asahirel}
|
||||||
|
|
||||||
rpmbuildsources=$(rpm --eval %{_sourcedir})
|
rpmbuildsources=$(rpm --eval %{_sourcedir})
|
||||||
|
@ -17,6 +17,7 @@ cd linux-${_commit_id}
|
||||||
ver=$(make kernelversion)
|
ver=$(make kernelversion)
|
||||||
cd $cd
|
cd $cd
|
||||||
rm -rf $tmpdir
|
rm -rf $tmpdir
|
||||||
|
|
||||||
cat > kernel.spec << EOF
|
cat > kernel.spec << EOF
|
||||||
%define _rcver ${_rcver}
|
%define _rcver ${_rcver}
|
||||||
%define _rcrel ${_rcrel}
|
%define _rcrel ${_rcrel}
|
||||||
|
@ -38,6 +39,7 @@ Provides: kernel-drm kernel-%{_rpm_ver} kernel-default kernel kernel-asahi
|
||||||
BuildRequires: bc binutils bison dwarves
|
BuildRequires: bc binutils bison dwarves
|
||||||
BuildRequires: (elfutils-libelf-devel or libelf-devel) flex
|
BuildRequires: (elfutils-libelf-devel or libelf-devel) flex
|
||||||
BuildRequires: gcc make openssl openssl-devel perl python3 rsync
|
BuildRequires: gcc make openssl openssl-devel perl python3 rsync
|
||||||
|
Provides: multiversion(kernel)
|
||||||
|
|
||||||
# aarch64 as a fallback of _arch in case
|
# aarch64 as a fallback of _arch in case
|
||||||
# /usr/lib/rpm/platform/*/macros was not included.
|
# /usr/lib/rpm/platform/*/macros was not included.
|
||||||
|
@ -47,12 +49,14 @@ BuildRequires: gcc make openssl openssl-devel perl python3 rsync
|
||||||
|
|
||||||
%description
|
%description
|
||||||
The Linux Kernel, the operating system core itself
|
The Linux Kernel, the operating system core itself
|
||||||
|
Requires(post): kmod-zstd
|
||||||
|
|
||||||
%package headers
|
%package headers
|
||||||
Summary: Header files for the Linux kernel for use by glibc
|
Summary: Header files for the Linux kernel for use by glibc
|
||||||
Group: Development/System
|
Group: Development/System
|
||||||
Obsoletes: kernel-headers
|
Obsoletes: kernel-headers
|
||||||
Provides: kernel-headers = %{version}
|
Provides: kernel-headers = %{version}
|
||||||
|
Provides: glibc-kernheaders
|
||||||
%description headers
|
%description headers
|
||||||
Kernel-headers includes the C header files that specify the interface
|
Kernel-headers includes the C header files that specify the interface
|
||||||
between the Linux kernel and userspace libraries and programs. The
|
between the Linux kernel and userspace libraries and programs. The
|
||||||
|
|
Loading…
Reference in a new issue