!1249 添加patch声明文件,并在spec文件中打开对应的宏

From: @Lostwayzxc 
Reviewed-by: @stkid 
Signed-off-by: @zhang-changzhong
This commit is contained in:
openeuler-ci-bot 2023-10-28 06:44:32 +00:00 committed by Gitee
commit 3a13678dd6
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F
3 changed files with 12 additions and 6 deletions

View File

@ -14,7 +14,7 @@
%global hulkrelease 2310.4.0
%define with_patch 0
%define with_patch 1
%define debuginfodir /usr/lib/debug
@ -32,7 +32,7 @@
Name: kernel
Version: 4.19.90
Release: %{hulkrelease}.0223
Release: %{hulkrelease}.0224
Summary: Linux Kernel
License: GPLv2
URL: http://www.kernel.org/
@ -57,7 +57,8 @@ Source2001: cpupower.config
Source9000: apply-patches
Source9001: guards
Source9002: series.conf
Source9998: patches.tar.bz2
Source9003: patches
#Source9998: patches.tar.bz2
%endif
#BuildRequires:
@ -221,9 +222,6 @@ package or when debugging this package.\
%setup -q -n kernel-%{version} -c
%if 0%{?with_patch}
tar -xjf %{SOURCE9998}
%endif
mv kernel linux-%{KernelVer}
cd linux-%{KernelVer}
@ -232,6 +230,7 @@ cd linux-%{KernelVer}
cp %{SOURCE9000} .
cp %{SOURCE9001} .
cp %{SOURCE9002} .
cp %{SOURCE9003} . -r
if [ ! -d patches ];then
mv ../patches .
@ -808,6 +807,9 @@ fi
%endif
%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
- !2334 ktask: add memory leak handling for ktask_works in ktask_init()

View File

4
series.conf Normal file
View File

@ -0,0 +1,4 @@
#
# series.conf - Kernel patches configuration file
#
patches/linux-kernel-test.patch