summaryrefslogtreecommitdiffstats
path: root/discover/platform.c
diff options
context:
space:
mode:
authorJeremy Kerr <jk@ozlabs.org>2014-01-17 16:12:42 +0800
committerJeremy Kerr <jk@ozlabs.org>2014-01-30 21:59:10 +0800
commita984595cfb4910ba6f464c69c316f1613f10f894 (patch)
tree12af540bf1ac4f93aebb5f65585c9ebd751b8aff /discover/platform.c
parent67e015d08f9a9f53b1ec0a6c301ce1a9516ea69a (diff)
downloadtalos-petitboot-a984595cfb4910ba6f464c69c316f1613f10f894.tar.gz
talos-petitboot-a984595cfb4910ba6f464c69c316f1613f10f894.zip
discover/network: Use platform definition for DHCP architecture ID
Allow a platform to specify a DHCP architecture ID, as this is platform-specific. Signed-off-by: Jeremy Kerr <jk@ozlabs.org>
Diffstat (limited to 'discover/platform.c')
-rw-r--r--discover/platform.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/discover/platform.c b/discover/platform.c
index 66e776e..d52c9f6 100644
--- a/discover/platform.c
+++ b/discover/platform.c
@@ -102,6 +102,11 @@ int platform_init(void *ctx)
return 0;
}
+const struct platform *platform_get(void)
+{
+ return platform;
+}
+
int config_set(struct config *newconfig)
{
int rc;
OpenPOWER on IntegriCloud