[linux-yocto] yocto-kernel-cache][PATCH] features: add new rpmb feature
Tomas Winkler
tomas.winkler at intel.com
Sat Jul 23 05:02:45 PDT 2016
Replay Protected Memory Block (RPMB) subsystem
The feature provides 3 configurations
1. Base : enables the subsystem
2. UAPI : enables user space api via /dev/rpmbX
3. Sim : RPMB HW simulation device
Signed-off-by: Tomas Winkler <tomas.winkler at intel.com>
---
features/rpmb/rpmb-base.cfg | 1 +
features/rpmb/rpmb-base.scc | 4 ++++
features/rpmb/rpmb-sim.cfg | 1 +
features/rpmb/rpmb-sim.scc | 6 ++++++
features/rpmb/rpmb-uapi.cfg | 2 ++
features/rpmb/rpmb-uapi.scc | 6 ++++++
6 files changed, 20 insertions(+)
create mode 100644 features/rpmb/rpmb-base.cfg
create mode 100644 features/rpmb/rpmb-base.scc
create mode 100644 features/rpmb/rpmb-sim.cfg
create mode 100644 features/rpmb/rpmb-sim.scc
create mode 100644 features/rpmb/rpmb-uapi.cfg
create mode 100644 features/rpmb/rpmb-uapi.scc
diff --git a/features/rpmb/rpmb-base.cfg b/features/rpmb/rpmb-base.cfg
new file mode 100644
index 000000000000..99e06c3c4d17
--- /dev/null
+++ b/features/rpmb/rpmb-base.cfg
@@ -0,0 +1 @@
+CONFIG_RPMB=y
diff --git a/features/rpmb/rpmb-base.scc b/features/rpmb/rpmb-base.scc
new file mode 100644
index 000000000000..d4a27715b635
--- /dev/null
+++ b/features/rpmb/rpmb-base.scc
@@ -0,0 +1,4 @@
+define KFEATURE_DESCRIPTION "Enable Replay Protected Memory Block (RPMB) subsystem"
+define KFEATURE_COMPATIBILITY all
+
+kconf hardware rpmb-base.cfg
diff --git a/features/rpmb/rpmb-sim.cfg b/features/rpmb/rpmb-sim.cfg
new file mode 100644
index 000000000000..784aef008d86
--- /dev/null
+++ b/features/rpmb/rpmb-sim.cfg
@@ -0,0 +1 @@
+CONFIG_RPMB_SIM=m
diff --git a/features/rpmb/rpmb-sim.scc b/features/rpmb/rpmb-sim.scc
new file mode 100644
index 000000000000..0b9fa28d2066
--- /dev/null
+++ b/features/rpmb/rpmb-sim.scc
@@ -0,0 +1,6 @@
+define KFEATURE_DESCRIPTION "Enable Replay Protected Memory Block (RPMB) Simulation Device"
+define KFEATURE_COMPATIBILITY all
+
+include features/rpmb/rpmb-base.scc
+
+kconf hardware rpmb-sim.cfg
diff --git a/features/rpmb/rpmb-uapi.cfg b/features/rpmb/rpmb-uapi.cfg
new file mode 100644
index 000000000000..4206e2396128
--- /dev/null
+++ b/features/rpmb/rpmb-uapi.cfg
@@ -0,0 +1,2 @@
+CONFIG_RPMB_INTF_DEV=y
+
diff --git a/features/rpmb/rpmb-uapi.scc b/features/rpmb/rpmb-uapi.scc
new file mode 100644
index 000000000000..02b68f9bca44
--- /dev/null
+++ b/features/rpmb/rpmb-uapi.scc
@@ -0,0 +1,6 @@
+define KFEATURE_DESCRIPTION "Enable Replay Protected Memory Block (RPMB) char device"
+define KFEATURE_COMPATIBILITY all
+
+include features/rpmb/rpmb-base.scc
+
+kconf hardware rpmb-uapi.cfg
--
2.7.4
More information about the linux-yocto
mailing list