From c61bb3a0a29f8e301cc3d82efbcb271ed3f6c655 Mon Sep 17 00:00:00 2001 From: Gregory Nutt Date: Sun, 15 Jun 2014 13:22:44 -0600 Subject: [PATCH] Fix an error in exec(). argv[] has not being passed --- system/hex2bin/Makefile | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/system/hex2bin/Makefile b/system/hex2bin/Makefile index ce50879b1..7b9acbade 100644 --- a/system/hex2bin/Makefile +++ b/system/hex2bin/Makefile @@ -40,7 +40,11 @@ include $(APPDIR)/Make.defs # I2C tool ASRCS = -CSRCS = hex2bin.c hex2bin_main.c +CSRCS = hex2bin.c + +ifeq ($(CONFIG_SYSTEM_HEX2BIN_BUILTIN),y) +CSRCS += hex2bin_main.c +endif AOBJS = $(ASRCS:.S=$(OBJEXT)) COBJS = $(CSRCS:.c=$(OBJEXT)) @@ -81,7 +85,7 @@ $(COBJS): %$(OBJEXT): %.c # Register application -ifeq ($(CONFIG_SYSTEM_HEX2BIN_BUILTINS),y) +ifeq ($(CONFIG_SYSTEM_HEX2BIN_BUILTIN),y) $(BUILTIN_REGISTRY)$(DELIM)hex2bin.bdat: $(DEPCONFIG) Makefile $(call REGISTER,"hex2bin",$(PRIORITY),$(STACKSIZE),hex2bin_main)