openSUSE Forums > openSUSE Build Service (OBS) » Kernel Modules Build failed

Go Back   openSUSE Forums > openSUSE Build Service (OBS)
Forums FAQ Members List Search Today's Posts Mark Forums Read


openSUSE Build Service (OBS) Questions about creating packages for openSUSE and using the Build Service

Reply
Page 2 of 2 1 2
 
LinkBack Thread Tools Display Modes
  #11 (permalink)  
Old 21-Aug-2009, 16:29
malcolmlewis's Avatar
Global Moderator
 
Join Date: Jun 2008
Location: Podunk
Posts: 4,700
malcolmlewis has great reputationmalcolmlewis has great reputationmalcolmlewis has great reputationmalcolmlewis has great reputationmalcolmlewis has great reputationmalcolmlewis has great reputation
Default Re: Kernel Modules Build failed

Quote:
Originally Posted by broumbroum23
I missed the macro
Code:
--------------------
%if 0%{?suse_version} == 1120
%suse_kernel_module_package -x desktop pae default
%else
%suse_kernel_module_package -x default pae
%endif
--------------------
in the place of %kernel_module_package -x debug -x trace
hope this helps. building's been scheduled...
Hi
Lets see (crossing fingers) By adding the suse_version it means you can
use one spec file for other releases, arches, distros with one spec
file.

--
Cheers Malcolm °¿° (Linux Counter #276890)
openSUSE 11.2 Milestone 5 (i586) Kernel 2.6.31-rc6-3-desktop
up 1 day 5:22, 2 users, load average: 0.17, 0.19, 0.15
ASUS eeePC 1000HE ATOM N280 1.66GHz | GPU Mobile 945GM/GMS/GME

Reply With Quote
  #12 (permalink)  
Old 22-Aug-2009, 08:29
broumbroum23's Avatar
Puzzled Penguin
 
Join Date: Jan 2009
Posts: 39
broumbroum23 hasn't been rated much yet
Thumbs down Re: Kernel Modules Build failed

Quote:
Code:
make[3]:
*** /usr/src/packages/BUILD/compat-wireless-2.6.30/obj/default/: Is a
directory. Stop.
Help please, What does this paragraph do?
Code:
%setup
set -- *
mkdir source
mv "$@" source/ # <-- this mv what?
Then this might not work with the source dir :
Code:
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
and hence I changed it to :
Code:
for flavor in %flavors_to_build; do
       rm -rf obj/$flavor
       cp -r . obj/$flavor <-- here we should cp all compat-wireless dir files, don't we?
       make -C %{kernel_source $flavor} modules M=$PWD/obj/$flavor
done
Reply With Quote
  #13 (permalink)  
Old 22-Aug-2009, 10:05
malcolmlewis's Avatar
Global Moderator
 
Join Date: Jun 2008
Location: Podunk
Posts: 4,700
malcolmlewis has great reputationmalcolmlewis has great reputationmalcolmlewis has great reputationmalcolmlewis has great reputationmalcolmlewis has great reputationmalcolmlewis has great reputation
Default Re: Kernel Modules Build failed

Quote:
Originally Posted by broumbroum23

> >

Code:
--------------------
> > make[3]:

> *** /usr/src/packages/BUILD/compat-wireless-2.6.30/obj/default/: Is

a > directory. Stop.
--------------------
> >

Help please, What does this paragraph do?
Code:
--------------------
%setup
set -- *
mkdir source
mv "$@" source/ # <-- this mv what?

--------------------

Then this might not work with the source dir :

Code:
--------------------
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
--------------------
and hence I changed it to :

Code:
--------------------
for flavor in %flavors_to_build; do
rm -rf obj/$flavor
cp -r . obj/$flavor <-- here we should cp all compat-wireless dir
files, don't we? make -C %{kernel_source $flavor} modules
M=$PWD/obj/$flavor done
--------------------
Hi
The $@ is just the glob created by the set command to copy all the
files in one hit to source directory.

This spec file is just for building individual modules, so I think your
better having a look at this compat-wireless src rpm located here
http://download.opensuse.org/reposit...SUSE_11.1/src/

--
Cheers Malcolm °¿° (Linux Counter #276890)
SUSE Linux Enterprise Desktop 11 (x86_64) Kernel 2.6.27.29-0.1-default
up 1 day 21:57, 2 users, load average: 0.19, 0.12, 0.09
GPU GeForce 8600 GTS Silent - Driver Version: 190.18

Reply With Quote
  #14 (permalink)  
Old 24-Aug-2009, 16:19
broumbroum23's Avatar
Puzzled Penguin
 
Join Date: Jan 2009
Posts: 39
broumbroum23 hasn't been rated much yet
Question Re: Kernel Modules Build failed

hi again!
Well I managed to make the build occur, compilation goes well (and fast!!) . What I did realize, is to stick on the readme.file from compat-wireless
  1. make
  2. make install
  3. make unload
:
Code:
# norootforbuild
Name:                  compat-wireless
BuildRequires:       kernel-source kernel-syms module-init-tools
 # %kernel_module_package_buildreqs
License:               GPL
Group:                 System/Kernel
Summary:               Linux Wireless compatibility package
Version:               2.6.30
Release:               1
Source0:               %name-%version.tar.gz
BuildRoot:             %{_tmppath}/%{name}-%{version}-build
%if 0%{?suse_version} == 1120
%suse_kernel_module_package -x desktop pae default
%else
%suse_kernel_module_package -x default pae
%endif
%description
Compat-wireless was designed to allow you to install the latest
bleeding edge Linux wireless drivers on older kernels. Sometimes you
don't want to run bleeding edge wireless and but compat-wireless gives
you no other option, that's where the compat-wireless stable snapshots
come in.

This package allows you install the 2.6.30 Linux wireless
drivers on kernels >= 2.6.27.

For more information please see:

http://wireless.kernel.org/en/users/Download
http://wireless.kernel.org/en/users/Download/stable
%prep
%setup
set -- *
mkdir source
mv "$@" source/
mkdir obj
/sbin/depmod -a
%build
# Set build to default kernel
%if 0%{?suse_version} == 1120
export flavors to build=desktop pae default
%elsea
export flavors to build=default pae
%endif
export EXTRA_CFLAGS='-DVERSION=\"%version\"'
for flavor in %flavors_to_build; do
       rm -rf obj/$flavor
       cp -r source obj/$flavor
       cd obj/$flavor
	make KLIB=%{kernel_source $flavor} \
	   KLIB_BUILD=%{kernel_source $flavor}
	# make -C %{kernel_source $flavor} modules M=$PWD/obj/$flavor
       cd ../../.
done
%install
%if 0%{?suse_version} == 1120
export flavor=desktop pae default
%else
export flavor=default pae
%endif
export INSTALL_MOD_PATH=$RPM_BUILD_ROOT
export INSTALL_MOD_DIR=updates
for flavor in %flavors_to_build; do
        cd obj/$flavor
	make KLIB=%{kernel_source $flavor} \
	   KLIB_BUILD=%{kernel_source $flavor} install
       # make -C %{kernel_source $flavor} modules_install M=$PWD/obj/$flavor
        cd ../../.
done
%changelog
see that make -C %{kersrc} modules .. was not correct.anyway compile is done but then installing faild because modules.dep wasn't found; then I added a call to depmod which fails :
Code:
+ /sbin/depmod -a
WARNING: Couldn't open directory /lib/modules/2.6.27.29-0.1-xen: No such file or directory
FATAL: Could not open /lib/modules/2.6.27.29-0.1-xen/modules.dep.temp for writing: No such file or directory
error: Bad exit status from /var/tmp/rpm-tmp.31341 (%prep)
Reply With Quote
  #15 (permalink)  
Old 24-Aug-2009, 16:23
broumbroum23's Avatar
Puzzled Penguin
 
Join Date: Jan 2009
Posts: 39
broumbroum23 hasn't been rated much yet
Default Re: Kernel Modules Build failed

KLIB var were got from Download - Linux Wireless
Reply With Quote
  #16 (permalink)  
Old 24-Aug-2009, 16:33
broumbroum23's Avatar
Puzzled Penguin
 
Join Date: Jan 2009
Posts: 39
broumbroum23 hasn't been rated much yet
Default Re: Kernel Modules Build failed

Quote:
Originally Posted by malcolmlewis View Post
Hi
This spec file is just for building individual modules, so I think your
better having a look at this compat-wireless src rpm located here
Index of /repositories/home:/Akoellh:/compat-wireless_STABLE/openSUSE_11.1/src

--
Cheers Malcolm °¿° (Linux Counter #276890)
SUSE Linux Enterprise Desktop 11 (x86_64) Kernel 2.6.27.29-0.1-default
up 1 day 21:57, 2 users, load average: 0.19, 0.12, 0.09
GPU GeForce 8600 GTS Silent - Driver Version: 190.18
thank you
just found compat-wireless in OBS https://build.opensuse.org/package/s...ireless_STABLE . I see the spec has a bunch of adds...
Reply With Quote
Reply
Page 2 of 2 1 2

Bookmarks

Tags
build, kernel, modules, package, wireless


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




 

Search Engine Friendly URLs by vBSEO 3.3.0 RC2