summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--payloads/coreinfo/Kconfig24
-rw-r--r--payloads/coreinfo/coreinfo.c8
2 files changed, 28 insertions, 4 deletions
diff --git a/payloads/coreinfo/Kconfig b/payloads/coreinfo/Kconfig
index 4281c66829..0cca33c016 100644
--- a/payloads/coreinfo/Kconfig
+++ b/payloads/coreinfo/Kconfig
@@ -36,6 +36,30 @@ config SHOW_DATE_TIME
This option will increase the ELF file size by ca. 256 bytes.
+config PAYLOAD_INFO_NAME
+ string "Payload name"
+ default "coreinfo"
+ help
+ The name of this payload for use in (e.g.) Bayou.
+
+config PAYLOAD_INFO_LISTNAME
+ string "Payload menu entry name"
+ default "System Information"
+ help
+ The name of this payload's menu entry for use in (e.g.) Bayou.
+
+config PAYLOAD_INFO_DESC
+ string "Payload description"
+ default "Display information about the system"
+ help
+ The description of this payload for use in (e.g.) Bayou.
+
+config PAYLOAD_INFO_VERSION
+ string "Payload version"
+ default "0.1"
+ help
+ The version number of this payload.
+
endmenu
menu "Modules"
diff --git a/payloads/coreinfo/coreinfo.c b/payloads/coreinfo/coreinfo.c
index 0c5136c80e..d158b29f8e 100644
--- a/payloads/coreinfo/coreinfo.c
+++ b/payloads/coreinfo/coreinfo.c
@@ -221,7 +221,7 @@ static void loop(void)
{
int key;
- center(0, "coreinfo v0.1");
+ center(0, CONFIG_PAYLOAD_INFO_NAME " " CONFIG_PAYLOAD_INFO_VERSION);
refresh();
print_menu();
@@ -301,6 +301,6 @@ int main(void)
return 0;
}
-PAYLOAD_INFO(name, "coreinfo");
-PAYLOAD_INFO(listname, "System Information");
-PAYLOAD_INFO(desc, "Display information about the system");
+PAYLOAD_INFO(name, CONFIG_PAYLOAD_INFO_NAME);
+PAYLOAD_INFO(listname, CONFIG_PAYLOAD_INFO_LISTNAME);
+PAYLOAD_INFO(desc, CONFIG_PAYLOAD_INFO_DESC);