Mailinglist Archive: opensuse-buildservice (266 mails)

< Previous Next >
[opensuse-buildservice] how to designate a kernel version for a kmp?
Hi Guys:

I want to build a module for my opensuse, it's kernel version is

but I found I can't , module verison from obs buiding is

I don't know how to designate a kernel version in .spec file .

now My module.spec file :

Name: module_param
BuildRequires: %kernel_module_package_buildreqs
License: GPL
Group: System/Kernel
Summary: module param example
Version: 1
Release: 0
Source0: Makefile
Source1: module_param_test.c

BuildRoot: %{_tmppath}/%{name}-%{version}-build


This kernel module provides support module example.

%setup -T -c %{name}-%{version}
echo "module_param_test.ko" > Module.supported
cp %{SOURCE0} .
cp %{SOURCE1} .
#%patch0 -p5
#%patch1 -p5
set -- *
mkdir source
mv "$@" source/
mkdir obj

for flavor in %flavors_to_build; do
rm -rf obj/$flavor
cp -r source obj/$flavor
make -C %{kernel_source $flavor} modules M=$PWD/obj/$flavor

export INSTALL_MOD_DIR=updates
for flavor in %flavors_to_build; do
make -C %{kernel_source $flavor} modules_install M=

rm -rf %{buildroot}


Jun Hu

DSE In Suse China.

To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@xxxxxxxxxxxx
To contact the owner, e-mail: opensuse-buildservice+owner@xxxxxxxxxxxx

< Previous Next >
Follow Ups