Browse Source

kernel/modules: add kmod-random-tpm module

Add kernel module package for kmod-random-tpm.

Signed-off-by: Florian Eckert <[email protected]>
Signed-off-by: Martin Schiller <[email protected]>
Martin Schiller 8 years ago
parent
commit
503ac967c5
1 changed files with 16 additions and 0 deletions
  1. 16 0
      package/kernel/linux/modules/other.mk

+ 16 - 0
package/kernel/linux/modules/other.mk

@@ -899,6 +899,22 @@ endef
 
 
 $(eval $(call KernelPackage,random-omap))
 $(eval $(call KernelPackage,random-omap))
 
 
+define KernelPackage/random-tpm
+  SUBMENU:=$(OTHER_MENU)
+  TITLE:=Hardware Random Number Generator TPM support
+  KCONFIG:=CONFIG_HW_RANDOM_TPM
+  FILES:=$(LINUX_DIR)/drivers/char/hw_random/tpm-rng.ko
+  DEPENDS:= +kmod-random-core +kmod-tpm
+  AUTOLOAD:=$(call AutoProbe,tpm-rng)
+endef
+
+define KernelPackage/random-tpm/description
+ Kernel module for the Random Number Generator
+ in the Trusted Platform Module.
+endef
+
+$(eval $(call KernelPackage,random-tpm))
+
 define KernelPackage/thermal
 define KernelPackage/thermal
   SUBMENU:=$(OTHER_MENU)
   SUBMENU:=$(OTHER_MENU)
   TITLE:=Generic Thermal sysfs driver
   TITLE:=Generic Thermal sysfs driver