coreboot-kgpe-d16/payloads/coreinfo
Elyes Haouas b66a5551d5 payloads/coreinfo: Use C99 flexible arrays
Use C99 flexible arrays instead of older style of one-element or
zero-length arrays.
It allows the compiler to generate errors when the flexible array does
not occur at the end in the structure.

Change-Id: I17811256b04a17539d3ed77f406892ae77e97515
Signed-off-by: Elyes Haouas <ehaouas@noos.fr>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/76848
Reviewed-by: Felix Singer <service+coreboot-gerrit@felixsinger.de>
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
2023-08-01 12:40:59 +00:00
..
.gitignore coreinfo: Use libpayload's new `Makefile.payload` 2021-02-07 16:22:56 +00:00
AUTHORS
COPYING
Kconfig coreinfo: Add support for link time optimization 2020-11-02 22:10:23 +00:00
Makefile util/kconfig: Uprev to Linux 5.13's kconfig 2021-07-13 20:28:14 +00:00
README treewide: Remove trailing whitespace 2021-02-17 17:30:05 +00:00
bootlog_module.c payloads/coreinfo: Use C99 flexible arrays 2023-08-01 12:40:59 +00:00
cbfs_module.c payloads/coreinfo: Use C99 flexible arrays 2023-08-01 12:40:59 +00:00
coreboot_module.c payloads/coreinfo/coreboot_module.c: Remove 'break' after 'return' 2022-05-16 02:56:31 +00:00
coreinfo.c
coreinfo.h
cpuid.S
cpuinfo_module.c
multiboot_module.c
nvram_module.c
pci_module.c
ramdump_module.c
timestamps_module.c

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