1 # This file is part of the OpenADK project. OpenADK is copyrighted
2 # material, please see the LICENCE file in the top-level directory.
6 depends on ADK_TARGET_ARCH_XTENSA && ADK_TARGET_CPU_XTENSA_DC233C
8 config ADK_TARGET_ABI_WINDOWED
11 config ADK_TARGET_ABI_CALL0
18 depends on ADK_TARGET_ARCH_MIPS64
20 config ADK_TARGET_ABI_N32
23 config ADK_TARGET_ABI_N64
26 config ADK_TARGET_ABI_O32
33 depends on ADK_TARGET_ARCH_X86_64 && \
34 (ADK_TARGET_LIB_GLIBC || ADK_TARGET_LIB_MUSL)
36 config ADK_TARGET_ABI_64
39 config ADK_TARGET_ABI_X32
44 config ADK_TARGET_ABI_ILP32
46 depends on ADK_TARGET_ARCH_RISCV32
48 config ADK_TARGET_ABI_ILP32F
50 depends on ADK_TARGET_ARCH_RISCV32
52 config ADK_TARGET_ABI_ILP32D
54 depends on ADK_TARGET_ARCH_RISCV32
56 config ADK_TARGET_ABI_LP64
58 depends on ADK_TARGET_ARCH_RISCV64
60 config ADK_TARGET_ABI_LP64F
62 depends on ADK_TARGET_ARCH_RISCV64
64 config ADK_TARGET_ABI_LP64D
66 depends on ADK_TARGET_ARCH_RISCV64
70 default "o32" if ADK_TARGET_ABI_O32
71 default "n32" if ADK_TARGET_ABI_N32
72 default "n64" if ADK_TARGET_ABI_N64
73 default "32" if ADK_TARGET_ABI_32
74 default "x32" if ADK_TARGET_ABI_X32
75 default "eabihf" if ADK_TARGET_ARCH_ARM && ADK_TARGET_HARD_FLOAT
76 default "eabi" if ADK_TARGET_ARCH_ARM
77 default "windowed" if ADK_TARGET_ABI_WINDOWED
78 default "call0" if ADK_TARGET_ABI_CALL0
80 config ADK_TARGET_ABI_RISCV
81 depends on ADK_TARGET_ARCH_RISCV32 || ADK_TARGET_ARCH_RISCV64
83 default "lp64" if ADK_TARGET_ABI_LP64
84 default "lp64f" if ADK_TARGET_ABI_LP64F
85 default "lp64d" if ADK_TARGET_ABI_LP64D
86 default "ilp32" if ADK_TARGET_ABI_ILP32
87 default "ilp32f" if ADK_TARGET_ABI_ILP32F
88 default "ilp32d" if ADK_TARGET_ABI_ILP32D
90 config ADK_TARGET_ABI_MIPS64
91 depends on ADK_TARGET_ARCH_MIPS64
93 default "32" if ADK_TARGET_ABI_O32
94 default "n32" if ADK_TARGET_ABI_N32
95 default "64" if ADK_TARGET_ABI_N64
97 config ADK_TARGET_LIBC_PATH
99 default "lib32" if ADK_TARGET_ABI_N32 || ADK_TARGET_ARCH_RISC32
100 default "libx32" if ADK_TARGET_ABI_X32
101 default "lib64" if ADK_TARGET_ABI_64 || ADK_TARGET_ABI_N64 \
102 || ADK_TARGET_ARCH_AARCH64 \
103 || ADK_TARGET_ARCH_SPARC64 \
104 || ADK_TARGET_ARCH_PPC64 \
105 || ADK_TARGET_ARCH_RISC64 \
106 || ADK_TARGET_ARCH_X86_64
109 config ADK_TARGET_ABI_CFLAGS
111 default "-mabi=32" if ADK_TARGET_ABI_O32
112 default "-mabi=n32" if ADK_TARGET_ABI_N32
113 default "-mabi=64" if ADK_TARGET_ABI_N64
114 default "-m32" if ADK_TARGET_ABI_32
115 default "-mx32" if ADK_TARGET_ABI_X32
116 default "-m64" if ADK_TARGET_ABI_64
117 default "-mabi=lp64" if ADK_TARGET_ABI_LP64
118 default "-mabi=lp64f" if ADK_TARGET_ABI_LP64F
119 default "-mabi=lp64d" if ADK_TARGET_ABI_LP64D
120 default "-mabi=ilp32" if ADK_TARGET_ABI_ILP32
121 default "-mabi=ilp32f" if ADK_TARGET_ABI_ILP32F
122 default "-mabi=ilp32d" if ADK_TARGET_ABI_ILP32D