Skip to content

Commit

Permalink
tools: Don't register app into nsh if WASM_BUILD_ONLY == y
Browse files Browse the repository at this point in the history
Signed-off-by: Huang Qi <[email protected]>
  • Loading branch information
no1wudi authored and xiaoxiang781216 committed Jul 13, 2023
1 parent b18cf9a commit b4ec3d7
Showing 1 changed file with 15 additions and 1 deletion.
16 changes: 15 additions & 1 deletion Application.mk
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,20 @@ ifneq ($(BUILD_MODULE),y)
OBJS += $(MAINCOBJ) $(MAINCXXOBJ) $(MAINRUSTOBJ) $(MAINZIGOBJ)
endif

# Condition flags

DO_REGISTRATION = y

ifeq ($(PROGNAME),)
DO_REGISTRATION = n
endif

ifeq ($(WASM_BUILD),y)
ifeq ($(WASM_BUILD_ONLY),y)
DO_REGISTRATION = n
endif
endif

# Compile flags, notice the default flags only suitable for flat build

ZIGELFFLAGS ?= $(ZIGFLAGS)
Expand Down Expand Up @@ -235,7 +249,7 @@ endif # BUILD_MODULE
context::
@:

ifneq ($(PROGNAME),)
ifeq ($(DO_REGISTRATION),y)

REGLIST := $(addprefix $(BUILTIN_REGISTRY)$(DELIM),$(addsuffix .bdat,$(PROGNAME)))
APPLIST := $(PROGNAME)
Expand Down

0 comments on commit b4ec3d7

Please sign in to comment.