Commit dd51e970 authored by Bernd-Christian Renner's avatar Bernd-Christian Renner
Browse files

fixed bug in Makefile that prevented command line device programming

parent d9d4155c
...@@ -125,7 +125,7 @@ cflags += -ffunction-sections -fdata-sections ...@@ -125,7 +125,7 @@ cflags += -ffunction-sections -fdata-sections
ldflags += -Wl,--gc-sections ldflags += -Wl,--gc-sections
# output a link map file and a cross reference table # output a link map file and a cross reference table
ldflags += -Wl,-Map,"$(BUILD_DIR)/$(PROJ_NAME).map",--cref ldflags += -Wl,-Map,"$(BUILD_DIR)/$(PROJECT).map",--cref
# add library search paths relative to top level directory # add library search paths relative to top level directory
ldflags += $(foreach _LIB_PATH,$(addprefix $(PRJ_PATH)/,$(LIB_PATH)),-L$(_LIB_PATH)) ldflags += $(foreach _LIB_PATH,$(addprefix $(PRJ_PATH)/,$(LIB_PATH)),-L$(_LIB_PATH))
...@@ -219,4 +219,4 @@ $(BUILD_DIR)/$(TARGET): $(PRJ_PATH)/$(LINKER_SCRIPT) $(MAKEFILE_PATH) $(MAKEFILE ...@@ -219,4 +219,4 @@ $(BUILD_DIR)/$(TARGET): $(PRJ_PATH)/$(LINKER_SCRIPT) $(MAKEFILE_PATH) $(MAKEFILE
.PHONY: program .PHONY: program
program: program:
@echo $(MSG_PROGRAMMING) @echo $(MSG_PROGRAMMING)
$(Q)$(PROGRAM) write $(BUILD_DIR)/$(PROJ_NAME).bin $(FLASH) $(Q)$(PROGRAM) write $(BUILD_DIR)/$(PROJECT).bin $(FLASH)
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment