if (handler->pending_boot)
boot_cancel(handler->pending_boot);
- platform_finalise_config();
+ platform_pre_boot();
handler->pending_boot = boot(handler, opt, cmd, handler->dry_run,
boot_status, handler);
return rc;
}
-static void finalise_config(struct platform *p, const struct config *config)
+static void pre_boot(struct platform *p, const struct config *config)
{
struct platform_powerpc *platform = to_platform_powerpc(p);
.probe = probe,
.load_config = load_config,
.save_config = save_config,
- .finalise_config = finalise_config,
+ .pre_boot = pre_boot,
.get_sysinfo = get_sysinfo,
};
return platform;
}
-void platform_finalise_config(void)
+void platform_pre_boot(void)
{
const struct config *config = config_get();
- if (platform && config && platform->finalise_config)
- platform->finalise_config(platform, config);
+ if (platform && config && platform->pre_boot)
+ platform->pre_boot(platform, config);
}
int platform_get_sysinfo(struct system_info *info)
bool (*probe)(struct platform *, void *);
int (*load_config)(struct platform *, struct config *);
int (*save_config)(struct platform *, struct config *);
- void (*finalise_config)(struct platform *,
+ void (*pre_boot)(struct platform *,
const struct config *);
int (*get_sysinfo)(struct platform *, struct system_info *);
uint16_t dhcp_arch_id;
int platform_fini(void);
const struct platform *platform_get(void);
int platform_get_sysinfo(struct system_info *info);
-void platform_finalise_config(void);
+void platform_pre_boot(void);
/* configuration interface */
const struct config *config_get(void);