OpenCores
URL https://opencores.org/ocsvn/openrisc/openrisc/trunk

Subversion Repositories openrisc

Compare Revisions

  • This comparison shows the changes necessary to convert path
    /openrisc/trunk/orpsocv2/sw/apps
    from Rev 397 to Rev 408
    Reverse comparison

Rev 397 → Rev 408

/spiflash/spiflash-program.c
1,7 → 1,7
// Program that will erase and program an SPI flash
 
#include "or32-utils.h"
#include "spr-defs.h"
#include "cpu-utils.h"
 
#include "board.h"
#include "uart.h"
#include "simple-spi.h"
14,8 → 14,6
int spi_master;
char slave;
 
 
 
// Little program to dump the contents of the SPI flash memory it's connected
// to on the board
 
/spiflash/Makefile
29,17 → 29,15
 
ELF_DEPENDS +=$(PROGRAMMINGFILE_DATA)
 
 
 
include $(SW_ROOT)/Makefile.inc
 
OR32_LDFLAGS = -lgcc -Tspiflash-program.ld -e 256
 
../utils/bin2binsizeword:
$(Q)$(MAKE) -C ../utils bin2binsizeword
$(SW_ROOT)/utils/bin2binsizeword:
$(Q)$(MAKE) -C $(SW_ROOT)/utils bin2binsizeword
 
$(PROGRAMMINGFILE_SWBIN): $(PROGRAMMINGFILE) ../utils/bin2binsizeword
$(Q)../utils/bin2binsizeword $< $@
$(PROGRAMMINGFILE_SWBIN): $(PROGRAMMINGFILE) $(SW_ROOT)/utils/bin2binsizeword
$(Q)$(SW_ROOT)/utils/bin2binsizeword $< $@
 
$(PROGRAMMINGFILE_DATA): $(PROGRAMMINGFILE_SWBIN)
$(Q)$(OR32_LD) -r -b binary -o $@ $<
54,4 → 52,4
clean:
$(Q)rm -f *.elf *.bin *.vmem *.flashin *.dis $(PROGRAMMINGFILE_SWBIN) $(PROGRAMMINGFILE_DATA)
 
clean-all: clean-support clean
#clean-all: clean

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.