summaryrefslogtreecommitdiffstats
path: root/madwifi
diff options
context:
space:
mode:
author Eric Hameleers <alien@slackware.com>2007-04-21 11:25:20 +0000
committer Eric Hameleers <alien@slackware.com>2007-04-21 11:25:20 +0000
commit2a308b741834e967a73af6474033396249f56a7d (patch)
treefde9d5119dd6660558adbb294472306ad099ae72 /madwifi
parent5ee673258eed7b38748571894048fe76a67db35e (diff)
downloadasb-2a308b741834e967a73af6474033396249f56a7d.tar.gz
asb-2a308b741834e967a73af6474033396249f56a7d.tar.xz
Add "make prepare" for 2.6 kernel sources so that the modules will build correctly for SMP kernels
Diffstat (limited to 'madwifi')
-rwxr-xr-xmadwifi/build/madwifi.SlackBuild6
1 files changed, 5 insertions, 1 deletions
diff --git a/madwifi/build/madwifi.SlackBuild b/madwifi/build/madwifi.SlackBuild
index 6905b91f..94b7a48a 100755
--- a/madwifi/build/madwifi.SlackBuild
+++ b/madwifi/build/madwifi.SlackBuild
@@ -54,6 +54,8 @@
# 0.9.3-1: 15/mar/2007 by Eric Hameleers <alien@slackware.com>
# * Long-anticipated new release, compatible with kernel > 2.6.18
# Made this SlackBuild actually able to build snapshot releases.
+# * Add "make prepare" for 2.6 kernel sources so that the modules
+# will build correctly for SMP kernels.
# -----------------------------------------------------------------------------
# Change SNAPSHOT from "" to "yes" below if you're building a snapshot release.
@@ -207,7 +209,9 @@ tar xzvf "$SOURCE"
# Madwifi expects the sources at the location that the link
# "/lib/modules/<kernelversion>/build" points to.... so be it.
cd ${KSRC}
-make clean oldconfig dep
+[ $PATCHLEVEL -eq 4 ] && \
+ make clean oldconfig dep || \
+ make clean oldconfig prepare
cd -
if [ -z $SNAPSHOT ]; then