From d83d4070bfc116a32ca7b365cd7a614e1b6202ed Mon Sep 17 00:00:00 2001 From: oxygene Date: Thu, 30 Sep 2010 17:03:32 +0000 Subject: 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. Signed-off-by: Patrick Georgi Acked-by: Carl-Daniel Hailfinger git-svn-id: https://code.coreboot.org/svn/flashrom/trunk@1184 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1 --- hwaccess.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'hwaccess.c') diff --git a/hwaccess.c b/hwaccess.c index 3a61e60..bbb91a6 100644 --- a/hwaccess.c +++ b/hwaccess.c @@ -22,9 +22,11 @@ #include #include #include -#if !defined (__DJGPP__) +#if !defined (__DJGPP__) && !defined(__LIBPAYLOAD__) #include #include +#endif +#if !defined (__DJGPP__) #include #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 -- cgit v1.2.1