summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorMegan Wachs <megan@sifive.com>2017-01-26 15:18:12 -0800
committerGitHub <noreply@github.com>2017-01-26 15:18:12 -0800
commitcebc4033491f5be7b717ad2ac66715771d374138 (patch)
treefb952aec94223955856041aeff08901440a35721 /Makefile
parentb2ed074984f45dcaa66d2a31d3a1c9d0f1cc8321 (diff)
parent63e2203e3269d2c996d0029934461abe34158266 (diff)
Merge pull request #46 from sifive/arty_openocd
Various SDK Cleanup Items
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile14
1 files changed, 9 insertions, 5 deletions
diff --git a/Makefile b/Makefile
index ffc2e77..bd715d2 100644
--- a/Makefile
+++ b/Makefile
@@ -32,7 +32,10 @@ help :
@echo " run_openocd [BOARD=$(DEFAULT_BOARD)]:"
@echo " run_gdb [PROGRAM=$(DEFAULT_PROGRAM) BOARD=$(DEFAULT_BOARD)]:"
@echo " Launch OpenOCD or GDB seperately"
- @echo ""
+ @echo ""
+ @echo " dasm [PROGRAM=$(DEFAULT_BOARD)]:"
+ @echo " Generates the dissassembly output of objdump -D to stdout."
+ @echo ""
@echo " For more information, visit dev.sifive.com"
@@ -88,13 +91,14 @@ PROGRAM ?= $(DEFAULT_PROGRAM)
PROGRAM_DIR = $(srcdir)/software/$(PROGRAM)
PROGRAM_ELF = $(srcdir)/software/$(PROGRAM)/$(PROGRAM)
-.PHONY: software
-software:
- $(MAKE) -C $(PROGRAM_DIR)
-
+.PHONY: software_clean
software_clean:
$(MAKE) -C $(PROGRAM_DIR) clean
+.PHONY: software
+software: software_clean
+ $(MAKE) -C $(PROGRAM_DIR)
+
dasm: software
$(toolchain_dest)/bin/riscv32-unknown-elf-objdump -D $(PROGRAM_ELF)