From 78c3a044d2302bacf27ac2d9ef179bc35824af4c Mon Sep 17 00:00:00 2001 From: Samuel Mendoza-Jonas Date: Thu, 29 Nov 2018 15:36:31 +1100 Subject: discover/platform-powerpc: read bootdev config from IPMI boot mailbox The IPMI Get System Boot Options commands includes parameter 7, the "boot initiator mailbox". This can be used to hold arbitrary data to influence the boot order. Use this to provide an alternate bootdev configuration to Petitboot that will override the one saved to NVRAM. This provides more fine grained override options than the existing device-type based overrides. Signed-off-by: Samuel Mendoza-Jonas --- discover/platform.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'discover/platform.h') diff --git a/discover/platform.h b/discover/platform.h index f7d3d1c..5a5c990 100644 --- a/discover/platform.h +++ b/discover/platform.h @@ -31,6 +31,8 @@ const struct config *config_get(void); int config_set(struct config *config); void config_set_defaults(struct config *config); void config_set_autoboot(bool autoboot_enabled); +void config_populate_bootdev(struct config *config, + const struct param_list *pl); void config_populate_all(struct config *config, const struct param_list *pl); void params_update_network_values(struct param_list *pl, -- cgit v1.2.1