summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorNico Huber <nico.h@gmx.de>2017-07-17 23:39:02 +0200
committerNico Huber <nico.h@gmx.de>2017-09-28 11:47:07 +0000
commitbc652b97172b70374c2dbf05dbc225c793be4308 (patch)
treeadce3e47091f80e2120e4a8e8b5824b833078406 /src
parent0b42c8ae0c0858318a59263285d08d274801ddee (diff)
downloadcoreboot-bc652b97172b70374c2dbf05dbc225c793be4308.tar.xz
Kconfig: Move libhwbase related options into lib/Kconfig
More will follow so better move them where they are used. Also remove defaults and add dependencies to not clutter .config files up that don't have any of these options selected. Change-Id: I3a255c821cc26aeb66e4fd6adf7142d7e856f5ac Signed-off-by: Nico Huber <nico.h@gmx.de> Reviewed-on: https://review.coreboot.org/20625 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Paul Menzel <paulepanter@users.sourceforge.net> Reviewed-by: Arthur Heymans <arthur@aheymans.xyz>
Diffstat (limited to 'src')
-rw-r--r--src/Kconfig14
-rw-r--r--src/lib/Kconfig18
2 files changed, 18 insertions, 14 deletions
diff --git a/src/Kconfig b/src/Kconfig
index 015c38f458..adeeb7c687 100644
--- a/src/Kconfig
+++ b/src/Kconfig
@@ -1144,20 +1144,6 @@ config CHECKLIST_DATA_FILE_LOCATION
required and not implemented if a weak implementation is found in the
resulting image.
-config RAMSTAGE_ADA
- def_bool n
- help
- Selected by features that use Ada code in ramstage.
-
-config RAMSTAGE_LIBHWBASE
- def_bool n
- select RAMSTAGE_ADA
- help
- Selected by features that require `libhwbase` in ramstage.
-
-config HWBASE_DYNAMIC_MMIO
- def_bool y
-
config UNCOMPRESSED_RAMSTAGE
bool
diff --git a/src/lib/Kconfig b/src/lib/Kconfig
index 6d5f0344f0..a1034a9b88 100644
--- a/src/lib/Kconfig
+++ b/src/lib/Kconfig
@@ -5,3 +5,21 @@ config NO_EDID_FILL_FB
Don't include default fill_lb_framebuffer() implementation. Select
this if your drivers uses MAINBOARD_DO_NATIVE_VGA_INIT but provides
its own fill_lb_framebuffer() implementation.
+
+config RAMSTAGE_ADA
+ bool
+ help
+ Selected by features that use Ada code in ramstage.
+
+config RAMSTAGE_LIBHWBASE
+ bool
+ select RAMSTAGE_ADA
+ help
+ Selected by features that require `libhwbase` in ramstage.
+
+if RAMSTAGE_LIBHWBASE
+
+config HWBASE_DYNAMIC_MMIO
+ def_bool y
+
+endif