[Lunar-commits] r22436 - moonbase/trunk/zbeta/drm-git

Auke Kok sofar at lunar-linux.org
Mon Dec 4 06:11:36 CET 2006


Author: sofar
Date: 2006-12-04 06:11:36 +0100 (Mon, 04 Dec 2006)
New Revision: 22436

Modified:
   moonbase/trunk/zbeta/drm-git/BUILD
Log:
Fix this (it didnt' detect any errors) and make it compile against /usr/src/linux instead of `uname -r`


Modified: moonbase/trunk/zbeta/drm-git/BUILD
===================================================================
--- moonbase/trunk/zbeta/drm-git/BUILD	2006-12-03 23:12:34 UTC (rev 22435)
+++ moonbase/trunk/zbeta/drm-git/BUILD	2006-12-04 05:11:36 UTC (rev 22436)
@@ -1,15 +1,21 @@
 (
 
-  ./autogen.sh  &&
+	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 -d '"' -f2
+	fi)
 
-  prepare_install &&
+	if $(uname -r | grep -q "^2\.6") ; then
+		./autogen.sh --prefix=/usr  &&
+		cd linux-core &&
+		make LINUXDIR=/usr/src/linux &&
+		prepare_install &&
+		mkdir -p /lib/modules/$KVER/kernel/drivers/char/drm &&
+		cp *.ko /lib/modules/$KVER/kernel/drivers/char/drm &&
+		depmod -a $KVER
+	else
+		exit 1
+	fi
 
-  if $(uname -r | grep -q "^2\.6") ; then
-	cd linux-core;
-	make;
-	mkdir -p /lib/modules/$(uname -r)/kernel/drivers/char/drm;
-	cp *.ko /lib/modules/$(uname -r)/kernel/drivers/char/drm;
-	depmod -a $(uname -r);
-  fi
-
 ) > $C_FIFO 2>&1



More information about the Lunar-commits mailing list