mac802154: select CRYPTO when needed
authorArnd Bergmann <arnd@arndb.de>
Tue, 19 May 2015 12:18:35 +0000 (14:18 +0200)
committerMarcel Holtmann <marcel@holtmann.org>
Tue, 19 May 2015 17:35:48 +0000 (19:35 +0200)
commit73e85ed36a96324a2ba5990024f621bf9907fbd5
tree6956d7da79a10c380dbaf5d451632b32b60ef73f
parent39572ab30feb92a8d49bf2a59c9a492ba858c008
mac802154: select CRYPTO when needed

The mac802154 subsystem uses functions from the crypto layer and correctly
selects the individual crypto algorithms, but fails to build when the
crypto layer is disabled altogether:

crypto/built-in.o: In function `crypto_ctr_free':
:(.text+0x80): undefined reference to `crypto_drop_spawn'
crypto/built-in.o: In function `crypto_rfc3686_free':
:(.text+0xac): undefined reference to `crypto_drop_spawn'
crypto/built-in.o: In function `crypto_ctr_crypt':
:(.text+0x2f0): undefined reference to `blkcipher_walk_virt_block'
:(.text+0x2f8): undefined reference to `crypto_inc'

To solve that, this patch also selects the core crypto code,
like all other users of that code do.

Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Reviewed-by: Stefan Schmidt <stefan@osg.samsung.com>
Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
net/mac802154/Kconfig