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:
Xiang Xiao 2022-08-08 00:25:58 +08:00 committed by David Sidrane
parent dd718e78f7
commit e26d8759d0
2 changed files with 1 additions and 8 deletions

View File

@ -32,8 +32,6 @@
* Public Function Prototypes
****************************************************************************/
#ifdef CONFIG_LIBC_ERR
/* Print "pid: ", FORMAT, ": ", the standard error string for errno,
* 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 verrx(int status, FAR const char *, va_list ap) printflike(2, 0);
#endif /* CONFIG_LIBC_ERR */
#endif /* __INCLUDE_ERR_H */

View File

@ -37,7 +37,7 @@ endif
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_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
@ -57,10 +57,6 @@ ifeq ($(CONFIG_LIBC_ENVPATH),y)
CSRCS += lib_envpath.c
endif
ifeq ($(CONFIG_LIBC_ERR),y)
CSRCS += lib_err.c
endif
# To ensure uname information is newest,
# add lib_utsname.o to phony target for force rebuild