From 5ef350b214fde8be8c396c5edf31c48e9e688d6c Mon Sep 17 00:00:00 2001 From: Thierry Parmentelat Date: Tue, 22 Apr 2008 10:21:03 +0000 Subject: [PATCH] iwlwifi : conditional build, and upgrade to 1.2.25 --- kernel-2.6.spec | 60 ++++++++++++++++++++++++++++++------------------- sources | 2 +- 2 files changed, 38 insertions(+), 24 deletions(-) diff --git a/kernel-2.6.spec b/kernel-2.6.spec index e850a1ad7..7adda7d09 100644 --- a/kernel-2.6.spec +++ b/kernel-2.6.spec @@ -13,6 +13,12 @@ Summary: The Linux kernel (the core of the Linux operating system) %define buildxen 0 %define builddoc 0 +# default is to not build this - to override, use something like +# kernel-SPECVARS := iwlwifi=1 +# rpm does not seem to have a syntax for defining overridable defaults +# any better solution would be more than welcome. +%define build_iwlwifi %{?iwlwifi:1}%{!?iwlwifi:0} + # Versions of various parts # for module-tag.py - sublevel is used for the version (middle) part of tag names @@ -169,10 +175,12 @@ Patch620: linux-2.6-620-kdb.patch # See also the file named 'sources' here for the related checksums # NOTE. iwlwifi should be in-kernel starting from 2.6.24 # see http://bughost.org/bugzilla/show_bug.cgi?id=1584 +%if %{build_iwlwifi} %define mac80211_version 10.0.4 Patch600: http://intellinuxwireless.org/mac80211/downloads/mac80211-%{mac80211_version}.tgz -%define iwlwifi_version 1.2.23 +%define iwlwifi_version 1.2.25 Patch601: http://intellinuxwireless.org/iwlwifi/downloads/iwlwifi-%{iwlwifi_version}.tgz +%endif BuildRoot: %{_tmppath}/kernel-%{KVERREL}-root @@ -363,26 +371,28 @@ KERNEL_PREVIOUS=vanilla %ApplyPatch %vini_pl_patch %endif +%if %{build_iwlwifi} # Run the mac80211 stuff in the kernel tree holding the last patch -# tar -xzf %{PATCH600} -# pushd mac80211-%{mac80211_version} -# mac80211_makeflags="KSRC=../$KERNEL_PREVIOUS" -# make $mac80211_makeflags modified -# make $mac80211_makeflags source -# make $mac80211_makeflags patch_kernel -# popd +tar -xzf %{PATCH600} +pushd mac80211-%{mac80211_version} +mac80211_makeflags="KSRC=../$KERNEL_PREVIOUS" +make $mac80211_makeflags modified +make $mac80211_makeflags source +make $mac80211_makeflags patch_kernel +popd # Untar iwlwifi in the same place - needs to be compiled later -# tar -xzf %{PATCH601} +tar -xzf %{PATCH601} # the install target is broken: first it does not pass the right -b flag to depmod # second we do not need to invoke depmod at this stage anyway # let's add our own patch/stuff in this Makefile for manual install later on -# pushd iwlwifi-%{iwlwifi_version} -# cat >> Makefile <> Makefile <