mirror of
https://review.coreboot.org/flashrom.git
synced 2025-07-02 06:23:18 +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:

committed by
Patrick Georgi

parent
5cfc94a98b
commit
a9095a9545
@ -22,9 +22,11 @@
|
||||
#include <string.h>
|
||||
#include <stdlib.h>
|
||||
#include <sys/types.h>
|
||||
#if !defined (__DJGPP__)
|
||||
#if !defined (__DJGPP__) && !defined(__LIBPAYLOAD__)
|
||||
#include <unistd.h>
|
||||
#include <fcntl.h>
|
||||
#endif
|
||||
#if !defined (__DJGPP__)
|
||||
#include <errno.h>
|
||||
#endif
|
||||
#include "flash.h"
|
||||
@ -44,7 +46,7 @@ int io_fd;
|
||||
|
||||
void get_io_perms(void)
|
||||
{
|
||||
#if defined(__DJGPP__)
|
||||
#if defined(__DJGPP__) || defined(__LIBPAYLOAD__)
|
||||
/* We have full permissions by default. */
|
||||
return;
|
||||
#else
|
||||
|
Reference in New Issue
Block a user