Remove extconf and KPRINTF_COLORS

This commit is contained in:
2025-11-11 21:31:17 +01:00
parent 7256fcd818
commit 5bd6ca0fa7
3 changed files with 3 additions and 15 deletions

View File

@ -23,7 +23,6 @@ CFLAGS += -I. \
-DFASTLZ_USE_MEMMOVE=0 \
include arch/$(ARCH)/$(ARCH).mk
include extconf/extra.mk
LDFLAGS += -nostdlib -static -T arch/$(ARCH)/link.ld $(shell $(CC) -print-libgcc-file-name)

View File

@ -1 +0,0 @@
CFLAGS += -DKPRINTF_COLORS

View File

@ -18,18 +18,8 @@
#define kvsnprintf vsnprintf_
#define kvprintf vprintf_
#ifdef KPRINTF_COLORS
# include "ansi_colors.h"
# define LOG(component, fmt, ...) kprintf(CRESET "[" CYN component CRESET "]: " fmt, ##__VA_ARGS__)
#else
# define LOG(component, fmt, ...) kprintf("["component"]: "fmt, ##__VA_ARGS__)
#endif
#ifdef KPRINTF_COLORS
# include "ansi_colors.h"
# define ERR(component, fmt, ...) kprintf(CRESET "[" RED1 component CRESET "]: " fmt, ##__VA_ARGS__)
#else
# define ERR(component, fmt, ...) kprintf("["component"]: "fmt, ##__VA_ARGS__)
#endif
#include "ansi_colors.h"
#define LOG(component, fmt, ...) kprintf(CRESET "[" CYN component CRESET "]: " fmt, ##__VA_ARGS__)
#define ERR(component, fmt, ...) kprintf(CRESET "[" RED1 component CRESET "]: " fmt, ##__VA_ARGS__)
#endif // KPRINTF_H_