URL
https://opencores.org/ocsvn/openrisc/openrisc/trunk
Go to most recent revision |
Show entire file |
Details |
Blame |
View Log
Rev 397 |
Rev 408 |
Line 27... |
Line 27... |
PROGRAMMINGFILE_SWBIN=progfile.swbin # Binary file with sizeword
|
PROGRAMMINGFILE_SWBIN=progfile.swbin # Binary file with sizeword
|
PROGRAMMINGFILE_DATA=progfile.o
|
PROGRAMMINGFILE_DATA=progfile.o
|
|
|
ELF_DEPENDS +=$(PROGRAMMINGFILE_DATA)
|
ELF_DEPENDS +=$(PROGRAMMINGFILE_DATA)
|
|
|
|
|
|
|
include $(SW_ROOT)/Makefile.inc
|
include $(SW_ROOT)/Makefile.inc
|
|
|
OR32_LDFLAGS = -lgcc -Tspiflash-program.ld -e 256
|
OR32_LDFLAGS = -lgcc -Tspiflash-program.ld -e 256
|
|
|
../utils/bin2binsizeword:
|
$(SW_ROOT)/utils/bin2binsizeword:
|
$(Q)$(MAKE) -C ../utils bin2binsizeword
|
$(Q)$(MAKE) -C $(SW_ROOT)/utils bin2binsizeword
|
|
|
$(PROGRAMMINGFILE_SWBIN): $(PROGRAMMINGFILE) ../utils/bin2binsizeword
|
$(PROGRAMMINGFILE_SWBIN): $(PROGRAMMINGFILE) $(SW_ROOT)/utils/bin2binsizeword
|
$(Q)../utils/bin2binsizeword $< $@
|
$(Q)$(SW_ROOT)/utils/bin2binsizeword $< $@
|
|
|
$(PROGRAMMINGFILE_DATA): $(PROGRAMMINGFILE_SWBIN)
|
$(PROGRAMMINGFILE_DATA): $(PROGRAMMINGFILE_SWBIN)
|
$(Q)$(OR32_LD) -r -b binary -o $@ $<
|
$(Q)$(OR32_LD) -r -b binary -o $@ $<
|
$(Q)$(OR32_OBJCOPY) --rename-section .data=.spiprogram $@
|
$(Q)$(OR32_OBJCOPY) --rename-section .data=.spiprogram $@
|
|
|
Line 52... |
Line 50... |
$(Q)$(OR32_OBJCOPY) -O binary $< $@
|
$(Q)$(OR32_OBJCOPY) -O binary $< $@
|
|
|
clean:
|
clean:
|
$(Q)rm -f *.elf *.bin *.vmem *.flashin *.dis $(PROGRAMMINGFILE_SWBIN) $(PROGRAMMINGFILE_DATA)
|
$(Q)rm -f *.elf *.bin *.vmem *.flashin *.dis $(PROGRAMMINGFILE_SWBIN) $(PROGRAMMINGFILE_DATA)
|
|
|
clean-all: clean-support clean
|
#clean-all: clean
|
#clean-all: clean
|
#clean-all: clean
|
© copyright 1999-2024
OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.