From e57c482625638fc10d90eab282c77fd410c9b46d Mon Sep 17 00:00:00 2001 From: Megan Wachs Date: Tue, 24 Jan 2017 15:11:14 -0800 Subject: Use register macros instead of volatile addresses --- Makefile | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) (limited to 'Makefile') 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) -- cgit v1.2.3