From 64d39a8b7b4288c44f13b1ac5cb0878ad541fab5 Mon Sep 17 00:00:00 2001 From: yinshengkai Date: Tue, 31 Jan 2023 23:58:34 +0800 Subject: [PATCH] Makefile: fix redundant delimiters when using make V=1 rm-none-eabi-ar rcs libc.a bin//lib_assert.o bin//lib_builtin_getname.o Signed-off-by: yinshengkai --- libs/libc/Makefile | 6 +++--- mm/Makefile | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/libs/libc/Makefile b/libs/libc/Makefile index 17d628b469..f98669fa9c 100644 --- a/libs/libc/Makefile +++ b/libs/libc/Makefile @@ -127,18 +127,18 @@ all: $(BIN) .PHONY: clean distclean $(AOBJS): $(BINDIR)$(DELIM)$(DELIM)%$(OBJEXT): %.S - $(call ASSEMBLE, $<, $@) + $(call ASSEMBLE, $(realpath $<), $@) # REVISIT: Backslash causes problems in $(COBJS) target $(COBJS): $(BINDIR)$(DELIM)$(DELIM)%$(OBJEXT): %.c - $(call COMPILE, $<, $@) + $(call COMPILE, $(realpath $<), $@) # C library for the flat build and # the user phase of the two-pass kernel build $(BIN): $(OBJS) - $(call ARCHIVE, $@, $(OBJS)) + $(call ARCHIVE, $@, $(realpath $(OBJS))) ifeq ($(CONFIG_LIBC_ZONEINFO_ROMFS),y) $(Q) $(MAKE) -C zoneinfo all BIN=$(BIN) endif diff --git a/mm/Makefile b/mm/Makefile index 5234948cd7..f9ddf0732a 100644 --- a/mm/Makefile +++ b/mm/Makefile @@ -52,18 +52,18 @@ all: $(BIN) .PHONY: context depend clean distclean $(AOBJS): $(BINDIR)$(DELIM)$(DELIM)%$(OBJEXT): %.S - $(call ASSEMBLE, $<, $@) + $(call ASSEMBLE, $(realpath $<), $@) # REVISIT: Backslash causes problems in $(COBJS) target $(COBJS): $(BINDIR)$(DELIM)$(DELIM)%$(OBJEXT): %.c - $(call COMPILE, $<, $@) + $(call COMPILE, $(realpath $<), $@) # Memory manager for the flat build and # the user phase of the two-pass kernel build $(BIN): $(OBJS) - $(call ARCHIVE, $@, $(OBJS)) + $(call ARCHIVE, $@, $(realpath $(OBJS))) # Memory manager for the kernel phase of the two-pass kernel build