mirror of
https://github.com/enjoy-digital/litex.git
synced 2025-01-04 09:52:26 -05:00
Add bios disassembly file generation rules.
This commit is contained in:
parent
22f4637570
commit
c343350551
2 changed files with 9 additions and 2 deletions
|
@ -50,7 +50,7 @@ else
|
||||||
LSCRIPT = linker.ld
|
LSCRIPT = linker.ld
|
||||||
endif
|
endif
|
||||||
|
|
||||||
all: bios.bin
|
all: bios.bin bios.dis
|
||||||
$(PYTHON) -m litex.soc.software.memusage bios.elf $(CURDIR)/../include/generated/regions.ld $(TRIPLE)
|
$(PYTHON) -m litex.soc.software.memusage bios.elf $(CURDIR)/../include/generated/regions.ld $(TRIPLE)
|
||||||
|
|
||||||
%.bin: %.elf
|
%.bin: %.elf
|
||||||
|
@ -64,6 +64,9 @@ else
|
||||||
$(PYTHON) -m litex.soc.software.crcfbigen $@
|
$(PYTHON) -m litex.soc.software.crcfbigen $@
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
%.dis: %.elf
|
||||||
|
$(OBJDUMP) -D $< > $@
|
||||||
|
|
||||||
bios.elf: $(BIOS_DIRECTORY)/$(LSCRIPT) $(OBJECTS)
|
bios.elf: $(BIOS_DIRECTORY)/$(LSCRIPT) $(OBJECTS)
|
||||||
|
|
||||||
vpath %.a $(PACKAGES:%=../%)
|
vpath %.a $(PACKAGES:%=../%)
|
||||||
|
@ -94,6 +97,6 @@ VPATH = $(BIOS_DIRECTORY):$(BIOS_DIRECTORY)/cmds:$(CPU_DIRECTORY)
|
||||||
$(assemble)
|
$(assemble)
|
||||||
|
|
||||||
clean:
|
clean:
|
||||||
$(RM) $(OBJECTS) bios.elf bios.bin .*~ *~
|
$(RM) $(OBJECTS) bios.elf bios.dis bios.bin .*~ *~
|
||||||
|
|
||||||
.PHONY: all clean
|
.PHONY: all clean
|
||||||
|
|
|
@ -18,12 +18,14 @@ endif
|
||||||
AR_normal := $(TARGET_PREFIX)gcc-ar
|
AR_normal := $(TARGET_PREFIX)gcc-ar
|
||||||
LD_normal := $(TARGET_PREFIX)ld
|
LD_normal := $(TARGET_PREFIX)ld
|
||||||
OBJCOPY_normal := $(TARGET_PREFIX)objcopy
|
OBJCOPY_normal := $(TARGET_PREFIX)objcopy
|
||||||
|
OBJDUMP_normal := $(TARGET_PREFIX)objdump
|
||||||
|
|
||||||
CC_quiet = @echo " CC " $@ && $(CC_normal)
|
CC_quiet = @echo " CC " $@ && $(CC_normal)
|
||||||
CX_quiet = @echo " CX " $@ && $(CX_normal)
|
CX_quiet = @echo " CX " $@ && $(CX_normal)
|
||||||
AR_quiet = @echo " AR " $@ && $(AR_normal)
|
AR_quiet = @echo " AR " $@ && $(AR_normal)
|
||||||
LD_quiet = @echo " LD " $@ && $(LD_normal)
|
LD_quiet = @echo " LD " $@ && $(LD_normal)
|
||||||
OBJCOPY_quiet = @echo " OBJCOPY " $@ && $(OBJCOPY_normal)
|
OBJCOPY_quiet = @echo " OBJCOPY " $@ && $(OBJCOPY_normal)
|
||||||
|
OBJDUMP_quiet = @echo " OBJDUMP " $@ && $(OBJDUMP_normal)
|
||||||
|
|
||||||
ifeq ($(V),1)
|
ifeq ($(V),1)
|
||||||
CC = $(CC_normal)
|
CC = $(CC_normal)
|
||||||
|
@ -31,12 +33,14 @@ ifeq ($(V),1)
|
||||||
AR = $(AR_normal)
|
AR = $(AR_normal)
|
||||||
LD = $(LD_normal)
|
LD = $(LD_normal)
|
||||||
OBJCOPY = $(OBJCOPY_normal)
|
OBJCOPY = $(OBJCOPY_normal)
|
||||||
|
OBJDUMP = $(OBJDUMP_normal)
|
||||||
else
|
else
|
||||||
CC = $(CC_quiet)
|
CC = $(CC_quiet)
|
||||||
CX = $(CX_quiet)
|
CX = $(CX_quiet)
|
||||||
AR = $(AR_quiet)
|
AR = $(AR_quiet)
|
||||||
LD = $(LD_quiet)
|
LD = $(LD_quiet)
|
||||||
OBJCOPY = $(OBJCOPY_quiet)
|
OBJCOPY = $(OBJCOPY_quiet)
|
||||||
|
OBJDUMP = $(OBJDUMP_quiet)
|
||||||
endif
|
endif
|
||||||
|
|
||||||
# http://scottmcpeak.com/autodepend/autodepend.html
|
# http://scottmcpeak.com/autodepend/autodepend.html
|
||||||
|
|
Loading…
Reference in a new issue