Enabling this would make the kernel trust CPU's random number generator
for the purposes of initializing CRNG.

Signed-off-by: Anuj Mittal <anuj.mit...@intel.com>
---
 features/random/random.cfg | 1 +
 features/random/random.scc | 4 ++++
 2 files changed, 5 insertions(+)
 create mode 100644 features/random/random.cfg
 create mode 100644 features/random/random.scc

diff --git a/features/random/random.cfg b/features/random/random.cfg
new file mode 100644
index 00000000..f79be1a5
--- /dev/null
+++ b/features/random/random.cfg
@@ -0,0 +1 @@
+CONFIG_RANDOM_TRUST_CPU=y
diff --git a/features/random/random.scc b/features/random/random.scc
new file mode 100644
index 00000000..ac324ccd
--- /dev/null
+++ b/features/random/random.scc
@@ -0,0 +1,4 @@
+define KFEATURE_DESCRIPTION "Trust CPU's random number generator for 
initializing kernel's CRNG"
+define KFEATURE_COMPATIBILITY arch
+
+kconf hardware random.cfg
-- 
2.20.1

-- 
_______________________________________________
linux-yocto mailing list
linux-yocto@yoctoproject.org
https://lists.yoctoproject.org/listinfo/linux-yocto

Reply via email to