mirror of
https://github.com/apache/nuttx-apps.git
synced 2026-08-01 20:29:00 +00:00
Application.mk:upgrade warning to error
for the case where MAINSRC and PROGNAME do not match Signed-off-by: xuxin19 <xuxin19@xiaomi.com>
This commit is contained in:
parent
7dda7f1dee
commit
55647b8458
1 changed files with 1 additions and 1 deletions
|
|
@ -96,7 +96,7 @@ endif
|
|||
ifneq ($(strip $(PROGNAME)),)
|
||||
PROGOBJ := $(MAINCOBJ) $(MAINCXXOBJ) $(MAINRUSTOBJ)
|
||||
ifneq ($(words $(PROGOBJ)), $(words $(PROGNAME)))
|
||||
$(warning "program names $(PROGNAME) does not match mainsrcs $(PROGOBJ)")
|
||||
$(error "program names $(PROGNAME) does not match mainsrcs $(PROGOBJ)")
|
||||
endif
|
||||
PROGLIST := $(addprefix $(BINDIR)$(DELIM),$(PROGNAME))
|
||||
REGLIST := $(addprefix $(BUILTIN_REGISTRY)$(DELIM),$(addsuffix .bdat,$(PROGNAME)))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue