1 ifeq ($(subdir
),signal
)
2 #sysdep_routines += sigsuspend
6 sysdep_routines
+= cachectl cacheflush sysmips _test_and_set
8 sysdep_headers
+= sys
/cachectl.h sys
/sysmips.h sys
/tas.h
11 abi-variants
:= o32_soft o32_hard o32_soft_2008 o32_hard_2008
12 abi-variants
+= n32_soft n32_hard n32_soft_2008 n32_hard_2008
13 abi-variants
+= n64_soft n64_hard n64_soft_2008 n64_hard_2008
15 ifeq (,$(filter $(default-abi
),$(abi-variants
)))
16 Unknown ABI
, must be one of
$(abi-variants
)
19 abi-includes
:= sgidefs.h
21 # _MIPS_SIM_ABI32 == 1, _MIPS_SIM_NABI32 == 2, _MIPS_SIM_ABI64 == 3
22 abi-o32_soft-options
:= -U_MIPS_SIM
-D_MIPS_SIM
=1 \
23 -D__mips_soft_float
-U__mips_hard_float \
25 abi-o32_soft-condition
:= !defined
(__mips_nan2008
) \
26 && defined
(__mips_soft_float
) \
27 && (_MIPS_SIM
== _MIPS_SIM_ABI32
)
28 abi-o32_hard-options
:= -U_MIPS_SIM
-D_MIPS_SIM
=1 \
29 -D__mips_hard_float
-U__mips_soft_float \
31 abi-o32_hard-condition
:= !defined
(__mips_nan2008
) \
32 && defined
(__mips_hard_float
) \
33 && (_MIPS_SIM
== _MIPS_SIM_ABI32
)
34 abi-o32_soft_2008-options
:= -U_MIPS_SIM
-D_MIPS_SIM
=1 \
35 -D__mips_soft_float
-U__mips_hard_float \
37 abi-o32_soft_2008-condition
:= defined
(__mips_nan2008
) \
38 && defined
(__mips_soft_float
) \
39 && (_MIPS_SIM
== _MIPS_SIM_ABI32
)
40 abi-o32_hard_2008-options
:= -U_MIPS_SIM
-D_MIPS_SIM
=1 \
41 -D__mips_hard_float
-U__mips_soft_float \
43 abi-o32_hard_2008-condition
:= defined
(__mips_nan2008
) \
44 && defined
(__mips_hard_float
) \
45 && (_MIPS_SIM
== _MIPS_SIM_ABI32
)
46 abi-n32_soft-options
:= -U_MIPS_SIM
-D_MIPS_SIM
=2 \
47 -D__mips_soft_float
-U__mips_hard_float \
49 abi-n32_soft-condition
:= !defined
(__mips_nan2008
) \
50 && defined
(__mips_soft_float
) \
51 && (_MIPS_SIM
== _MIPS_SIM_NABI32
)
52 abi-n32_hard-options
:= -U_MIPS_SIM
-D_MIPS_SIM
=2 \
53 -D__mips_hard_float
-U__mips_soft_float \
55 abi-n32_hard-condition
:= !defined
(__mips_nan2008
) \
56 && defined
(__mips_hard_float
) \
57 && (_MIPS_SIM
== _MIPS_SIM_NABI32
)
58 abi-n32_soft_2008-options
:= -U_MIPS_SIM
-D_MIPS_SIM
=2 \
59 -D__mips_soft_float
-U__mips_hard_float \
61 abi-n32_soft_2008-condition
:= defined
(__mips_nan2008
) \
62 && defined
(__mips_soft_float
) \
63 && (_MIPS_SIM
== _MIPS_SIM_NABI32
)
64 abi-n32_hard_2008-options
:= -U_MIPS_SIM
-D_MIPS_SIM
=2 \
65 -D__mips_hard_float
-U__mips_soft_float \
67 abi-n32_hard_2008-condition
:= defined
(__mips_nan2008
) \
68 && defined
(__mips_hard_float
) \
69 && (_MIPS_SIM
== _MIPS_SIM_NABI32
)
70 abi-n64_soft-options
:= -U_MIPS_SIM
-D_MIPS_SIM
=3 \
71 -D__mips_soft_float
-U__mips_hard_float \
73 abi-n64_soft-condition
:= !defined
(__mips_nan2008
) \
74 && defined
(__mips_soft_float
) \
75 && (_MIPS_SIM
== _MIPS_SIM_ABI64
)
76 abi-n64_hard-options
:= -U_MIPS_SIM
-D_MIPS_SIM
=3 \
77 -D__mips_hard_float
-U__mips_soft_float \
79 abi-n64_hard-condition
:= !defined
(__mips_nan2008
) \
80 && defined
(__mips_hard_float
) \
81 && (_MIPS_SIM
== _MIPS_SIM_ABI64
)
82 abi-n64_soft_2008-options
:= -U_MIPS_SIM
-D_MIPS_SIM
=3 \
83 -D__mips_soft_float
-U__mips_hard_float \
85 abi-n64_soft_2008-condition
:= defined
(__mips_nan2008
) \
86 && defined
(__mips_soft_float
) \
87 && (_MIPS_SIM
== _MIPS_SIM_ABI64
)
88 abi-n64_hard_2008-options
:= -U_MIPS_SIM
-D_MIPS_SIM
=3 \
89 -D__mips_hard_float
-U__mips_soft_float \
91 abi-n64_hard_2008-condition
:= defined
(__mips_nan2008
) \
92 && defined
(__mips_hard_float
) \
93 && (_MIPS_SIM
== _MIPS_SIM_ABI64
)
96 ifeq ($(build-shared
),yes
)
97 # This is needed for DSO loading from static binaries.
98 sysdep-dl-routines
+= dl-static
99 sysdep_routines
+= dl-static
100 sysdep-rtld-routines
+= dl-static
104 ifeq ($(subdir
),stdlib
)
105 gen-as-const-headers
+= ucontext_i.sym