mm/tlsf: fix compile error/warning on tlsf

1.
make[1]: Entering directory '/home/archer/code/nuttx/n2/incubator-nuttx/mm'
/bin/sh: 1: Syntax error: "(" unexpected

2.
tools/Unix.mk:681: warning: overriding recipe for target 'mm_clean'
tools/Unix.mk:681: warning: ignoring old recipe for target 'mm_clean'
tools/Unix.mk:700: warning: overriding recipe for target 'mm_distclean'
tools/Unix.mk:700: warning: ignoring old recipe for target 'mm_distclean'

Signed-off-by: chao an <anchao@xiaomi.com>
This commit is contained in:
chao an 2023-01-16 14:28:43 +08:00 committed by Xiang Xiao
parent c07bd5d644
commit 613bfd0fde
2 changed files with 1 additions and 4 deletions

View File

@ -38,7 +38,7 @@ distclean::
CSRCS += mm_tlsf.c tlsf.c CSRCS += mm_tlsf.c tlsf.c
CFLAGS += ${shell $(DEFINE) "$(CC)" tlsf_printf=if(0)} CFLAGS += ${shell $(DEFINE) "$(CC)" tlsf_printf=\"if\(0\)printf\"}
# Add the tlsf directory to the build # Add the tlsf directory to the build

View File

@ -165,10 +165,7 @@ CLEANDIRS += openamp
endif endif
ifeq ($(CONFIG_MM_TLSF_MANAGER),y) ifeq ($(CONFIG_MM_TLSF_MANAGER),y)
KERNDEPDIRS += mm
CONTEXTDIRS += mm CONTEXTDIRS += mm
else
CLEANDIRS += mm
endif endif
CLEANDIRS += $(KERNDEPDIRS) $(USERDEPDIRS) CLEANDIRS += $(KERNDEPDIRS) $(USERDEPDIRS)