From 919923def3d76a95665c60e7ff3dd033c2d65d84 Mon Sep 17 00:00:00 2001 From: Kyösti Mälkki Date: Tue, 28 Jan 2014 10:02:53 +0200 Subject: option: Add arch-agnostic get_option() MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit We should not have pc80/ includes in console/. Change-Id: Id7da732b1ea094be01f45f9dbb49142f4e78f095 Signed-off-by: Kyösti Mälkki Reviewed-on: http://review.coreboot.org/5157 Tested-by: build bot (Jenkins) Reviewed-by: Stefan Reinauer --- src/include/option.h | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 src/include/option.h (limited to 'src/include/option.h') diff --git a/src/include/option.h b/src/include/option.h new file mode 100644 index 0000000000..83f3a84614 --- /dev/null +++ b/src/include/option.h @@ -0,0 +1,19 @@ +#ifndef _OPTION_H_ +#define _OPTION_H_ + +/* + * FIXME: get_option() needs to be abstracted better so that other non-volatile + * storage can be used. This will benefit machines without CMOS as well as those + * without a battery-backed CMOS (e.g. some laptops). + */ +#if CONFIG_USE_OPTION_TABLE +#include +#else +#include +static inline enum cb_err get_option(void *dest, const char *name) +{ + return CB_CMOS_OTABLE_DISABLED; +} +#endif + +#endif /* _OPTION_H_ */ -- cgit v1.2.3