diff --git a/src/console/console.c b/src/console/console.c index 38ac3e7d35..081113c6db 100644 --- a/src/console/console.c +++ b/src/console/console.c @@ -25,18 +25,7 @@ #ifndef __PRE_RAM__ #include #include - -/* - * 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 -static inline enum cb_err get_option(void *dest, const char *name) - { return CB_CMOS_OTABLE_DISABLED; } -#endif +#include /* initialize the console */ void console_init(void) diff --git a/src/drivers/uart/util.c b/src/drivers/uart/util.c index c577048fb5..e09b686a9c 100644 --- a/src/drivers/uart/util.c +++ b/src/drivers/uart/util.c @@ -18,7 +18,7 @@ #include #include #if CONFIG_USE_OPTION_TABLE -#include +#include #include "option_table.h" #endif 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_ */