Fix and improve libpayload platform support

- Fix various minor compile issues (eg. include necessary standard headers)
- Fix compilation of libpayload code paths
- Provide libpayload support in Makefile
- Add make target "libflashrom.a" which links non-CLI code to static

Corresponding to flashrom svn r1280.

Signed-off-by: Patrick Georgi <>
Tested-with-DOS-crosscompiler-by: Idwer Vollering <>
Acked-by: Carl-Daniel Hailfinger <>
diff --git a/udelay.c b/udelay.c
index feae827..5faa004 100644
--- a/udelay.c
+++ b/udelay.c
@@ -182,6 +182,7 @@
+#include <libpayload.h>
 void myusec_calibrate_delay(void)