* [PATCH] compat-2.6: New targets to compile bluetooth alone
@ 2009-12-24 11:24 Bala Shanmugam
2009-12-29 1:59 ` Luis R. Rodriguez
0 siblings, 1 reply; 2+ messages in thread
From: Bala Shanmugam @ 2009-12-24 11:24 UTC (permalink / raw)
To: Luis Rodriguez, mcgrof
Cc: Jothikumar Mothilal, linux-bluetooth, linux-wireless
Compiling compat-pacakage consumes more time
as both wireless and bluetooth modules are compiled.
For someone who wants to use bluetooth alone
compiling and installing wireless modules is unnecessary
and is time consuming.
New targets are declared to compile, install, uninstall, load
and unload bluetooth modules seperately.
Usage is updated in README.
Signed-off-by: Bala Shanmugam <sbalashanmugam@atheros.com>
---
Makefile | 68 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++--
README | 28 +++++++++++++++++++++++++
2 files changed, 93 insertions(+), 3 deletions(-)
diff --git a/Makefile b/Makefile
index d197202..f575f5b 100644
--- a/Makefile
+++ b/Makefile
@@ -21,16 +21,19 @@ obj-y := compat/
obj-$(CONFIG_COMPAT_RFKILL) += net/rfkill/
+ifeq ($(BT),)
obj-$(CONFIG_COMPAT_WIRELESS) += net/wireless/ net/mac80211/
obj-$(CONFIG_COMPAT_WIRELESS_MODULES) += drivers/net/wireless/
obj-$(CONFIG_COMPAT_NET_USB_MODULES) += drivers/net/usb/
+obj-$(CONFIG_COMPAT_NETWORK_MODULES) += drivers/net/
+obj-$(CONFIG_COMPAT_VAR_MODULES) += drivers/misc/eeprom/
+endif
+
obj-$(CONFIG_COMPAT_BLUETOOTH) += net/bluetooth/
obj-$(CONFIG_COMPAT_BLUETOOTH_MODULES) += drivers/bluetooth/
-obj-$(CONFIG_COMPAT_NETWORK_MODULES) += drivers/net/
-obj-$(CONFIG_COMPAT_VAR_MODULES) += drivers/misc/eeprom/
# Sorry ssb requires pcmica backport for 2.6.33 which is not done yet
# drivers/ssb/
@@ -56,6 +59,11 @@ modules: $(CREL_CHECK)
$(MAKE) -C $(KLIB_BUILD) M=$(PWD) modules
@touch $@
+bt: $(CREL_CHECK)
+ @./scripts/check_config.sh
+ $(MAKE) -C $(KLIB_BUILD) M=$(PWD) BT=TRUE modules
+ @touch $@
+
# With the above and this we make sure we generate a new compat autoconf per
# new relase of compat-wireless-2.6 OR when the user updates the
# $(COMPAT_CONFIG) file
@@ -66,6 +74,60 @@ $(CREL_CHECK):
@touch $@
@md5sum $(COMPAT_CONFIG) > $(CONFIG_CHECK)
+btinstall: btuninstall bt-install-modules bt-install-scripts
+
+bt-install-modules: bt
+ $(MAKE) -C $(KLIB_BUILD) M=$(PWD) $(KMODDIR_ARG) $(KMODPATH_ARG) BT=TRUE \
+ modules_install
+
+bt-install-scripts:
+ @# All the scripts we can use
+ @# Mandrake doesn't have a depmod.d/ conf file to prefer
+ @# the updates/ dir which is what we use so we add one for it
+ @# (or any other distribution that doens't have this).
+ @/sbin/depmod -ae
+ @echo
+ @echo "Currently detected bluetooth subsystem modules:"
+ @echo
+ @$(MODPROBE) -l sco
+ @$(MODPROBE) -l l2cap
+ @$(MODPROBE) -l hidp
+ @$(MODPROBE) -l rfcomm
+ @$(MODPROBE) -l bnep
+ @$(MODPROBE) -l btusb
+ @$(MODPROBE) -l bluetooth
+ @echo
+ @echo Now run:
+ @echo
+ @echo sudo make btunload:
+ @echo
+ @echo And the load the needed bluetooth modules. If unsure reboot.
+ @echo
+
+btuninstall:
+ @# New location, matches upstream
+ @rm -rf $(KLIB)/$(KMODDIR)/net/bluetooth/
+ @rm -rf $(KLIB)/$(KMODDIR)/drivers/bluetooth/
+ @# Lets only remove the stuff we are sure we are providing
+ @# on the misc directory.
+ @/sbin/depmod -ae
+ @echo
+ @echo "Your old bluetooth subsystem modules were left intact:"
+ @echo
+ @$(MODPROBE) -l sco
+ @$(MODPROBE) -l l2cap
+ @$(MODPROBE) -l hidp
+ @$(MODPROBE) -l rfcomm
+ @$(MODPROBE) -l bnep
+ @$(MODPROBE) -l btusb
+ @$(MODPROBE) -l bluetooth
+ @
+ @echo
+
+btclean:
+ make -C /lib/modules/$(shell uname -r)/build M=$(PWD) BT=TRUE clean
+ @rm -f $(CREL_PRE)*
+
install: uninstall install-modules install-scripts
install-modules: modules
@@ -293,7 +355,7 @@ wlunload:
wlload: wlunload
@./scripts/wlload.sh
-.PHONY: all clean install uninstall unload load btunload btload wlunload wlload modules
+.PHONY: all clean install uninstall unload load btunload btload wlunload wlload modules bt
endif
diff --git a/README b/README
index 380fc5a..88b16b4 100644
--- a/README
+++ b/README
@@ -6,6 +6,7 @@ This is a Linux wireless compatibility package which provides the latest
Linux wireless subsystem enhancements for kernels 2.6.25 and above.
It is technically possible to support kernels < 2.6.25 but more
work is required for that.
+It also provides Linux bluetooth subsystem enhancements for kernels 2.6.27 and above.
If you'd like to keep the wireless-testing git repository local as well,
please read out git-guide which explains how to achieve this:
@@ -70,6 +71,24 @@ Load:
Reboot unless you know what you are doing.
+
+Bluetooth modules can be seperately compiled and installed using below commands
+
+Build:
+ make bt
+
+Install:
+ sudo make btinstall
+
+Uninstall:
+ sudo make btuninstall
+
+Load:
+ sudo make btload
+
+Unload:
+ sudo make btunload
+
Drivers
-------
@@ -115,6 +134,15 @@ we provide b44 (the ethernet driverl).
The new rfkill drivers also provided and backported.
+Bluetooth drivers:
+bluetooth
+btusb
+hci_uart
+btsdio
+btuart_cs
+bluecard_cs
+bfusb
+
Firmware:
---------
--
1.6.0.4
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] compat-2.6: New targets to compile bluetooth alone
2009-12-24 11:24 [PATCH] compat-2.6: New targets to compile bluetooth alone Bala Shanmugam
@ 2009-12-29 1:59 ` Luis R. Rodriguez
0 siblings, 0 replies; 2+ messages in thread
From: Luis R. Rodriguez @ 2009-12-29 1:59 UTC (permalink / raw)
To: Bala Shanmugam
Cc: Luis Rodriguez, Jothikumar Mothilal, linux-bluetooth,
linux-wireless
On Thu, Dec 24, 2009 at 04:54:28PM +0530, Bala Shanmugam wrote:
> Compiling compat-pacakage consumes more time
> as both wireless and bluetooth modules are compiled.
>
> For someone who wants to use bluetooth alone
> compiling and installing wireless modules is unnecessary
> and is time consuming.
>
> New targets are declared to compile, install, uninstall, load
> and unload bluetooth modules seperately.
>
> Usage is updated in README.
> Signed-off-by: Bala Shanmugam <sbalashanmugam@atheros.com>
Applied, thanks
Luis
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2009-12-29 1:59 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-12-24 11:24 [PATCH] compat-2.6: New targets to compile bluetooth alone Bala Shanmugam
2009-12-29 1:59 ` Luis R. Rodriguez
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).