-
Notifications
You must be signed in to change notification settings - Fork 1
/
platform.txt
67 lines (47 loc) · 3.24 KB
/
platform.txt
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
67
name=ODROID
##########################
# ODROID compile variables
##########################
compiler.path=
compiler.extra_includes=
compiler.S.cmd=
compiler.S.flags=
compiler.c.cmd=gcc
compiler.c.flags=-c -g -lwiringPi -lm -lpthread -lrt -lcrypt {compiler.extra_includes}
compiler.cpp.cmd=g++
compiler.cpp.flags={compiler.c.flags} -std=c++17
compiler.ar.cmd=ar
compiler.ar.flags=rcs
compiler.combine.cmd={compiler.cpp.cmd}
compiler.combine.flags=-g -flto -fuse-linker-plugin -Wl,--gc-sections
compiler.combine.libs=-lwiringPi -lm -lpthread -lrt -lcrypt
# override
build.extra_flags=
compiler.cross_compile=
compiler.S.extra_flags=
compiler.c.extra_flags=
compiler.cpp.extra_flags=
compiler.ar.extra_flags=
compiler.combine.extra_flags=
#########################
# ODROID compile patterns
#########################
preproc.includes.flags=-w -x c++ -M -MG -MP
recipe.preproc.includes="{compiler.path}{compiler.cross_compile}{compiler.cpp.cmd}" {compiler.cpp.flags} {preproc.includes.flags} -DARDUINO={runtime.ide.version} -DARDUINO_{build.board} -DARDUINO_ARCH_{build.arch} {compiler.cpp.extra_flags} {build.extra_flags} "-I{build.core.path}/api/deprecated" {includes} "{source_file}"
preproc.macros.flags= -w -x c++ -E -CC
recipe.preproc.macros="{compiler.path}{compiler.cross_compile}{compiler.cpp.cmd}" {compiler.cpp.flags} {preproc.macros.flags} -DARDUINO={runtime.ide.version} -DARDUINO_{build.board} -DARDUINO_ARCH_{build.arch} {compiler.cpp.extra_flags} {build.extra_flags} "-I{build.core.path}/api/deprecated" {includes} "{source_file}" -o "{preprocessed_file_path}"
recipe.S.o.pattern="{compiler.path}{compiler.cross_compile}{compiler.S.cmd}" {compiler.S.flags} -DARDUINO={runtime.ide.version} -DARDUINO_{build.board} -DARDUINO_ARCH_{build.arch} {compiler.S.extra_flags} {build.extra_flags} "-I{build.core.path}/api/deprecated" {includes} "{source_file}" -o "{object_file}"
recipe.c.o.pattern="{compiler.path}{compiler.cross_compile}{compiler.c.cmd}" {compiler.c.flags} -DARDUINO={runtime.ide.version} -DARDUINO_{build.board} -DARDUINO_ARCH_{build.arch} {compiler.c.extra_flags} {build.extra_flags} "-I{build.core.path}/api/deprecated" {includes} "{source_file}" -o "{object_file}"
recipe.cpp.o.pattern="{compiler.path}{compiler.cross_compile}{compiler.cpp.cmd}" {compiler.cpp.flags} -DARDUINO={runtime.ide.version} -DARDUINO_{build.board} -DARDUINO_ARCH_{build.arch} {compiler.cpp.extra_flags} {build.extra_flags} "-I{build.core.path}/api/deprecated" {includes} "{source_file}" -o "{object_file}"
recipe.ar.pattern="{compiler.path}{compiler.cross_compile}{compiler.ar.cmd}" {compiler.ar.flags} {compiler.ar.extra_flags} "{archive_file_path}" "{object_file}"
recipe.c.combine.pattern="{compiler.path}{compiler.cross_compile}{compiler.combine.cmd}" {compiler.combine.flags} {compiler.combine.extra_flags} {object_files} {archive_file_path} "-L{build.path}" -o "{build.path}/{build.project_name}.out" {compiler.combine.libs}
recipe.output.tmp_file={build.project_name}.out
recipe.output.save_file={build.project_name}.out
##############
# ODROID tools
##############
tools.bridge.path={runtime.platform.path}/tools
tools.bridge.cmd=bridge.py
tools.bridge.program.params.verbose=
tools.bridge.program.params.quiet=
tools.bridge.program.pattern="{path}/{cmd}" {build.path}/{build.project_name}.out