You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nuttx.apache.org by ac...@apache.org on 2023/01/31 18:12:43 UTC

[nuttx] branch master updated: Makefile: fix redundant delimiters when using make V=1

This is an automated email from the ASF dual-hosted git repository.

acassis pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/nuttx.git


The following commit(s) were added to refs/heads/master by this push:
     new 64d39a8b7b Makefile: fix redundant delimiters when using make V=1
64d39a8b7b is described below

commit 64d39a8b7b4288c44f13b1ac5cb0878ad541fab5
Author: yinshengkai <yi...@xiaomi.com>
AuthorDate: Tue Jan 31 23:58:34 2023 +0800

    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 <yi...@xiaomi.com>
---
 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