[Debian-eeepc-devel] Bug#506230: rt2860-source: uses "uname -r" to choos build dir

Luca Niccoli lultimouomo at gmail.com
Thu Nov 20 11:53:10 UTC 2008


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

I had some time to take a better look, it seems that changing a couple
of occurences of /lib/modules/$(shell uname -r) with $(KSRC)
solves the problem, but I don't know if this is the right fix, maybe $(KSRC)
should be defined conditionally by /lib/modules/$(uname -r) if not already
defined?
Below is  the patch I used, beware that is unconditional and limited to PC
platform.
Cheers
Luca

- --- modules/rt2860/Makefile	2008-11-04 18:02:59.000000000 +0100
+++ modules/rt2860/Makefile.patched	2008-11-20 12:45:09.881690619 +0100
@@ -63,10 +63,10 @@

 ifeq ($(PLATFORM),PC)
 # Linux 2.6
- -LINUX_SRC = /lib/modules/$(shell uname -r)/build
+LINUX_SRC = $(KSRC)
 # Linux 2.4 Change to your local setting
 #LINUX_SRC = /usr/src/linux-2.4
- -LINUX_SRC_MODULE = /lib/modules/$(shell uname
-r)/kernel/drivers/net/wireless/
+LINUX_SRC_MODULE = $(KSRC)/kernel/drivers/net/wireless/
 CROSS_COMPILE =
 endif

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (GNU/Linux)

iEYEARECAAYFAkklT18ACgkQ4OR+1T4ba9h8nACeKcLnjnoQNSYAk7EeLi8XUTc5
uOUAoIqmqzTHx/NZPi5b0YBb0fH5LSos
=wTEi
-----END PGP SIGNATURE-----





More information about the Debian-eeepc-devel mailing list