Merge pull request #1245 from developandplay/demo-fix
Fix compilation of demo.bin on Rocket
This commit is contained in:
commit
1e6e9777e2
|
@ -118,6 +118,7 @@ class Rocket(CPU):
|
||||||
flags = "-mno-save-restore "
|
flags = "-mno-save-restore "
|
||||||
flags += GCC_FLAGS[self.variant]
|
flags += GCC_FLAGS[self.variant]
|
||||||
flags += "-D__rocket__ "
|
flags += "-D__rocket__ "
|
||||||
|
flags += "-mcmodel=medany"
|
||||||
return flags
|
return flags
|
||||||
|
|
||||||
def __init__(self, platform, variant="standard"):
|
def __init__(self, platform, variant="standard"):
|
||||||
|
|
|
@ -6,8 +6,7 @@ ifdef TFTP_SERVER_PORT
|
||||||
CFLAGS += -DTFTP_SERVER_PORT=$(TFTP_SERVER_PORT)
|
CFLAGS += -DTFTP_SERVER_PORT=$(TFTP_SERVER_PORT)
|
||||||
endif
|
endif
|
||||||
|
|
||||||
OBJECTS = isr.o \
|
OBJECTS = boot-helper.o \
|
||||||
boot-helper.o \
|
|
||||||
boot.o \
|
boot.o \
|
||||||
helpers.o \
|
helpers.o \
|
||||||
cmd_bios.o \
|
cmd_bios.o \
|
||||||
|
|
|
@ -3,7 +3,7 @@ BUILD_DIR?=../build/
|
||||||
include $(BUILD_DIR)/software/include/generated/variables.mak
|
include $(BUILD_DIR)/software/include/generated/variables.mak
|
||||||
include $(SOC_DIRECTORY)/software/common.mak
|
include $(SOC_DIRECTORY)/software/common.mak
|
||||||
|
|
||||||
OBJECTS = isr.o donut.o helloc.o main.o crt0.o
|
OBJECTS = donut.o helloc.o main.o crt0.o
|
||||||
ifdef WITH_CXX
|
ifdef WITH_CXX
|
||||||
OBJECTS += hellocpp.o
|
OBJECTS += hellocpp.o
|
||||||
endif
|
endif
|
||||||
|
|
|
@ -1,29 +0,0 @@
|
||||||
// This file is Copyright (c) 2020 Florent Kermarrec <florent@enjoy-digital.fr>
|
|
||||||
// License: BSD
|
|
||||||
|
|
||||||
#include <generated/csr.h>
|
|
||||||
#include <generated/soc.h>
|
|
||||||
#include <irq.h>
|
|
||||||
#include <libbase/uart.h>
|
|
||||||
|
|
||||||
void isr(void);
|
|
||||||
|
|
||||||
#ifdef CONFIG_CPU_HAS_INTERRUPT
|
|
||||||
|
|
||||||
void isr(void)
|
|
||||||
{
|
|
||||||
__attribute__((unused)) unsigned int irqs;
|
|
||||||
|
|
||||||
irqs = irq_pending() & irq_getmask();
|
|
||||||
|
|
||||||
#ifndef UART_POLLING
|
|
||||||
if(irqs & (1 << UART_INTERRUPT))
|
|
||||||
uart_isr();
|
|
||||||
#endif
|
|
||||||
}
|
|
||||||
|
|
||||||
#else
|
|
||||||
|
|
||||||
void isr(void){};
|
|
||||||
|
|
||||||
#endif
|
|
|
@ -10,7 +10,8 @@ OBJECTS = \
|
||||||
memtest.o \
|
memtest.o \
|
||||||
uart.o \
|
uart.o \
|
||||||
spiflash.o \
|
spiflash.o \
|
||||||
i2c.o
|
i2c.o \
|
||||||
|
isr.o
|
||||||
|
|
||||||
all: libbase.a
|
all: libbase.a
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue