coreboot-kgpe-d16/payloads/coreinfo
Stefan Reinauer 04fb7a81c1 coreinfo: Use IS_ENABLED() to query Kconfig variables
This will make the code work with the different styles
of Kconfig (emit unset bools vs don't emit unset bools)

Roughly, the patch does this, and a little bit of fixing up:

perl -pi -e 's,ifdef (CONFIG_.+?)\b,if IS_ENABLED\($1\),g' `find . -name *.[ch]`
perl -pi -e 's,ifndef (CONFIG_.+?)\b,if !IS_ENABLED\($1\),g' `find . -name *.[ch]`

Change-Id: Ia461a33541f58ff39e984119c44ece7e6c05608a
Signed-off-by: Stefan Reinauer <stefan.reinauer@coreboot.org>
Reviewed-on: http://review.coreboot.org/10713
Tested-by: build bot (Jenkins)
Reviewed-by: Patrick Georgi <pgeorgi@google.com>
2015-07-01 00:36:36 +02:00
..
COPYING corinfo: Inital release of the coreinfo code 2008-03-20 00:11:05 +00:00
Kconfig Remove empty lines at end of file 2015-06-08 00:55:07 +02:00
Makefile Remove empty lines at end of file 2015-06-08 00:55:07 +02:00
README Remove empty lines at end of file 2015-06-08 00:55:07 +02:00
bootlog_module.c coreinfo: Use IS_ENABLED() to query Kconfig variables 2015-07-01 00:36:36 +02:00
cbfs_module.c coreinfo: Use IS_ENABLED() to query Kconfig variables 2015-07-01 00:36:36 +02:00
coreboot_module.c coreinfo: Use IS_ENABLED() to query Kconfig variables 2015-07-01 00:36:36 +02:00
coreinfo.c coreinfo: Use IS_ENABLED() to query Kconfig variables 2015-07-01 00:36:36 +02:00
coreinfo.h Remove address from GPLv2 headers 2015-05-21 20:50:25 +02:00
cpuid.S Remove address from GPLv2 headers 2015-05-21 20:50:25 +02:00
cpuinfo_module.c coreinfo: Use IS_ENABLED() to query Kconfig variables 2015-07-01 00:36:36 +02:00
lar_module.c coreinfo: Use IS_ENABLED() to query Kconfig variables 2015-07-01 00:36:36 +02:00
multiboot_module.c coreinfo: Use IS_ENABLED() to query Kconfig variables 2015-07-01 00:36:36 +02:00
nvram_module.c coreinfo: Use IS_ENABLED() to query Kconfig variables 2015-07-01 00:36:36 +02:00
pci_module.c coreinfo: Use IS_ENABLED() to query Kconfig variables 2015-07-01 00:36:36 +02:00
ramdump_module.c coreinfo: Use IS_ENABLED() to query Kconfig variables 2015-07-01 00:36:36 +02:00

README

This is a silly little program that demonstrates how cool libpayload is
and also serves a purpose.  It is fun and educational!

Requirements
------------

You should use the coreboot reference cross compiler. If you insist on using
your system compiler, some Linux distributions might require you to install
a package called gcc-multilib if you are on a 64bit system.

Build
-----

You need libpayload to build coreinfo. So, first, you need follow the README of 
libpayload to build it but install libpayload into its own directory by doing 
this:

 $ make DESTDIR=/path/to/libpayload/install install

Then you can build coreinfo now:

 $ cd coreinfo

 $ make menuconfig
 
 $ make