Accepting request 650582 from home:wanghaisu:branches:network:ha-clustering:Factory
fix kernel compatible of sle15sp1, bsc#1116820. OBS-URL: https://build.opensuse.org/request/show/650582 OBS-URL: https://build.opensuse.org/package/show/network:ha-clustering:Factory/drbd?expand=0&rev=78
This commit is contained in:
committed by
Git OBS Bridge
parent
4cafd9f9e4
commit
5c71beace2
@@ -36,6 +36,7 @@ Source1: preamble
|
||||
Source2: Module.supported
|
||||
Source3: drbd_git_revision
|
||||
Patch1: fix-resync-finished-with-syncs-have-bits-set.patch
|
||||
Patch2: compat_have_mempool_init.patch
|
||||
BuildRequires: kernel-source
|
||||
BuildRequires: kernel-syms
|
||||
BuildRequires: libelf-devel
|
||||
@@ -69,6 +70,7 @@ installed kernel.
|
||||
%prep
|
||||
%setup -q -n drbd-%{version}
|
||||
%patch1 -p1
|
||||
%patch2 -p1
|
||||
|
||||
mkdir source
|
||||
cp -a drbd/. source/. || :
|
||||
@@ -89,6 +91,8 @@ for flavor in %{flavors_to_build}; do
|
||||
cp %{_sourcedir}/Module.supported $flavor
|
||||
export DRBDSRC="$PWD/obj/$flavor"
|
||||
make -C %{kernel_source $flavor} modules M=$PWD/$flavor
|
||||
#Check the compat result
|
||||
cat $PWD/$flavor/compat.h
|
||||
done
|
||||
|
||||
%install
|
||||
|
Reference in New Issue
Block a user