libc: Remove CONFIG_LIBC_ERR
let linker remove the unused object files from the final image Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
This commit is contained in:
parent
dd718e78f7
commit
e26d8759d0
@ -32,8 +32,6 @@
|
|||||||
* Public Function Prototypes
|
* Public Function Prototypes
|
||||||
****************************************************************************/
|
****************************************************************************/
|
||||||
|
|
||||||
#ifdef CONFIG_LIBC_ERR
|
|
||||||
|
|
||||||
/* Print "pid: ", FORMAT, ": ", the standard error string for errno,
|
/* Print "pid: ", FORMAT, ": ", the standard error string for errno,
|
||||||
* and a newline, on stderr.
|
* and a newline, on stderr.
|
||||||
*/
|
*/
|
||||||
@ -53,5 +51,4 @@ void verr(int status, FAR const char *fmt, va_list ap) printflike(2, 0);
|
|||||||
void errx(int status, FAR const char *fmt, ...) printflike(2, 3);
|
void errx(int status, FAR const char *fmt, ...) printflike(2, 3);
|
||||||
void verrx(int status, FAR const char *, va_list ap) printflike(2, 0);
|
void verrx(int status, FAR const char *, va_list ap) printflike(2, 0);
|
||||||
|
|
||||||
#endif /* CONFIG_LIBC_ERR */
|
|
||||||
#endif /* __INCLUDE_ERR_H */
|
#endif /* __INCLUDE_ERR_H */
|
||||||
|
@ -37,7 +37,7 @@ endif
|
|||||||
|
|
||||||
CSRCS += lib_dumpbuffer.c lib_dumpvbuffer.c lib_fnmatch.c lib_debug.c
|
CSRCS += lib_dumpbuffer.c lib_dumpvbuffer.c lib_fnmatch.c lib_debug.c
|
||||||
CSRCS += lib_crc64.c lib_crc32.c lib_crc16.c lib_crc8.c lib_crc8ccitt.c
|
CSRCS += lib_crc64.c lib_crc32.c lib_crc16.c lib_crc8.c lib_crc8ccitt.c
|
||||||
CSRCS += lib_crc8table.c lib_glob.c lib_execinfo.c lib_ftok.c
|
CSRCS += lib_crc8table.c lib_glob.c lib_execinfo.c lib_ftok.c lib_err.c
|
||||||
|
|
||||||
# Keyboard driver encoder/decoder
|
# Keyboard driver encoder/decoder
|
||||||
|
|
||||||
@ -57,10 +57,6 @@ ifeq ($(CONFIG_LIBC_ENVPATH),y)
|
|||||||
CSRCS += lib_envpath.c
|
CSRCS += lib_envpath.c
|
||||||
endif
|
endif
|
||||||
|
|
||||||
ifeq ($(CONFIG_LIBC_ERR),y)
|
|
||||||
CSRCS += lib_err.c
|
|
||||||
endif
|
|
||||||
|
|
||||||
# To ensure uname information is newest,
|
# To ensure uname information is newest,
|
||||||
# add lib_utsname.o to phony target for force rebuild
|
# add lib_utsname.o to phony target for force rebuild
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user