mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-12-27 21:14:44 +08:00
1fb78fb6c6
With CONFIG_SERIAL_DEV_BUS=m, the hci_serdev.o file does not actually
get built into hci_uart.o as the Makefile doesn't pick it up, leading
to a link error with anything referring to it:
ERROR: "hci_uart_register_device" [drivers/bluetooth/hci_nokia.ko] undefined!
scripts/Makefile.modpost:91: recipe for target '__modpost' failed
Changing this in the Makefile would cause another problem when
hci_uart itself is built-in and cannot reference symbols from the
serdev module.
This tries to address both problems by introducing a new hidden
Kconfig symbol that controls both the compilation of hci_serdev.o
and whether the Nokia driver can be selected. This seems to address
the problem for me, though there might be a better way to do it.
Fixes: 7bb318680e
("Bluetooth: add nokia driver")
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
46 lines
1.5 KiB
Makefile
46 lines
1.5 KiB
Makefile
#
|
|
# Makefile for the Linux Bluetooth HCI device drivers.
|
|
#
|
|
|
|
obj-$(CONFIG_BT_HCIVHCI) += hci_vhci.o
|
|
obj-$(CONFIG_BT_HCIUART) += hci_uart.o
|
|
obj-$(CONFIG_BT_HCIBCM203X) += bcm203x.o
|
|
obj-$(CONFIG_BT_HCIBPA10X) += bpa10x.o
|
|
obj-$(CONFIG_BT_HCIBFUSB) += bfusb.o
|
|
obj-$(CONFIG_BT_HCIDTL1) += dtl1_cs.o
|
|
obj-$(CONFIG_BT_HCIBT3C) += bt3c_cs.o
|
|
obj-$(CONFIG_BT_HCIBLUECARD) += bluecard_cs.o
|
|
obj-$(CONFIG_BT_HCIBTUART) += btuart_cs.o
|
|
|
|
obj-$(CONFIG_BT_HCIBTUSB) += btusb.o
|
|
obj-$(CONFIG_BT_HCIBTSDIO) += btsdio.o
|
|
|
|
obj-$(CONFIG_BT_INTEL) += btintel.o
|
|
obj-$(CONFIG_BT_ATH3K) += ath3k.o
|
|
obj-$(CONFIG_BT_MRVL) += btmrvl.o
|
|
obj-$(CONFIG_BT_MRVL_SDIO) += btmrvl_sdio.o
|
|
obj-$(CONFIG_BT_WILINK) += btwilink.o
|
|
obj-$(CONFIG_BT_QCOMSMD) += btqcomsmd.o
|
|
obj-$(CONFIG_BT_BCM) += btbcm.o
|
|
obj-$(CONFIG_BT_RTL) += btrtl.o
|
|
obj-$(CONFIG_BT_QCA) += btqca.o
|
|
|
|
obj-$(CONFIG_BT_HCIUART_NOKIA) += hci_nokia.o
|
|
|
|
btmrvl-y := btmrvl_main.o
|
|
btmrvl-$(CONFIG_DEBUG_FS) += btmrvl_debugfs.o
|
|
|
|
hci_uart-y := hci_ldisc.o
|
|
hci_uart-$(CONFIG_BT_HCIUART_SERDEV) += hci_serdev.o
|
|
hci_uart-$(CONFIG_BT_HCIUART_H4) += hci_h4.o
|
|
hci_uart-$(CONFIG_BT_HCIUART_BCSP) += hci_bcsp.o
|
|
hci_uart-$(CONFIG_BT_HCIUART_LL) += hci_ll.o
|
|
hci_uart-$(CONFIG_BT_HCIUART_ATH3K) += hci_ath.o
|
|
hci_uart-$(CONFIG_BT_HCIUART_3WIRE) += hci_h5.o
|
|
hci_uart-$(CONFIG_BT_HCIUART_INTEL) += hci_intel.o
|
|
hci_uart-$(CONFIG_BT_HCIUART_BCM) += hci_bcm.o
|
|
hci_uart-$(CONFIG_BT_HCIUART_QCA) += hci_qca.o
|
|
hci_uart-$(CONFIG_BT_HCIUART_AG6XX) += hci_ag6xx.o
|
|
hci_uart-$(CONFIG_BT_HCIUART_MRVL) += hci_mrvl.o
|
|
hci_uart-objs := $(hci_uart-y)
|