!1286 修复kernel源码包本地自编译失败的问题
From: @yaqiangchen Reviewed-by: @Lostwayzxc Signed-off-by: @Lostwayzxc
This commit is contained in:
commit
a60fbae833
11
kernel.spec
11
kernel.spec
@ -32,7 +32,7 @@
|
||||
|
||||
Name: kernel
|
||||
Version: 4.19.90
|
||||
Release: %{hulkrelease}.0236
|
||||
Release: %{hulkrelease}.0237
|
||||
Summary: Linux Kernel
|
||||
License: GPLv2
|
||||
URL: http://www.kernel.org/
|
||||
@ -57,8 +57,7 @@ Source2001: cpupower.config
|
||||
Source9000: apply-patches
|
||||
Source9001: guards
|
||||
Source9002: series.conf
|
||||
Source9003: patches
|
||||
#Source9998: patches.tar.bz2
|
||||
Source9998: patches.tar.gz
|
||||
%endif
|
||||
|
||||
#BuildRequires:
|
||||
@ -222,6 +221,9 @@ package or when debugging this package.\
|
||||
|
||||
%setup -q -n kernel-%{version} -c
|
||||
|
||||
%if 0%{?with_patch}
|
||||
tar -zvxf %{SOURCE9998}
|
||||
%endif
|
||||
|
||||
mv kernel linux-%{KernelVer}
|
||||
cd linux-%{KernelVer}
|
||||
@ -230,7 +232,6 @@ cd linux-%{KernelVer}
|
||||
cp %{SOURCE9000} .
|
||||
cp %{SOURCE9001} .
|
||||
cp %{SOURCE9002} .
|
||||
cp %{SOURCE9003} . -r
|
||||
|
||||
if [ ! -d patches ];then
|
||||
mv ../patches .
|
||||
@ -835,6 +836,8 @@ fi
|
||||
%endif
|
||||
|
||||
%changelog
|
||||
* Tue Nov 7 2023 YaQiang Chen <chenyaqiang@huawei.com> - 4.19.90-2311.1.0.0237
|
||||
- spec: fix the problem that patches are not packaged in src.rpm
|
||||
|
||||
* Wed Nov 8 2023 Yu Liao <liaoyu15@huawei.com> - 4.19.90-2311.1.0.0236
|
||||
- kernel.spec: skip check patches that from linux master or stable
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user