|
||||||
| 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 |
![]() |
|
|
|
LinkBack | Thread Tools | Display Modes |
|
||||
|
Quote:
Code:
%setup set -- * mkdir source mv "$@" source/ # <-- this mv what? 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
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
|
|
||||
|
Quote:
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 |
|
||||
|
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
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
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) |
|
||||
|
KLIB var were got from Download - Linux Wireless
|
|
||||
|
Quote:
just found compat-wireless in OBS https://build.opensuse.org/package/s...ireless_STABLE . I see the spec has a bunch of adds...
|
![]() |
|
| Bookmarks |
| Tags |
| build, kernel, modules, package, wireless |
| Thread Tools | |
| Display Modes | |
|
|