[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 3.4.11-2.16-xen but I found I can't , module verison from obs buiding is 3.4.6_2.10-2.2 http://download.opensuse.org/repositories/home:/todaygood123/openSUSE_12.2/x... 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 %kernel_module_package %description This kernel module provides support module example. %prep %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 %build 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 done %install export INSTALL_MOD_PATH=$RPM_BUILD_ROOT export INSTALL_MOD_DIR=updates for flavor in %flavors_to_build; do make -C %{kernel_source $flavor} modules_install M= $PWD/obj/$flavor done %clean rm -rf %{buildroot} %changelog -- ------------------------------ Jun Hu DSE In Suse China. ------------------------------ -- To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-buildservice+owner@opensuse.org
If use local build , I can generate 3.4.11-2.16-xen kmp , but the obs can't . I think the cuase may be with the resposity, on obs web, only choose opensuse 12.2 /standard resposity. how to choose a opensuse 12.2 /update respostiy? -- ------------------------------ Jun Hu DSE In Suse China. ------------------------------ On Thu, 2013-01-10 at 09:27 +0800, Jun Hu wrote:
Hi Guys:
I want to build a module for my opensuse, it's kernel version is 3.4.11-2.16-xen
but I found I can't , module verison from obs buiding is 3.4.6_2.10-2.2
http://download.opensuse.org/repositories/home:/todaygood123/openSUSE_12.2/x...
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
%kernel_module_package
%description This kernel module provides support module example.
%prep %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
%build 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 done
%install export INSTALL_MOD_PATH=$RPM_BUILD_ROOT export INSTALL_MOD_DIR=updates for flavor in %flavors_to_build; do make -C %{kernel_source $flavor} modules_install M= $PWD/obj/$flavor done
%clean rm -rf %{buildroot}
%changelog
-- ------------------------------ Jun Hu
DSE In Suse China. ------------------------------
-- To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-buildservice+owner@opensuse.org
Jun Hu
how to choose a opensuse 12.2 /update respostiy?
Edit the repository settings and replace openSUSE:12.2 with openSUSE:12.2:Update. Andreas. -- Andreas Schwab, SUSE Labs, schwab@suse.de GPG Key fingerprint = 0196 BAD8 1CE9 1970 F4BE 1748 E4D4 88E3 0EEA B9D7 "And now for something completely different." -- To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-buildservice+owner@opensuse.org
Hi Andreas: I'm a newbies to obs . how to change to 12.2 update ? I can't find it on obs web. -- ------------------------------ Jun Hu DSE In Suse China. ------------------------------ On Thu, 2013-01-10 at 09:39 +0100, Andreas Schwab wrote:
Jun Hu
writes: how to choose a opensuse 12.2 /update respostiy?
Edit the repository settings and replace openSUSE:12.2 with openSUSE:12.2:Update.
Andreas.
-- Andreas Schwab, SUSE Labs, schwab@suse.de GPG Key fingerprint = 0196 BAD8 1CE9 1970 F4BE 1748 E4D4 88E3 0EEA B9D7 "And now for something completely different."
-- To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-buildservice+owner@opensuse.org
Am Donnerstag, 10. Januar 2013, 16:59:24 schrieb Jun Hu:
Hi Andreas:
I'm a newbies to obs .
how to change to 12.2 update ? I can't find it on obs web.
You need to modify the project meta in Advanced -> Meta tab.
Modify the project name in Jun Hu how to choose a opensuse 12.2 /update respostiy? Edit the repository settings and replace openSUSE:12.2 with
openSUSE:12.2:Update. Andreas. --
Adrian Schroeter
SUSE Linux Products GmbH
email: adrian@suse.de
--
To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@opensuse.org
To contact the owner, e-mail: opensuse-buildservice+owner@opensuse.org
Jun Hu
how to change to 12.2 update ? I can't find it on obs web.
"Edit the repository" mean to use "Edit repository" in the Repository tab. Andreas. -- Andreas Schwab, SUSE Labs, schwab@suse.de GPG Key fingerprint = 0196 BAD8 1CE9 1970 F4BE 1748 E4D4 88E3 0EEA B9D7 "And now for something completely different." -- To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-buildservice+owner@opensuse.org
participants (3)
-
Adrian Schröter
-
Andreas Schwab
-
Jun Hu