Skip to content
Snippets Groups Projects
Commit 9e611e4a authored by dam1n19's avatar dam1n19
Browse files

SOC1-167: ASM_TOOL option to bootrom

parent 0f70dd40
No related branches found
No related tags found
No related merge requests found
......@@ -129,10 +129,12 @@ COMPILE_MICROLIB = 0
COMPILE_SMALLMUL = 0
ifeq ($(TOOL_CHAIN),ds6)
CC_TOOL = armclang
CC_TOOL = armclang
ASM_TOOL = armclang -masm=armasm
ARM_CC_TARGET = --target=arm-$(TARGET)
else
CC_TOOL = armcc
CC_TOOL = armcc
ASM_TOOL = armasm
ARM_CC_TARGET = -Otime
endif
......@@ -193,7 +195,7 @@ $(SYSTEM_FILE).o : $(DEVICE_DIR)/Source/$(SYSTEM_FILE).c $(DEPS_LIST)
$(CC_TOOL) $(ARM_CC_OPTIONS) $(CPU_TYPE) $< -o $@
$(STARTUP_FILE).o : $(STARTUP_DIR)/$(STARTUP_FILE).s $(DEPS_LIST)
armasm $(ARM_ASM_OPTIONS) $(CPU_TYPE) $< -o $@
$(ASM_TOOL) $(ARM_ASM_OPTIONS) $(CPU_TYPE) $< -o $@
$(BOOTLOADER).ELF : $(BOOTLOADER).o $(SYSTEM_FILE).o $(STARTUP_FILE).o $(DEPS_LIST)
armlink $(ARM_LINK_OPTIONS) $(BOOTLOADER).o $(SYSTEM_FILE).o $(STARTUP_FILE).o -o $@
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment