[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[bluetooth-dev] [PATCH] enable bluetooth stack to be compiled on LSB compliant distros


Attached is a patch to enable the bluetooth stack to be compiled on LSB
compliant distros (like RedHat 7.0, Mandrake 7.*, and others).  It
doesn't change the default behavior of the build process, but enables
you to build properly on these other distros by running:
	make INCLUDEDIR=/usr/src/linux/include

It's against the latest cvs tree (as of a few hours ago.)
Could you please apply it, of if you want to, you can add me to the list
of developers on the sourceforge project (user id 'kroah') and I can
commit it myself.


greg k-h

Index: linux/drivers/char/bluetooth/Makefile
RCS file: /cvsroot/openbt/linux/drivers/char/bluetooth/Makefile,v
retrieving revision 1.11
diff -a -u -d -r1.11 Makefile
--- linux/drivers/char/bluetooth/Makefile	2001/02/28 19:01:25	1.11
+++ linux/drivers/char/bluetooth/Makefile	2001/03/01 17:37:53
@@ -2,6 +2,8 @@
 # Makefile for the Bluetooth device driver.
+INCLUDEDIR = /usr/include
 O_TARGET := bt.o
 O_OBJS   =  bluetooth.o btdebug.o btmem.o hci.o l2cap.o rfcomm.o sdp.o tcs.o bt_proc.o hci_vendor.o l2cap_con.o sec_client.o l2cap_sec.o rfcomm_sec.o
@@ -12,8 +14,8 @@
-MODFLAGS = -DMODVERSIONS -include /usr/include/linux/modversions.h
-CFLAGS   = -D__KERNEL__ -DMODULE -I../../../include -Wall -Wstrict-prototypes -O2 -fomit-frame-pointer -fno-strength-reduce $(MODFLAGS)
+MODFLAGS = -DMODVERSIONS -include $(INCLUDEDIR)/linux/modversions.h
+CFLAGS   = -D__KERNEL__ -DMODULE -I$(INCLUDEDIR) -I../../../include -Wall -Wstrict-prototypes -O2 -fomit-frame-pointer -fno-strength-reduce $(MODFLAGS)
 all:	$(O_TARGET)