Paul Kocialkowski (contact@paulk.fr) just uploaded a new patch set to gerrit, which you can find at http://review.coreboot.org/11114
-gerrit
commit a8a4962635c0315ba86c78dda454548238208c96 Author: Paul Kocialkowski contact@paulk.fr Date: Mon Aug 3 14:10:17 2015 +0200
libpayload: Missing headers fixup
Some Kconfig headers and libpayload config includes were missing, resulting in undeclared macros when building an external payload.
Change-Id: I3b55928babba2896a112f8c5fae46365cf71d308 Signed-off-by: Paul Kocialkowski contact@paulk.fr --- payloads/libpayload/include/endian.h | 1 + payloads/libpayload/include/stdlib.h | 2 ++ 2 files changed, 3 insertions(+)
diff --git a/payloads/libpayload/include/endian.h b/payloads/libpayload/include/endian.h index 2655634..11001ff 100644 --- a/payloads/libpayload/include/endian.h +++ b/payloads/libpayload/include/endian.h @@ -33,6 +33,7 @@ #include <arch/io.h> #include <arch/types.h> #include <libpayload-config.h> +#include <kconfig.h>
static inline uint16_t swap_bytes16(uint16_t in) { diff --git a/payloads/libpayload/include/stdlib.h b/payloads/libpayload/include/stdlib.h index 689bf01..23f412d 100644 --- a/payloads/libpayload/include/stdlib.h +++ b/payloads/libpayload/include/stdlib.h @@ -34,6 +34,8 @@ #include <die.h> #include <stddef.h> #include <string.h> +#include <libpayload-config.h> +#include <kconfig.h>
#define ALIGN(x,a) __ALIGN_MASK(x,(typeof(x))(a)-1UL) #define __ALIGN_MASK(x,mask) (((x)+(mask))&~(mask))