aboutsummaryrefslogtreecommitdiff
path: root/mkfiles/mkfile-FreeRTOS-riscv64
blob: 6fa18c56dd79de8bb46541e12ccf49c6ca4ca8b3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
TARGMODEL=	Posix
TARGSHTYPE=	sh
CPUS=		arm

O=		o
OS=		o

AR=		${CROSS}ar
ARFLAGS=	ruvs

AS=		${CROSS}gcc -c 
ASFLAGS=

CC=		${CROSS}gcc -c 
CFLAGS=		-O\
		-Wuninitialized -Wunused-variable -Wreturn-type -Wimplicit\
		-I$ROOT/FreeRTOS/riscv64/include\
		-I$FreeRTOS_ROOT/include\
		-I$FreeRTOS_ROOT/conf\
		-I$FreeRTOS_ROOT/portable\
		-I$K210_SDK/lib/arch/include\
		-I$K210_SDK/lib/posix/include\
		-I$K210_SDK/third_party/lwip/src/include/compat/posix\
		-I$K210_SDK/third_party/lwip/src/include\
		-I$ROOT/include\
		-DFREERTOS_RISCV64\
		-DFREERTOS\

ANSICPP=
LD=		${CROSS}gcc 
LDFLAGS=	\
		-mcmodel=medany -mabi=lp64f -march=rv64imafc\
		-fno-common -ffunction-sections -fdata-sections\
		-fstrict-volatile-bitfields -ffast-math -fno-math-errno\
		-fsingle-precision-constant\
		-O2 -g -ggdb -std=gnu11\
		-Wall -Werror=all -Wno-error=unused-function\
		-Wno-error=unused-but-set-variable -Wno-error=unused-variable\
		-Wno-error=deprecated-declarations -Wno-error=maybe-uninitialized\
		-Wextra -Werror=frame-larger-than=65536 -Wno-unused-parameter\
		-Wno-unused-function -Wno-implicit-fallthrough -Wno-sign-compare\
		-Wno-error=missing-braces -Wno-old-style-declaration\
		-g\
		-nostartfiles -static\
		-Wl,--gc-sections -Wl,-static\
		-Wl,--start-group -Wl,--whole-archive -Wl,--no-whole-archive -Wl,--end-group\
		-Wl,-EL -T $EMU_LD_SCRIPT\
		$K210_CRT_BEGIN_END_PATH/crti.o\
		$K210_CRT_BEGIN_END_PATH/crtbegin.o\


SYSLIBS=	\
		$K210_CRT_BEGIN_END_PATH/crtend.o\
		$K210_CRT_BEGIN_END_PATH/crtn.o\
		-L$K210_SDK_LIBS\
		-Wl,--start-group -lm\
		-lfreertos -latomic -lbsp -lc -lstdc++ -ldrivers -lposix\
		-Wl,--end-group\
		-lfreertos -lhal\
		-lm\
		-lfatfs -llwipcore\
		-lstdc++ -lm\


YACC=		iyacc
YFLAGS=		-d