discover: Use platform code to read sysinfo type and identifier
[petitboot] / discover / platform.c
index 0dced1697f6458c8c4dc3291758da593f1fa47aa..65e9ed4acb4af5662b9a1a3006715226b9c9954d 100644 (file)
@@ -143,6 +143,13 @@ const struct platform *platform_get(void)
        return platform;
 }
 
+int platform_get_sysinfo(struct system_info *info)
+{
+       if (platform && platform->get_sysinfo)
+               return platform->get_sysinfo(platform, info);
+       return -1;
+}
+
 int config_set(struct config *newconfig)
 {
        int rc;