open macro: with_patch and add file: series.conf, where patches defined can be applied automatically.
This commit is contained in:
parent
1a8c89daaf
commit
7d91e02c67
14
kernel.spec
14
kernel.spec
@ -14,7 +14,7 @@
|
|||||||
|
|
||||||
%global hulkrelease 2310.4.0
|
%global hulkrelease 2310.4.0
|
||||||
|
|
||||||
%define with_patch 0
|
%define with_patch 1
|
||||||
|
|
||||||
%define debuginfodir /usr/lib/debug
|
%define debuginfodir /usr/lib/debug
|
||||||
|
|
||||||
@ -32,7 +32,7 @@
|
|||||||
|
|
||||||
Name: kernel
|
Name: kernel
|
||||||
Version: 4.19.90
|
Version: 4.19.90
|
||||||
Release: %{hulkrelease}.0223
|
Release: %{hulkrelease}.0224
|
||||||
Summary: Linux Kernel
|
Summary: Linux Kernel
|
||||||
License: GPLv2
|
License: GPLv2
|
||||||
URL: http://www.kernel.org/
|
URL: http://www.kernel.org/
|
||||||
@ -57,7 +57,8 @@ Source2001: cpupower.config
|
|||||||
Source9000: apply-patches
|
Source9000: apply-patches
|
||||||
Source9001: guards
|
Source9001: guards
|
||||||
Source9002: series.conf
|
Source9002: series.conf
|
||||||
Source9998: patches.tar.bz2
|
Source9003: patches
|
||||||
|
#Source9998: patches.tar.bz2
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
#BuildRequires:
|
#BuildRequires:
|
||||||
@ -221,9 +222,6 @@ package or when debugging this package.\
|
|||||||
|
|
||||||
%setup -q -n kernel-%{version} -c
|
%setup -q -n kernel-%{version} -c
|
||||||
|
|
||||||
%if 0%{?with_patch}
|
|
||||||
tar -xjf %{SOURCE9998}
|
|
||||||
%endif
|
|
||||||
|
|
||||||
mv kernel linux-%{KernelVer}
|
mv kernel linux-%{KernelVer}
|
||||||
cd linux-%{KernelVer}
|
cd linux-%{KernelVer}
|
||||||
@ -232,6 +230,7 @@ cd linux-%{KernelVer}
|
|||||||
cp %{SOURCE9000} .
|
cp %{SOURCE9000} .
|
||||||
cp %{SOURCE9001} .
|
cp %{SOURCE9001} .
|
||||||
cp %{SOURCE9002} .
|
cp %{SOURCE9002} .
|
||||||
|
cp %{SOURCE9003} . -r
|
||||||
|
|
||||||
if [ ! -d patches ];then
|
if [ ! -d patches ];then
|
||||||
mv ../patches .
|
mv ../patches .
|
||||||
@ -808,6 +807,9 @@ fi
|
|||||||
%endif
|
%endif
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Fri Oct 27 2023 Luo Shengwei <luoshengwei@huawei.com> - 4.19.90-2310.4.0.0224
|
||||||
|
- open macro: with_patch and add file: series.conf, where patches defined can
|
||||||
|
- be applied automatically.
|
||||||
|
|
||||||
* Tue Oct 24 2023 Zhang Changzhong <zhangchangzhong@huawei.com> - 4.19.90-2310.4.0.0223
|
* Tue Oct 24 2023 Zhang Changzhong <zhangchangzhong@huawei.com> - 4.19.90-2310.4.0.0223
|
||||||
- !2334 ktask: add memory leak handling for ktask_works in ktask_init()
|
- !2334 ktask: add memory leak handling for ktask_works in ktask_init()
|
||||||
|
|||||||
0
patches/linux-kernel-test.patch
Normal file
0
patches/linux-kernel-test.patch
Normal file
4
series.conf
Normal file
4
series.conf
Normal file
@ -0,0 +1,4 @@
|
|||||||
|
#
|
||||||
|
# series.conf - Kernel patches configuration file
|
||||||
|
#
|
||||||
|
patches/linux-kernel-test.patch
|
||||||
Loading…
x
Reference in New Issue
Block a user