Enable smm-gateway SP testing
The SMM protocol uses a "carveout" for communication between the NWd and
SWd. The TS "uefi-test" app uses /dev/mem to get access to the buffer to
be used. To allow this, the kernel must be built with
"CONFIG_STRICT_DEVMEM" disabled.
This change implements the above by modifying the ".config" file during
the build.
Note: This setting gives access to all NWd memory to any user-space
application running under Linux with root privileges and thus introduces
security concerns. This only affects the test environment as normally
the linux-user space does not use the UEFI services.
Change-Id: I8326f5e57ba0a65fe90e70e9f9b10daff85f6373
Signed-off-by: Gyorgy Szing <Gyorgy.Szing@arm.com>
diff --git a/fvp_ffa.mk b/fvp_ffa.mk
index 43e3986..5ef3c04 100644
--- a/fvp_ffa.mk
+++ b/fvp_ffa.mk
@@ -269,3 +269,8 @@
make -C $(CURDIR)/../linux_poc clean
all: arm_ffa_user
+
+# Disable CONFIG_STRICT_DEVMEM option in the Linux kernel config. This allows userspace access to
+# the whole NS physical address space through /dev/mem.
+linux-defconfig:
+ cd $(LINUX_PATH) && ./scripts/config --disable CONFIG_STRICT_DEVMEM