summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorNathaniel Graff <nathaniel.graff@sifive.com>2019-03-12 09:58:13 -0700
committerNathaniel Graff <nathaniel.graff@sifive.com>2019-03-12 15:37:07 -0700
commitebe73c01fbdf73b3b4c6beaf089edb7ee394aa0b (patch)
tree97aad989172b0747823e8c55f353af0454273f9a /scripts
parent3da1e2e24fb713e87984bc18d7c1c4c44a97fa47 (diff)
ELF output has .elf extension
Signed-off-by: Nathaniel Graff <nathaniel.graff@sifive.com>
Diffstat (limited to 'scripts')
-rw-r--r--scripts/standalone.mk4
1 files changed, 2 insertions, 2 deletions
diff --git a/scripts/standalone.mk b/scripts/standalone.mk
index 6fa3da4..ac5635f 100644
--- a/scripts/standalone.mk
+++ b/scripts/standalone.mk
@@ -112,7 +112,7 @@ include $(CONFIGURATION).mk
# Software
#############################################################
-PROGRAM_ELF ?= $(SRC_DIR)/$(PROGRAM)
+PROGRAM_ELF ?= $(SRC_DIR)/$(PROGRAM).elf
PROGRAM_HEX ?= $(SRC_DIR)/$(PROGRAM).hex
.PHONY: all
@@ -135,7 +135,7 @@ $(PROGRAM_ELF): \
$(BSP_DIR)/install/lib/libmetal.a \
$(BSP_DIR)/install/lib/libmetal-gloss.a \
$(BSP_DIR)/metal.lds
- $(MAKE) -C $(dir $@) $(notdir $@) \
+ $(MAKE) -C $(dir $@) $(basename $(notdir $@)) \
AR=$(RISCV_AR) \
CC=$(RISCV_GCC) \
CXX=$(RISCV_GXX) \