coreboot-kgpe-d16/payloads/libpayload
Nico Huber 593f577ffa libpayload: Fix use of virtual pointers in sysinfo
In I4c456f5, I falsely identified struct cb_string.string as a pointer
which it is not. So we don't need phys_to_virt() here.

Change-Id: I3e2b6226ae2b0672dfc6e0fa4f6990e14e1b7089
Signed-off-by: Nico Huber <nico.huber@secunet.com>
Reviewed-on: http://review.coreboot.org/1987
Tested-by: build bot (Jenkins)
Reviewed-by: Stefan Reinauer <stefan.reinauer@coreboot.org>
2012-12-10 16:45:24 +01:00
..
arch libpayload: Fix use of virtual pointers in sysinfo 2012-12-10 16:45:24 +01:00
bin Clean up libpayload lpgcc and lpas scripts. 2012-12-08 06:56:34 +01:00
configs Change TARGET_I386 to ARCH_X86 2012-11-30 23:20:54 +01:00
crypto Change TARGET_I386 to ARCH_X86 2012-11-30 23:20:54 +01:00
curses libpayload: Don't let USB/PC/serial keyboards overwrite each other 2012-12-07 20:41:46 +01:00
drivers libpayload: Fix lookup by label in CMOS layouts 2012-11-30 06:05:50 +01:00
include libpayload: Fix renaming of REG_CLASS_DEV to REG_SUBCLASS 2012-12-10 16:45:00 +01:00
lib Discard .note sections when linking. 2012-11-07 18:30:11 +01:00
libc Change TARGET_I386 to ARCH_X86 2012-11-30 23:20:54 +01:00
libcbfs Refactor the endianness conversion functions and header files. 2012-11-08 19:49:51 +01:00
liblzma libpayload: Add liblzma, libcbfs 2011-08-04 08:11:21 +02:00
libpci libpayload: minor cleanups 2012-04-04 00:40:31 +02:00
sample
util Respect linker order 2011-12-21 16:27:01 +01:00
Config.in Change TARGET_I386 to ARCH_X86 2012-11-30 23:20:54 +01:00
Doxyfile
LICENSES
Makefile Fixes to the libpayload build system 2011-07-03 14:47:48 +02:00
Makefile.inc Change TARGET_I386 to ARCH_X86 2012-11-30 23:20:54 +01:00
README Update repo path in libpayload readme. 2011-03-29 19:29:01 +00:00

README

-------------------------------------------------------------------------------
libpayload README
-------------------------------------------------------------------------------

libpayload is a minimal library to support standalone payloads
that can be booted with firmware like coreboot. It handles the setup
code, and provides common C library symbols such as malloc() and printf().

Note: This is _not_ a standard library for use with an operating system,
rather it's only useful for coreboot payload development!
See http://coreboot.org for details on coreboot.


Installation
------------

 $ svn co svn://coreboot.org/coreboot/trunk/payloads/libpayload

 $ cd libpayload

 $ make menuconfig

 $ make

 $ sudo make install (optional, will install into /opt per default)

As libpayload is for 32bit x86 systems only, you might have to install the
32bit libgcc version, otherwise your payloads will fail to compile.
On Debian systems you'd do 'apt-get install gcc-multilib' for example.


Usage
-----

Here's an example of a very simple payload (hello.c) and how to build it:

 #include <libpayload.h>

 int main(void)
 {
     printf("Hello, world!\n");
     return 0;
 }

Building the payload using the 'lpgcc' compiler wrapper:

 $ lpgcc -o hello.elf hello.c

Please see the sample/ directory for details.


Website and Mailing List
------------------------

The main website is http://www.coreboot.org/Libpayload.

For additional information, patches, and discussions, please join the
coreboot mailing list at http://coreboot.org/Mailinglist, where most
libpayload developers are subscribed.


Copyright and License
---------------------

See LICENSES.