-
Notifications
You must be signed in to change notification settings - Fork 22
/
config.mk
53 lines (42 loc) · 1.4 KB
/
config.mk
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
# User Configurable Options
# Tomatoware Architecture Choice
export DESTARCH ?= aarch64
#export DESTARCH ?= arm
#export DESTARCH ?= mipsel
#export DESTARCH ?= x86_64
# Arm Target Libc
# Only Supported for Arm
ARM_LIBC ?= uclibc
#ARM_LIBC ?= musl
# Tomatoware Sysroot
# Only /mmc Has Been Test For A Long Time
export PREFIX ?= /mmc
#export PREFIX ?= /mnt
# Build llvm/clang Compiler
# Only Supported For Arm, Aarch64, and x86_64
export BUILDLLVM ?= 1
# Build Mipsel Cross-Toolchain
# Only Supported for Arm + uclibc
export BUILDCROSSTOOLS ?= 1
# Do Not Edit
ifeq ($(DESTARCH), mipsel)
export DESTARCHLIBC = uclibc
export EXTRACFLAGS = -O2 -mips32 -mtune=mips32
export PATH := $(PATH):/opt/tomatoware/mipsel-$(DESTARCHLIBC)$(subst /,-,$(PREFIX))/bin
endif
ifeq ($(DESTARCH), arm)
export DESTARCHLIBC = $(ARM_LIBC)
export EXTRACFLAGS = -O2 -march=armv7-a -mtune=cortex-a9
export PATH := $(PATH):/opt/tomatoware/arm-$(DESTARCHLIBC)$(subst /,-,$(PREFIX))/bin
export PATH := $(PATH):/opt/tomatoware/mipsel-uclibc$(subst /,-,$(PREFIX))/bin
endif
ifeq ($(DESTARCH), aarch64)
export DESTARCHLIBC = musl
export EXTRACFLAGS = -O2 -mcpu=cortex-a53
export PATH := $(PATH):/opt/tomatoware/aarch64-$(DESTARCHLIBC)$(subst /,-,$(PREFIX))/bin
endif
ifeq ($(DESTARCH), x86_64)
export DESTARCHLIBC = musl
export EXTRACFLAGS = -O2 -march=x86-64-v2
export PATH := $(PATH):/opt/tomatoware/x86_64-$(DESTARCHLIBC)$(subst /,-,$(PREFIX))/bin
endif