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

Subversion Repositories minsoc

Compare Revisions

  • This comparison shows the changes necessary to convert path
    /minsoc/trunk/sw/support
    from Rev 61 to Rev 64
    Reverse comparison

Rev 61 → Rev 64

/orp.ld File deleted
orp.ld Property changes : Deleted: svn:executable ## -1 +0,0 ## -* \ No newline at end of property Index: board.h =================================================================== --- board.h (revision 61) +++ board.h (nonexistent) @@ -1,40 +0,0 @@ -#ifndef _BOARD_H_ -#define _BOARD_H_ - -#define MC_ENABLED 0 - -#define IC_ENABLE 0 -#define IC_SIZE 8192 -#define DC_ENABLE 0 -#define DC_SIZE 8192 - - -#define IN_CLK 25000000 - - -#define STACK_SIZE 0x01000 - -#define UART_BAUD_RATE 115200 - -#define UART_BASE 0x90000000 -#define UART_IRQ 2 -#define ETH_BASE 0x92000000 -#define ETH_IRQ 4 -#define I2C_BASE 0x9D000000 -#define I2C_IRQ 3 -#define CAN_BASE 0x94000000 -#define CAN_IRQ 5 - -#define MC_BASE_ADDR 0x60000000 -#define SPI_BASE 0xa0000000 - -#define ETH_DATA_BASE 0xa8000000 /* Address for ETH_DATA */ - -#define ETH_MACADDR0 0x00 -#define ETH_MACADDR1 0x12 -#define ETH_MACADDR2 0x34 -#define ETH_MACADDR3 0x56 -#define ETH_MACADDR4 0x78 -#define ETH_MACADDR5 0x9a - -#endif
board.h Property changes : Deleted: svn:executable ## -1 +0,0 ## -* \ No newline at end of property Index: reset.S =================================================================== --- reset.S (revision 61) +++ reset.S (revision 64) @@ -1,6 +1,6 @@ /* Support file for c based tests */ #include "or1200.h" -#include "board.h" +#include "../../backend/board.h" .section .stack .space STACK_SIZE
/Makefile.inc
1,20 → 1,42
# File to be included in all makefiles
 
ROOTDIR = ..
 
BACKEND_DIR := $(ROOTDIR)/../backend
SUPPORT_DIR := $(ROOTDIR)/support
DRIVERS_DIR := $(ROOTDIR)/drivers
UTILS_DIR := $(ROOTDIR)/utils
 
OR1200_HDR := $(SUPPORT_DIR)/or1200.h
BOARD_HDR := $(BACKEND_DIR)/board.h
SUPPORT_HDR := $(SUPPORT_DIR)/support.h
UART_HDR := $(DRIVERS_DIR)/uart.h
ETH_HDR := $(DRIVERS_DIR)/eth.h
 
RESET_NOCACHE := $(SUPPORT_DIR)/reset-nocache.o
RESET_ICDC := $(SUPPORT_DIR)/reset-icdc.o
 
EXCPT_HNDLR := $(SUPPORT_DIR)/except.o
LIB_SUPPORT := $(SUPPORT_DIR)/libsupport.a
 
SUPPORT := $(EXCPT_HNDLR) $(LIB_SUPPORT)
DRIVERS := $(DRIVERS_DIR)/libdrivers.a
 
LINKER_SCRIPT := $(BACKEND_DIR)/orp.ld
 
OR32_TOOL_PREFIX=or32-elf
 
#GCC_LIB_OPTS= -lgcc -liberty
GCC_OPT=-mhard-mul -mhard-div -g -nostdlib
 
GCC_OPT=-mhard-mul -g -nostdlib
BIN2HEX = $(UTILS_DIR)/bin2hex
 
ifdef UART_PRINTF
GCC_OPT += -DUART_PRINTF
endif
 
FLASH_MEM_HEX_FILE_SUFFIX=-twobyte-sizefirst
SRAM_MEM_HEX_FILE_SUFFIX=-fourbyte
all: all_internal
 
 
# Global clean rule
clean:
@echo "Cleaning `pwd`"
@rm -f *.o *.or32 *.log *.bin *.srec *.hex *.log stdout.txt *.vmem *.asm *.a stdout.txt
@rm -f *.o *.or32 *.log *.bin *.srec *.hex *.log stdout.txt *.vmem *.asm *.a stdout.txt
/tick.c
1,5 → 1,5
#include "../support/or1200.h"
#include "../support/support.h"
#include "or1200.h"
#include "support.h"
#include "tick.h"
 
int tick_int;
/Makefile
1,31 → 1,5
all: libsupport.a reset-nocache.o reset-ic.o reset-dc.o reset-icdc.o except.o
include Makefile.inc
 
libsupport.a: support.o tick.o int.o
$(OR32_TOOL_PREFIX)-ar cru libsupport.a support.o tick.o int.o
$(OR32_TOOL_PREFIX)-ranlib libsupport.a
all_internal: $(RESET_NOCACHE) $(RESET_ICDC) $(EXCPT_HNDLR) $(LIB_SUPPORT)
 
support.o: support.c
$(OR32_TOOL_PREFIX)-gcc $(GCC_OPT) -c -o $@ $?
 
reset-nocache.o: reset.S
$(OR32_TOOL_PREFIX)-gcc $(GCC_OPT) -c -DIC=0 -DDC=0 -o $@ $?
 
reset-dc.o: reset.S
$(OR32_TOOL_PREFIX)-gcc $(GCC_OPT) -c -DIC=0 -DDC=1 -o $@ $?
 
reset-ic.o: reset.S
$(OR32_TOOL_PREFIX)-gcc $(GCC_OPT) -c -DIC=1 -DDC=0 -o $@ $?
 
reset-icdc.o: reset.S
$(OR32_TOOL_PREFIX)-gcc $(GCC_OPT) -c -DIC=1 -DDC=1 -o $@ $?
 
except.o: except.S
$(OR32_TOOL_PREFIX)-gcc $(GCC_OPT) -c -o $@ $?
 
int.o: int.c
$(OR32_TOOL_PREFIX)-gcc $(GCC_OPT) -c -o $@ $?
 
tick.o: tick.c
$(OR32_TOOL_PREFIX)-gcc $(GCC_OPT) -c -o $@ $?
 
include Makefile.inc
include common.mk
Makefile Property changes : Deleted: svn:executable ## -1 +0,0 ## -* \ No newline at end of property Index: common.mk =================================================================== --- common.mk (nonexistent) +++ common.mk (revision 64) @@ -0,0 +1,21 @@ +$(LIB_SUPPORT): $(SUPPORT_DIR)/support.o $(SUPPORT_DIR)/tick.o $(SUPPORT_DIR)/int.o + $(OR32_TOOL_PREFIX)-ar cru $(SUPPORT_DIR)/libsupport.a $(SUPPORT_DIR)/support.o $(SUPPORT_DIR)/tick.o $(SUPPORT_DIR)/int.o + $(OR32_TOOL_PREFIX)-ranlib $(SUPPORT_DIR)/libsupport.a + +$(SUPPORT_DIR)/support.o: $(SUPPORT_DIR)/support.c $(OR1200_HDR) $(SUPPORT_HDR) $(SUPPORT_DIR)/int.h $(UART_HDR) + $(OR32_TOOL_PREFIX)-gcc $(GCC_OPT) -c -o $@ $< + +$(SUPPORT_DIR)/tick.o: $(SUPPORT_DIR)/tick.c $(OR1200_HDR) $(SUPPORT_HDR) $(SUPPORT_DIR)/tick.h + $(OR32_TOOL_PREFIX)-gcc $(GCC_OPT) -c -o $@ $< + +$(SUPPORT_DIR)/int.o: $(SUPPORT_DIR)/int.c $(SUPPORT_HDR) $(OR1200_HDR) $(SUPPORT_DIR)/int.h + $(OR32_TOOL_PREFIX)-gcc $(GCC_OPT) -c -o $@ $< + +$(EXCPT_HNDLR): $(SUPPORT_DIR)/except.S $(OR1200_HDR) + $(OR32_TOOL_PREFIX)-gcc $(GCC_OPT) -c -o $@ $< + +$(RESET_NOCACHE): $(SUPPORT_DIR)/reset.S $(BOARD_HDR) + $(OR32_TOOL_PREFIX)-gcc $(GCC_OPT) -c -DIC=0 -DDC=0 -o $@ $< + +$(RESET_ICDC): $(SUPPORT_DIR)/reset.S $(BOARD_HDR) + $(OR32_TOOL_PREFIX)-gcc $(GCC_OPT) -c -DIC=1 -DDC=1 -o $@ $<
common.mk Property changes : Added: svn:executable ## -0,0 +1 ## +* \ No newline at end of property

powered by: WebSVN 2.1.0

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