[Lunar-commits] r21547 - in moonbase/trunk/wifi: ieee80211 ipw2200
Auke Kok
sofar at lunar-linux.org
Sat Sep 23 17:26:55 UTC 2006
Author: sofar
Date: 2006-09-23 17:26:54 +0000 (Sat, 23 Sep 2006)
New Revision: 21547
Modified:
moonbase/trunk/wifi/ieee80211/BUILD
moonbase/trunk/wifi/ipw2200/BUILD
Log:
Build kernel modules against last-built kernel, which will allow you to recompile these 2 modules before you reboot into the newly installed kernel (yay!)
Modified: moonbase/trunk/wifi/ieee80211/BUILD
===================================================================
--- moonbase/trunk/wifi/ieee80211/BUILD 2006-09-23 14:37:19 UTC (rev 21546)
+++ moonbase/trunk/wifi/ieee80211/BUILD 2006-09-23 17:26:54 UTC (rev 21547)
@@ -1,5 +1,11 @@
(
+ KVER=$(if [ -f /usr/src/linux/include/linux/utsrelease.h ] ; then
+ grep UTS_RELEASE /usr/src/linux/include/linux/utsrelease.h | cut -d'"' -f2
+ else
+ grep UTS_RELEASE /usr/src/linux/include/linux/version.h | cut -d'"' -f2
+ fi)
+
if ! $(uname -r | grep -q "^2\.6") ; then
message ""
message "${PROBLEM_COLOR}This module must only be installed with 2.6.x based kernels!${DEFAULT_COLOR}";
@@ -7,6 +13,8 @@
exit 1;
fi &&
- default_make
+ make KVER=$KVER &&
+ prepare_install &&
+ make KVER=$KVER install
) > $C_FIFO 2>&1
Modified: moonbase/trunk/wifi/ipw2200/BUILD
===================================================================
--- moonbase/trunk/wifi/ipw2200/BUILD 2006-09-23 14:37:19 UTC (rev 21546)
+++ moonbase/trunk/wifi/ipw2200/BUILD 2006-09-23 17:26:54 UTC (rev 21547)
@@ -9,11 +9,26 @@
message "Enabling WPA support ..."
sedit "s:# CONFIG_IEEE80211_WPA:CONFIG_IEEE80211_WPA:" Makefile
fi
-
+
# Debug sucks
message "Disabling debug messages ..."
sedit "s:CONFIG_IPW_DEBUG=y:#CONFIG_IPW_DEBUG=y:" Makefile
- default_make
+ KVER=$(if [ -f /usr/src/linux/include/linux/utsrelease.h ] ; then
+ grep UTS_RELEASE /usr/src/linux/include/linux/utsrelease.h | cut -d'"' -f2
+ else
+ grep UTS_RELEASE /usr/src/linux/include/linux/version.h | cut -d'"' -f2
+ fi)
+ if ! $(uname -r | grep -q "^2\.6") ; then
+ message ""
+ message "${PROBLEM_COLOR}This module must only be installed with 2.6.x based kernels!${DEFAULT_COLOR}";
+ message ""
+ exit 1;
+ fi &&
+
+ make KVER=$KVER &&
+ prepare_install &&
+ make KVER=$KVER install
+
) > $C_FIFO 2>&1
More information about the Lunar-commits
mailing list