diff options
author | Gregory Nutt <gnutt@nuttx.org> | 2014-06-16 10:34:50 -0600 |
---|---|---|
committer | Gregory Nutt <gnutt@nuttx.org> | 2014-06-16 10:34:50 -0600 |
commit | 6eddcfe6d14fec775d8a1244c069e93f0675855a (patch) | |
tree | 7058bf6210519f98a33f3d1b5074c8306b29c7aa /apps/system/hex2bin/Makefile | |
parent | 466e4b2be4fe900e055c0fcf8582ab5724fe2523 (diff) | |
download | px4-nuttx-6eddcfe6d14fec775d8a1244c069e93f0675855a.tar.gz px4-nuttx-6eddcfe6d14fec775d8a1244c069e93f0675855a.tar.bz2 px4-nuttx-6eddcfe6d14fec775d8a1244c069e93f0675855a.zip |
hex2mem: Like hex2bin, but writes Intel HEX files directly to memory
Diffstat (limited to 'apps/system/hex2bin/Makefile')
-rw-r--r-- | apps/system/hex2bin/Makefile | 33 |
1 files changed, 27 insertions, 6 deletions
diff --git a/apps/system/hex2bin/Makefile b/apps/system/hex2bin/Makefile index 7ff91a4d5..819cdd934 100644 --- a/apps/system/hex2bin/Makefile +++ b/apps/system/hex2bin/Makefile @@ -46,6 +46,10 @@ ifeq ($(CONFIG_SYSTEM_HEX2BIN_BUILTIN),y) CSRCS += hex2bin_main.c endif +ifeq ($(CONFIG_SYSTEM_HEX2MEM_BUILTIN),y) +CSRCS += hex2mem_main.c +endif + AOBJS = $(ASRCS:.S=$(OBJEXT)) COBJS = $(CSRCS:.c=$(OBJEXT)) @@ -68,8 +72,14 @@ VPATH = CONFIG_SYSTEM_HEX2BIN_STACKSIZE ?= 1536 CONFIG_SYSTEM_HEX2BIN_PRIORITY ?= 100 -STACKSIZE = $(CONFIG_SYSTEM_HEX2BIN_STACKSIZE) -PRIORITY = $(CONFIG_SYSTEM_HEX2BIN_PRIORITY) +HEX2BIN_STACKSIZE = $(CONFIG_SYSTEM_HEX2BIN_STACKSIZE) +HEX2BIN_PRIORITY = $(CONFIG_SYSTEM_HEX2BIN_PRIORITY) + +CONFIG_SYSTEM_HEX2MEM_STACKSIZE ?= 1536 +CONFIG_SYSTEM_HEX2MEM_PRIORITY ?= 100 + +HEX2MEM_STACKSIZE = $(CONFIG_SYSTEM_HEX2MEM_STACKSIZE) +HEX2MEM_PRIORITY = $(CONFIG_SYSTEM_HEX2MEM_PRIORITY) # Build targets @@ -86,17 +96,28 @@ $(COBJS): %$(OBJEXT): %.c $(call ARCHIVE, $(BIN), $(OBJS)) $(Q) touch .built -# Register application +# Register application(s) ifeq ($(CONFIG_SYSTEM_HEX2BIN_BUILTIN),y) $(BUILTIN_REGISTRY)$(DELIM)hex2bin.bdat: $(DEPCONFIG) Makefile - $(call REGISTER,"hex2bin",$(PRIORITY),$(STACKSIZE),hex2bin_main) + $(call REGISTER,"hex2bin",$(HEX2BIN_PRIORITY),$(HEX2BIN_STACKSIZE),hex2bin_main) -context: $(BUILTIN_REGISTRY)$(DELIM)hex2bin.bdat +rhex2bin: $(BUILTIN_REGISTRY)$(DELIM)hex2bin.bdat else -context: +rhex2bin: endif +ifeq ($(CONFIG_SYSTEM_HEX2MEM_BUILTIN),y) +$(BUILTIN_REGISTRY)$(DELIM)hex2mem.bdat: $(DEPCONFIG) Makefile + $(call REGISTER,"hex2mem",$(HEX2MEM_PRIORITY),$(HEX2MEM_STACKSIZE),hex2mem_main) + +rhex2mem: $(BUILTIN_REGISTRY)$(DELIM)hex2mem.bdat +else +rhex2mem: +endif + +context: rhex2bin rhex2mem + .depend: Makefile $(SRCS) $(Q) $(MKDEP) $(ROOTDEPPATH) "$(CC)" -- $(CFLAGS) -- $(SRCS) >Make.dep $(Q) touch $@ |