Skip to contentSkip to conversation

firmware: meson-sm: enable build as module

PATCH Superseded Kevin Hilman 1 participant 1 message Oct 26, 2020 Arm/Amlogic Meson SoC support

v2 of 3 Superseded Latest is v3 →

lore
Share & tools
lore

Kevin Hilman

author maintainer
#0 lore raw

PATCH v2 1/1 firmware: meson-sm: enable build as module

Enable secure module driver as module.
Default remains built-in.

---
v2: keep built-in as the default.

 drivers/firmware/meson/Kconfig    | 5 +++--
 drivers/firmware/meson/meson_sm.c | 1 +
 2 files changed, 4 insertions(+), 2 deletions(-)
drivers/firmware/meson/Kconfig +3 -2
index 2671dcd0ad92..f6f9d831ff8a 100644
@@ -3,8 +3,9 @@
 # Amlogic Secure Monitor driver
 #
 config MESON_SM
-	bool
-	default ARCH_MESON
+	tristate
+	depends on ARCH_MESON || COMPILE_TEST
+	default y
 	depends on ARM64_4K_PAGES
 	help
 	  Say y here to enable the Amlogic secure monitor driver
drivers/firmware/meson/meson_sm.c +1 -0
index 2854b56f6e0b..77aa5c6398aa 100644
@@ -331,3 +331,4 @@ static struct platform_driver meson_sm_driver = {
 	},
 };
 module_platform_driver_probe(meson_sm_driver, meson_sm_probe);
+MODULE_LICENSE("GPL v2");
Signature · 7 lines
2.28.0


_______________________________________________
linux-amlogic mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/linux-amlogic