Bluetooth: Increase hci_tx stack size when CONFIG_NO_OPTIMIZATIONS

When optimizations are disabled more RAM is used and we get a stack
overflow on BT_HCI_TX_STACK_SIZE. To rectify this, increase the stack
size when CONFIG_NO_OPTIMIZATIONS.

This does not scale well, and will have to be replaced by a a more
general solution eventually, but in the mean time it follows the
existing best practice established by the GCOV infrastructure in
commit e908ea9aa5

Signed-off-by: Sebastian Bøe <sebastian.boe@nordicsemi.no>
This commit is contained in:
Sebastian Bøe 2019-02-07 12:44:48 +01:00 committed by Kumar Gala
commit 7644d02598

View file

@ -52,6 +52,7 @@ config BT_HCI_TX_STACK_SIZE
default 512 if BT_H4
default 512 if BT_H5
default 416 if BT_SPI
default 940 if BT_CTLR && NO_OPTIMIZATIONS
default 640 if BT_CTLR
default 512 if BT_USERCHAN
# Even if no driver is selected the following default is still