1
0
mirror of https://review.coreboot.org/flashrom.git synced 2025-07-01 22:21:16 +02:00

Add support for building flashrom against libpayload

This doesn't include changes to the frontend which must be
done separately, so this won't work out of the box.
This code was tested on hardware.

Corresponding to flashrom svn r1184.

Signed-off-by: Patrick Georgi <patrick.georgi@coresystems.de>
Acked-by: Carl-Daniel Hailfinger <c-d.hailfinger.devel.2006@gmx.net>
This commit is contained in:
Patrick Georgi
2010-09-30 17:03:32 +00:00
committed by Patrick Georgi
parent 5cfc94a98b
commit a9095a9545
6 changed files with 74 additions and 5 deletions

View File

@ -134,6 +134,7 @@ int show_id(uint8_t *bios, int size, int force)
}
#endif
#ifndef __LIBPAYLOAD__
int read_romlayout(char *name)
{
FILE *romlayout;
@ -181,6 +182,7 @@ int read_romlayout(char *name)
return 0;
}
#endif
int find_romentry(char *name)
{