Explorar o código

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 %!s(int64=8) %!d(string=hai) anos
pai
achega
503ac967c5
Modificáronse 1 ficheiros con 16 adicións e 0 borrados
  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))
 
+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
   SUBMENU:=$(OTHER_MENU)
   TITLE:=Generic Thermal sysfs driver