Commit 52d3ef5c authored by Arnd Bergmann's avatar Arnd Bergmann Committed by Marcel Holtmann

Bluetooth: make sure 6LOWPAN_IPHC is built-in if needed

Commit 97550887 "Bluetooth: make bluetooth 6lowpan as an option"
ensures that 6LOWPAN_IPHC is turned on when we have BT_6LOWPAN
enabled in Kconfig, but it allows building the IPHC code as
a loadable module even if the entire Bluetooth stack is built-in,
and that causes a link error.

We can solve that by moving the 'select' statement into CONFIG_BT,
which is a "tristate" option to enforce that 6LOWPAN_IPHC can
only be a module if BT also is a module.
Signed-off-by: default avatarArnd Bergmann <arnd@arndb.de>
Signed-off-by: default avatarMarcel Holtmann <marcel@holtmann.org>
parent dcf4adbf
...@@ -6,6 +6,7 @@ menuconfig BT ...@@ -6,6 +6,7 @@ menuconfig BT
tristate "Bluetooth subsystem support" tristate "Bluetooth subsystem support"
depends on NET && !S390 depends on NET && !S390
depends on RFKILL || !RFKILL depends on RFKILL || !RFKILL
select 6LOWPAN_IPHC if BT_6LOWPAN
select CRC16 select CRC16
select CRYPTO select CRYPTO
select CRYPTO_BLKCIPHER select CRYPTO_BLKCIPHER
...@@ -42,7 +43,6 @@ menuconfig BT ...@@ -42,7 +43,6 @@ menuconfig BT
config BT_6LOWPAN config BT_6LOWPAN
bool "Bluetooth 6LoWPAN support" bool "Bluetooth 6LoWPAN support"
depends on BT && IPV6 depends on BT && IPV6
select 6LOWPAN_IPHC
help help
IPv6 compression over Bluetooth. IPv6 compression over Bluetooth.
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment