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-condition
:= !defined
(__mips_nan2008
) \
23 && defined
(__mips_soft_float
) \
24 && (_MIPS_SIM
== _MIPS_SIM_ABI32
)
25 abi-o32_hard-condition
:= !defined
(__mips_nan2008
) \
26 && defined
(__mips_hard_float
) \
27 && (_MIPS_SIM
== _MIPS_SIM_ABI32
)
28 abi-o32_soft_2008-condition
:= defined
(__mips_nan2008
) \
29 && defined
(__mips_soft_float
) \
30 && (_MIPS_SIM
== _MIPS_SIM_ABI32
)
31 abi-o32_hard_2008-condition
:= defined
(__mips_nan2008
) \
32 && defined
(__mips_hard_float
) \
33 && (_MIPS_SIM
== _MIPS_SIM_ABI32
)
34 abi-n32_soft-condition
:= !defined
(__mips_nan2008
) \
35 && defined
(__mips_soft_float
) \
36 && (_MIPS_SIM
== _MIPS_SIM_NABI32
)
37 abi-n32_hard-condition
:= !defined
(__mips_nan2008
) \
38 && defined
(__mips_hard_float
) \
39 && (_MIPS_SIM
== _MIPS_SIM_NABI32
)
40 abi-n32_soft_2008-condition
:= defined
(__mips_nan2008
) \
41 && defined
(__mips_soft_float
) \
42 && (_MIPS_SIM
== _MIPS_SIM_NABI32
)
43 abi-n32_hard_2008-condition
:= defined
(__mips_nan2008
) \
44 && defined
(__mips_hard_float
) \
45 && (_MIPS_SIM
== _MIPS_SIM_NABI32
)
46 abi-n64_soft-condition
:= !defined
(__mips_nan2008
) \
47 && defined
(__mips_soft_float
) \
48 && (_MIPS_SIM
== _MIPS_SIM_ABI64
)
49 abi-n64_hard-condition
:= !defined
(__mips_nan2008
) \
50 && defined
(__mips_hard_float
) \
51 && (_MIPS_SIM
== _MIPS_SIM_ABI64
)
52 abi-n64_soft_2008-condition
:= defined
(__mips_nan2008
) \
53 && defined
(__mips_soft_float
) \
54 && (_MIPS_SIM
== _MIPS_SIM_ABI64
)
55 abi-n64_hard_2008-condition
:= defined
(__mips_nan2008
) \
56 && defined
(__mips_hard_float
) \
57 && (_MIPS_SIM
== _MIPS_SIM_ABI64
)
60 # If the compiler doesn't use GNU.stack note,
61 # this test is expected to fail.
62 ifneq ($(mips-has-gnustack
),yes
)
63 test-xfail-check-execstack
= yes
67 ifeq ($(subdir
),stdlib
)
68 gen-as-const-headers
+= ucontext_i.sym
71 ifeq ($(mips-force-execstack
),yes
)
72 CFLAGS-.o
+= -Wa
,-execstack
73 CFLAGS-.os
+= -Wa
,-execstack
74 CFLAGS-.op
+= -Wa
,-execstack
75 CFLAGS-.oS
+= -Wa
,-execstack
77 ASFLAGS-.o
+= -Wa
,-execstack
78 ASFLAGS-.os
+= -Wa
,-execstack
79 ASFLAGS-.op
+= -Wa
,-execstack
80 ASFLAGS-.oS
+= -Wa
,-execstack