Fix demo compilation
This commit is contained in:
parent
befd9c0e4c
commit
72e7eac0ef
|
@ -3,7 +3,7 @@ BUILD_DIR?=../build/
|
|||
include $(BUILD_DIR)/software/include/generated/variables.mak
|
||||
include $(SOC_DIRECTORY)/software/common.mak
|
||||
|
||||
OBJECTS = isr.o donut.o helloc.o main.o
|
||||
OBJECTS = isr.o donut.o helloc.o main.o crt0.o
|
||||
ifdef WITH_CXX
|
||||
OBJECTS += hellocpp.o
|
||||
endif
|
||||
|
@ -21,16 +21,17 @@ demo.elf: $(OBJECTS)
|
|||
$(CC) $(LDFLAGS) \
|
||||
-T linker.ld \
|
||||
-N -o $@ \
|
||||
$(BUILD_DIR)/software/libbase/crt0.o \
|
||||
$(OBJECTS) \
|
||||
-L$(BUILD_DIR)/software/libbase \
|
||||
-L$(BUILD_DIR)/software/libcompiler_rt \
|
||||
-lbase -lcompiler_rt
|
||||
$(PACKAGES:%=-L$(BUILD_DIR)/software/%) \
|
||||
$(LIBS:lib%=-l%)
|
||||
chmod -x $@
|
||||
|
||||
main.o: main.c
|
||||
$(compile)
|
||||
|
||||
crt0.o: $(CPU_DIRECTORY)/crt0.S
|
||||
$(assemble)
|
||||
|
||||
donut.o: CFLAGS += -w
|
||||
|
||||
helloc.o: CFLAGS += -w
|
||||
|
|
|
@ -9,7 +9,7 @@
|
|||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
|
||||
#include <console.h>
|
||||
#include <libutils/console.h>
|
||||
|
||||
#define R(mul,shift,x,y) \
|
||||
_=x; \
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
#include <generated/csr.h>
|
||||
#include <generated/soc.h>
|
||||
#include <irq.h>
|
||||
#include <uart.h>
|
||||
#include <libcomm/uart.h>
|
||||
|
||||
void isr(void);
|
||||
|
||||
|
|
|
@ -6,8 +6,8 @@
|
|||
#include <string.h>
|
||||
|
||||
#include <irq.h>
|
||||
#include <uart.h>
|
||||
#include <console.h>
|
||||
#include <libcomm/uart.h>
|
||||
#include <libutils/console.h>
|
||||
#include <generated/csr.h>
|
||||
|
||||
/*-----------------------------------------------------------------------*/
|
||||
|
|
Loading…
Reference in New Issue