summaryrefslogtreecommitdiff
path: root/toolchain/eglibc/Makefile.multilib
blob: 5066aecbc4b73eb4102ed827f802c271c19171ab (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
# multilib support
ifeq ($(ADK_TARGET_WITH_MULTILIB),y)
TABI:=
TCFLAGS:=
ifeq ($(ADK_TARGET_MULTILIB_X86_X32),y)
TABI+=x86_64-openadk-linux-gnu:x32
TCFLAGS:=-m
endif
ifeq ($(ADK_TARGET_MULTILIB_X86_32),y)
TABI+=i486-openadk-linux-gnu:32
TCFLAGS:=-m
endif
ifeq ($(ADK_TARGET_MULTILIB_X86_64),y)
TABI+=x86_64-openadk-linux-gnu:64
TCFLAGS:=-m
endif
ifeq ($(ADK_TARGET_MULTILIB_MIPS_N32),y)
ifeq ($(ADK_KERNEL_CPU_LITTLE_ENDIAN),y)
TABI+=mips64el-openadk-linux-gnu:n32
TCFLAGS:=-mabi=
else
TABI+=mips64-openadk-linux-gnu:n32
TCFLAGS:=-mabi=
endif
endif
ifeq ($(ADK_TARGET_MULTILIB_MIPS_O32),y)
ifeq ($(ADK_KERNEL_CPU_LITTLE_ENDIAN),y)
TABI+=mips64el-openadk-linux-gnu:32
TCFLAGS:=-mabi=
else
TABI+=mips64-openadk-linux-gnu:32
TCFLAGS:=-mabi=
endif
endif
ifeq ($(ADK_TARGET_MULTILIB_MIPS_64),y)
ifeq ($(ADK_KERNEL_CPU_LITTLE_ENDIAN),y)
TABI+=mips64el-openadk-linux-gnu:64
TCFLAGS:=-mabi=
else
TABI+=mips64-openadk-linux-gnu:64
TCFLAGS:=-mabi=
endif
endif
endif