coreboot/payloads/libpayload
Patrick Georgi c2ab04e697 UPSTREAM: build system: don't run xcompile or git for %clean/%config targets
It takes a long time for no gain: We don't need to update the
submodules, we don't need to fetch the revision, we don't need to find
the compilers, when all we want to do is to manipulate the .config file
or clean the build directory.

BUG=none
BRANCH=none
TEST=none
CQ-DEPEND=CL:432758

Change-Id: I2a2e65d1f5945885b43e32ecb8406f83f973c106
Signed-off-by: Patrick Georgi <pgeorgi@chromium.org>
Original-Commit-Id: 0ffef882d8
Original-Change-Id: Ie1bd446a0d49a81e3cccdb56fe2c43ffd83b6c98
Original-Signed-off-by: Patrick Georgi <pgeorgi@chromium.org>
Original-Reviewed-on: https://review.coreboot.org/18182
Original-Tested-by: build bot (Jenkins)
Original-Reviewed-by: Paul Menzel <paulepanter@users.sourceforge.net>
Original-Reviewed-by: Martin Roth <martinroth@google.com>
Reviewed-on: https://chromium-review.googlesource.com/431983
2017-01-26 18:43:51 -08:00
..
arch UPSTREAM: libpayload: head.S: Avoid clearing BSS (and heap) again 2016-08-15 18:35:54 -07:00
bin
configs UPSTREAM: libpayload: Enable USB HID in veyron configuration 2017-01-20 08:47:59 -08:00
crypto
curses UPSTREAM: libpayload/.../PDCurses: Improve compatibility with ncurses 2016-12-16 04:50:58 -08:00
drivers UPSTREAM: libpayload: Get current tick from high register in generic timer 2017-01-19 09:22:27 -08:00
gdb
include libpayload: Add VPD address into lib_sysinfo 2017-01-09 23:47:22 -08:00
libc libpayload: Add VPD address into lib_sysinfo 2017-01-09 23:47:22 -08:00
libcbfs UPSTREAM: libpayload: cbfs: Fix minor memory leak in some edge cases 2016-08-15 07:36:11 -07:00
liblz4
liblzma UPSTREAM: libpayload: lzma: Allocate scratchpad on the heap 2016-08-13 20:28:18 -07:00
libpci
sample
tests
Doxyfile
Kconfig UPSTREAM: libpayload: split "Drivers" config section in Kconfig 2016-08-10 00:27:33 -07:00
LICENSE_GPL
LICENSES
Makefile UPSTREAM: build system: don't run xcompile or git for %clean/%config targets 2017-01-26 18:43:51 -08:00
Makefile.inc
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
------------

 $ git clone http://review.coreboot.org/p/coreboot.git

 $ cd coreboot/payloads/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.