-
Notifications
You must be signed in to change notification settings - Fork 7
/
setup.conf
executable file
·75 lines (68 loc) · 2.34 KB
/
setup.conf
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
68
69
70
71
72
73
74
75
##
## You will want to change the following to suit your setup:
##
SUNFLOWERROOT = /tmp/sunflower
OSTYPE = linux
MACHTYPE = x86_64
TARGET-ARCH-FLAGS = -DM32
GMAKE = /usr/bin/make
GNUSED = /usr/bin/sed
GNUBISON = /usr/bin/bison
#
# On newer versions of macOS (High Sierra), you will need to install gcc
# (as opposed to using the gcc alias on modern macOS that is
# just an alias for clang). Because of various design choices
# made in changes to gcc in recent years (mixing of C and C++
# conventions for source file name extensions), you will need
# to have a separate g++ binary that treats its input as either
# C++ source or C++ object file (you won't be able to get away
# with calling gcc with `-x c++ -lstdc++ -shared-libgcc`).
#
# MacPorts no longer installs separate binaries for gcc versus
# g++, so you will need to use homebrew (or some other alternative)
# to get a version of gcc (e.g., gcc version 4.9) that lets you do.
# this. Installing gcc-4.9 via homebrew is one solution that works.
# You will then need to change TOOLCC and TOOLCXX below to gcc-4.9
# and g++-4.9.
#
TOOLCC = gcc
TOOLCXX = g++
##
## You likely do not need to change the items below:
##
GCCINCLUDEDIR = $(SUNFLOWERROOT)/tools/source/gcc-8.2.0/gcc/ginclude/
TOOLS = $(SUNFLOWERROOT)/tools
TOOLCHAIN = $(SUNFLOWERROOT)/sunflower-toolchain
PREFIX = $(TOOLS)/$(TARGET)
UTILSBIN = $(TOOLS)/utilities
TOOLSBIN = $(TOOLS)/bin
TOOLSLIB = $(SUNFLOWERROOT)/tools/tools-lib
CC = $(TOOLSBIN)/$(TARGET-ARCH)-gcc
CXX = $(TOOLSBIN)/$(TARGET-ARCH)-g++
F77 = $(TOOLSBIN)/$(TARGET-ARCH)-g77
LD = $(TOOLSBIN)/$(TARGET-ARCH)-ld
AR = $(TOOLSBIN)/$(TARGET-ARCH)-ar
OBJCOPY = $(TOOLSBIN)/$(TARGET-ARCH)-objcopy
OBJDUMP = $(TOOLSBIN)/$(TARGET-ARCH)-objdump
AS = $(TOOLSBIN)/$(TARGET-ARCH)-as
UNCERTAIN_LD = $(TOOLSBIN)/uncertain-$(TARGET-ARCH)-ld
UNCERTAIN_AS = $(TOOLSBIN)/uncertain-$(TARGET-ARCH)-as
UNCERTAIN_OBJDUMP = $(TOOLSBIN)/uncertain-$(TARGET-ARCH)-objdump
UNCERTAIN_OBJCOPY = $(TOOLSBIN)/uncertain-$(TARGET-ARCH)-objcopy
UNCERTAIN_READELF = $(TOOLSBIN)/uncertain-$(TARGET-ARCH)-readelf
SIZE = $(TOOLSBIN)/$(TARGET-ARCH)-size
STRIP = $(TOOLSBIN)/$(TARGET-ARCH)-strip
RANLIB = $(TOOLSBIN)/$(TARGET-ARCH)-ranlib
MAKE = make
RM = rm -rf
DEL = rm -rf
SUPPORTED-TARGETS =\
superH\
riscv\
arm\
msp430\
SUPPORTED-TARGET-ARCHS =\
sh-elf\
riscv32-elf\
arm-none-eabi\
msp430\