mirror of
https://github.com/openhwgroup/cve2.git
synced 2025-04-22 04:57:25 -04:00
Don't automatically generate disassembly in the example Makefile
Anyone who needs to disassemble their generated ELF can probably just call objdump directly and the precise set of flags have already confused at least one potential contributor[1]. We're keeping the canned objdump command for "engineers that know where to look" because some have said they find it useful. Run it with e.g. make -C examples/sw/simple_system/hello_test disassemble [1] https://github.com/lowRISC/ibex/issues/1263
This commit is contained in:
parent
faa1e98a6e
commit
82d0654c97
1 changed files with 6 additions and 1 deletions
|
@ -33,16 +33,21 @@ OBJS := ${C_SRCS:.c=.o} ${ASM_SRCS:.S=.o} ${CRT:.S=.o}
|
|||
DEPS = $(OBJS:%.o=%.d)
|
||||
|
||||
ifdef PROGRAM
|
||||
OUTFILES := $(PROGRAM).elf $(PROGRAM).vmem $(PROGRAM).bin $(PROGRAM).dis
|
||||
OUTFILES := $(PROGRAM).elf $(PROGRAM).vmem $(PROGRAM).bin
|
||||
else
|
||||
OUTFILES := $(OBJS)
|
||||
endif
|
||||
|
||||
all: $(OUTFILES)
|
||||
|
||||
ifdef PROGRAM
|
||||
$(PROGRAM).elf: $(OBJS) $(LINKER_SCRIPT)
|
||||
$(CC) $(CFLAGS) -T $(LINKER_SCRIPT) $(OBJS) -o $@ $(LIBS)
|
||||
|
||||
.PHONY: disassemble
|
||||
disassemble: $(PROGRAM).dis
|
||||
endif
|
||||
|
||||
%.dis: %.elf
|
||||
$(OBJDUMP) -fhSD $^ > $@
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue