mirror of
https://git.codelinaro.org/clo/qsdk/oss/boot/u-boot-2016.git
synced 2025-12-10 07:44:53 +01:00
Add basic errno support.
Needed for hash table support; probably useful in a lot of other places as well. Signed-off-by: Wolfgang Denk <wd@denx.de>
This commit is contained in:
parent
a2a649d73c
commit
65cd3fa81f
3 changed files with 11 additions and 0 deletions
9
include/errno.h
Normal file
9
include/errno.h
Normal file
|
|
@ -0,0 +1,9 @@
|
||||||
|
#ifndef _ERRNO_H
|
||||||
|
|
||||||
|
#include <asm-generic/errno.h>
|
||||||
|
|
||||||
|
extern int errno;
|
||||||
|
|
||||||
|
#define __set_errno(val) do { errno = val; } while (0)
|
||||||
|
|
||||||
|
#endif /* _ERRNO_H */
|
||||||
|
|
@ -37,6 +37,7 @@ COBJS-y += crc32.o
|
||||||
COBJS-y += ctype.o
|
COBJS-y += ctype.o
|
||||||
COBJS-y += display_options.o
|
COBJS-y += display_options.o
|
||||||
COBJS-y += div64.o
|
COBJS-y += div64.o
|
||||||
|
COBJS-y += errno.o
|
||||||
COBJS-$(CONFIG_GZIP) += gunzip.o
|
COBJS-$(CONFIG_GZIP) += gunzip.o
|
||||||
COBJS-$(CONFIG_LMB) += lmb.o
|
COBJS-$(CONFIG_LMB) += lmb.o
|
||||||
COBJS-y += ldiv.o
|
COBJS-y += ldiv.o
|
||||||
|
|
|
||||||
1
lib/errno.c
Normal file
1
lib/errno.c
Normal file
|
|
@ -0,0 +1 @@
|
||||||
|
int errno = 0;
|
||||||
Loading…
Add table
Reference in a new issue