Frank Vibrans III (efdesign98@gmail.com) just uploaded a new patch set to gerrit, which you can find at http://review.coreboot.org/105
-gerrit
commit d1ce5cef9b95d4309bc2b9a80cb08c3cc21b6f7d Author: Patrick Georgi patrick.georgi@secunet.com Date: Tue Jul 12 15:50:54 2011 +0200
libpayload: Provide dummy getenv()
Change-Id: I419fcb16e0b10dee9195072e0e6befa6c9e61a69 Signed-off-by: Patrick Georgi patrick.georgi@secunet.com --- payloads/libpayload/include/stdlib.h | 2 +- payloads/libpayload/libc/lib.c | 6 ++++++ 2 files changed, 7 insertions(+), 1 deletions(-)
diff --git a/payloads/libpayload/include/stdlib.h b/payloads/libpayload/include/stdlib.h index 52162fe..47b666a 100644 --- a/payloads/libpayload/include/stdlib.h +++ b/payloads/libpayload/include/stdlib.h @@ -143,5 +143,5 @@ void exit(int status) __attribute__ ((noreturn)); /** @} */
void qsort(void *aa, size_t n, size_t es, int (*cmp)(const void *, const void *)); - +char *getenv(const char*); #endif diff --git a/payloads/libpayload/libc/lib.c b/payloads/libpayload/libc/lib.c index c8539cb..616a7c6 100644 --- a/payloads/libpayload/libc/lib.c +++ b/payloads/libpayload/libc/lib.c @@ -120,3 +120,9 @@ void exit(int status) }
int errno; + +char *getenv(const char *name) +{ + return NULL; +} +