Microchip smartpqi driver 2.1.22-040 update patch
This patch is used to support OpenEuler-2203 version. Signed-off-by: Hao Zhang <Hao.Zhang@windriver.com>
This commit is contained in:
parent
4d412cc347
commit
f35140c755
@ -0,0 +1,30 @@
|
||||
From aecfa96b98be1bdc9562cf912c7497dd241cd9b8 Mon Sep 17 00:00:00 2001
|
||||
From: Hao Zhang <Hao.Zhang@windriver.com>
|
||||
Date: Mon, 24 Jul 2023 15:58:03 +0800
|
||||
Subject: [PATCH] Support PMC8222 driver build for OpenEuler-2203 version.
|
||||
|
||||
This patch is referred from src/Makefile.alt.
|
||||
|
||||
Signed-off-by: Hao Zhang <Hao.Zhang@windriver.com>
|
||||
---
|
||||
Makefile | 4 ++++
|
||||
1 file changed, 4 insertions(+)
|
||||
|
||||
diff --git a/Makefile b/Makefile
|
||||
index 8e7196c..3c4cadb 100644
|
||||
--- a/Makefile
|
||||
+++ b/Makefile
|
||||
@@ -103,6 +103,10 @@ OSVENDOR := $(shell \
|
||||
$(KVER_SHORT) = "4.19" ]; \
|
||||
then \
|
||||
echo "OEULER2003"; \
|
||||
+ elif [ -n "`grep 'release 22.03' /etc/openEuler-release`" -a \
|
||||
+ $(KVER_SHORT) = "5.10" ]; \
|
||||
+ then \
|
||||
+ echo "OEULER2203"; \
|
||||
fi; \
|
||||
elif [ -f /etc/os-release ]; \
|
||||
then \
|
||||
--
|
||||
2.33.0
|
||||
|
||||
@ -18,6 +18,8 @@ BuildRoot: /var/tmp/%{name}-buildroot
|
||||
|
||||
%define debug_package %{nil}
|
||||
|
||||
Patch0: 0001-Support-PMC8222-driver-build-for-OpenEuler-2203-vers.patch
|
||||
|
||||
%description
|
||||
Driver for Microchip Technology SmartRAID and SmartHBA controllers
|
||||
|
||||
@ -25,6 +27,7 @@ Driver for Microchip Technology SmartRAID and SmartHBA controllers
|
||||
%prep
|
||||
echo prep %{version}-%{release}
|
||||
%setup -c -b 0
|
||||
%patch0 -p1 -b 0001-Support-PMC8222-driver-build-for-OpenEuler-2203-vers.patch
|
||||
cp %_sourcedir/Module.supported src/Module.supported
|
||||
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user