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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [orpsocv2/] [sw/] [apps/] [cfi_ctrl_programmer/] [Makefile] - Blame information for rev 751

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 655 julius
# Program to control the cfi_ctrl module to manage contents of flash memory.
2
#
3
# author: julius.baxter@orsoc.se
4
#
5
 
6
SW_ROOT=../..
7
 
8
#PROGRAMMINGFILE=
9
PROGRAMMINGFILE_SWBIN=progfile.swbin # Binary file with sizeword
10
PROGRAMMINGFILE_DATA=progfile.o
11
 
12
ELF_DEPENDS +=$(PROGRAMMINGFILE_DATA)
13
 
14
include $(SW_ROOT)/Makefile.inc
15
 
16
OR32_LDFLAGS = -L$(SW_ROOT)/lib -lorpsoc -lgcc -Tcfi_ctrl_programmer.ld -e 256
17
 
18
$(PROGRAMMINGFILE_DATA): $(PROGRAMMINGFILE)
19
        $(Q)$(OR32_LD) -r -b binary -o $@ $<
20
        $(Q)$(OR32_OBJCOPY) --rename-section .data=.userprogram $@
21
 
22
%.dis: %.elf
23
        $(Q)$(OR32_OBJDUMP) -d $< > $@
24
 
25
%.bin: %.elf
26
        $(Q)$(OR32_OBJCOPY) -O binary $< $@
27
 
28
clean:
29
        $(Q)rm -f *.elf *.bin *.vmem *.flashin *.dis $(PROGRAMMINGFILE_SWBIN) $(PROGRAMMINGFILE_DATA)
30
 
31
#distclean: clean

powered by: WebSVN 2.1.0

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