coreboot-kgpe-d16/payloads/coreinfo
Jacob Garber bd62472f76 coreinfo/coreinfo.c: Correct main function signature
libpayload passes argc and argv to main(), and ignoring these arguments
causes a compile time error when using LTO.

Change-Id: I5d2b30158ebabe1d1534a9684874018483ad769b
Signed-off-by: Jacob Garber <jgarber1@ualberta.ca>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/38292
Reviewed-by: HAOUAS Elyes <ehaouas@noos.fr>
Reviewed-by: Angel Pons <th3fanbus@gmail.com>
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
2020-02-04 16:11:58 +00:00
..
COPYING
Kconfig
Makefile Makefile.inc, payloads: Enable -Wvla 2019-08-20 20:57:01 +00:00
README payloads/coreinfo/README: Remove trailing whitespace 2018-04-27 09:09:45 +00:00
bootlog_module.c payloads: Replace all IS_ENABLED(CONFIG_XXX) with CONFIG(XXX) 2019-03-07 17:15:30 +00:00
cbfs_module.c payloads: Replace all IS_ENABLED(CONFIG_XXX) with CONFIG(XXX) 2019-03-07 17:15:30 +00:00
coreboot_module.c payloads/coreinfo: Make internal functions static 2019-07-07 20:20:44 +00:00
coreinfo.c coreinfo/coreinfo.c: Correct main function signature 2020-02-04 16:11:58 +00:00
coreinfo.h payloads/coreinfo: Use fixed-width integers for cpuid 2019-07-07 20:19:05 +00:00
cpuid.S
cpuinfo_module.c payloads/coreinfo: Use fixed-width integers for cpuid 2019-07-07 20:19:05 +00:00
multiboot_module.c payloads/coreinfo: Make internal functions static 2019-07-07 20:20:44 +00:00
nvram_module.c payloads: Replace all IS_ENABLED(CONFIG_XXX) with CONFIG(XXX) 2019-03-07 17:15:30 +00:00
pci_module.c payloads/coreinfo: Use correct integer types for loop indices 2019-07-07 20:19:49 +00:00
ramdump_module.c payloads: Replace all IS_ENABLED(CONFIG_XXX) with CONFIG(XXX) 2019-03-07 17:15:30 +00:00
timestamps_module.c payloads/coreinfo: Use correct integer types for loop indices 2019-07-07 20:19:49 +00: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