kernel: add crypto-cmac
authorHauke Mehrtens <hauke@hauke-m.de>
Sat, 4 Jul 2015 22:33:00 +0000 (22:33 +0000)
committerHauke Mehrtens <hauke@hauke-m.de>
Sat, 4 Jul 2015 22:33:00 +0000 (22:33 +0000)
The bluetooth driver needs this new crypto lib in kernel 4.1

Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
SVN-Revision: 46180

package/kernel/linux/modules/crypto.mk
package/kernel/linux/modules/other.mk

index 22c790d2ee838addabcdf1a876f4254b5af82082..074eb23233886c4548e2303b0e67625f6e20c752 100644 (file)
@@ -408,6 +408,18 @@ endef
 $(eval $(call KernelPackage,crypto-hmac))
 
 
+define KernelPackage/crypto-cmac
+  TITLE:=Support for Cipher-based Message Authentication Code (CMAC)
+  DEPENDS:=+kmod-crypto-hash
+  KCONFIG:=CONFIG_CRYPTO_CMAC
+  FILES:=$(LINUX_DIR)/crypto/cmac.ko
+  AUTOLOAD:=$(call AutoLoad,09,cmac)
+  $(call AddDepends/crypto)
+endef
+
+$(eval $(call KernelPackage,crypto-cmac))
+
+
 define KernelPackage/crypto-gcm
   TITLE:=GCM/GMAC CryptoAPI module
   DEPENDS:=+kmod-crypto-ctr +kmod-crypto-ghash +kmod-crypto-null
index d05b0d5758d53a0c61db9f0631b24cabb219430c..473f063f55e5070e2fab3a7666c30e4c1bcd2087 100644 (file)
@@ -30,7 +30,7 @@ $(eval $(call KernelPackage,6lowpan))
 define KernelPackage/bluetooth
   SUBMENU:=$(OTHER_MENU)
   TITLE:=Bluetooth support
-  DEPENDS:=@USB_SUPPORT +kmod-usb-core +kmod-crypto-hash +kmod-crypto-ecb +kmod-lib-crc16 +kmod-hid
+  DEPENDS:=@USB_SUPPORT +kmod-usb-core +kmod-crypto-hash +kmod-crypto-ecb +kmod-lib-crc16 +kmod-hid +!LINUX_3_18:kmod-crypto-cmac
   KCONFIG:= \
        CONFIG_BLUEZ \
        CONFIG_BLUEZ_L2CAP \