Add the coreboot config to CBFS
The CBFS will contain a new file, named 'config' of type 'raw' that is a
stripped-down version of the .config file that was used to build the
current coreboot image. For space savings, all the comments and empty
lines were removed from the original config, except for one that lists
the coreboot git revision that's built into the image.
This is done in order to easily reproduce the work of someone else when
only having their ROM image. In theory the reproduce could even be
automated by a new dedicated make target.
This should work even with abuild now.
Signed-off-by: Cristian Măgherușan-Stanciu <firstname.lastname@example.org>
Tested-by: build bot (Jenkins)
Reviewed-by: Marc Jones <email@example.com>
diff --git a/src/Kconfig b/src/Kconfig
index 9abbc21..7e6214a 100644
@@ -106,6 +106,12 @@
that decompression might slow down booting if the boot flash
is connected through a slow Link (i.e. SPI)
+ bool "Include the coreboot config file into the ROM image"
+ default y
+ Include in CBFS the coreboot config file that was used to compile the ROM image