1997-07-13 07:32:57 +08:00
|
|
|
ifeq ($(subdir),signal)
|
|
|
|
#sysdep_routines += sigsuspend
|
|
|
|
endif
|
|
|
|
|
|
|
|
ifeq ($(subdir),misc)
|
2000-07-28 21:37:26 +08:00
|
|
|
sysdep_routines += cachectl cacheflush sysmips _test_and_set
|
1997-07-13 07:32:57 +08:00
|
|
|
|
2000-09-06 16:21:55 +08:00
|
|
|
sysdep_headers += sys/cachectl.h sys/sysmips.h sys/tas.h
|
2003-03-17 23:50:05 +08:00
|
|
|
|
2012-05-24 02:48:24 +08:00
|
|
|
# _MIPS_SIM_ABI32 == 1, _MIPS_SIM_ABIN32 == 2, _MIPS_SIM_ABI64 == 3
|
2012-05-30 23:58:45 +08:00
|
|
|
abi-variants := o32 n32 n64
|
|
|
|
abi-includes := sgidefs.h
|
|
|
|
abi-o32-options := -D_MIPS_SIM=1
|
|
|
|
abi-o32-condition := _MIPS_SIM == _MIPS_SIM_ABI32
|
|
|
|
abi-n32-options := -D_MIPS_SIM=2
|
|
|
|
abi-n32-condition := _MIPS_SIM == _MIPS_SIM_ABIN32
|
|
|
|
abi-n64-options := -D_MIPS_SIM=3
|
|
|
|
abi-n64-condition := _MIPS_SIM == _MIPS_SIM_ABI64
|
2003-06-15 22:41:02 +08:00
|
|
|
endif
|
2009-01-27 23:32:55 +08:00
|
|
|
|
|
|
|
ifeq ($(subdir),elf)
|
|
|
|
ifeq ($(build-shared),yes)
|
|
|
|
# This is needed for DSO loading from static binaries.
|
|
|
|
sysdep-dl-routines += dl-static
|
|
|
|
sysdep_routines += dl-static
|
|
|
|
sysdep-rtld-routines += dl-static
|
|
|
|
endif
|
|
|
|
endif
|
2009-04-19 01:32:04 +08:00
|
|
|
|
|
|
|
ifeq ($(subdir),stdlib)
|
|
|
|
gen-as-const-headers += ucontext_i.sym
|
|
|
|
endif
|