Add mips support (woohoo makefiles are a mess nao)
This commit is contained in:
parent
7d32a66044
commit
ebe56d6778
|
@ -65,6 +65,10 @@
|
|||
#define HOST_OS OS_LINUX
|
||||
#define HOST_CPU CPU_X86
|
||||
#define BUILD_COMPILER COMPILER_GCC
|
||||
#elif TARGET_LINUX_MIPS
|
||||
#define HOST_OS OS_LINUX
|
||||
#define HOST_CPU CPU_MIPS
|
||||
#define BUILD_COMPILER COMPILER_GCC
|
||||
#elif TARGET_GCW0
|
||||
#define HOST_OS OS_LINUX
|
||||
#define HOST_CPU CPU_MIPS
|
||||
|
|
|
@ -59,7 +59,11 @@ RZDCY_CXXFLAGS := \
|
|||
RZDCY_CXXFLAGS += -march=armv7-a -mtune=cortex-a9 -mfpu=vfpv3-d16
|
||||
RZDCY_CXXFLAGS += -DTARGET_LINUX_ARMELv7
|
||||
else
|
||||
RZDCY_CXXFLAGS += -DTARGET_LINUX_x86
|
||||
ifndef ISMIPS
|
||||
RZDCY_CXXFLAGS += -DTARGET_LINUX_x86
|
||||
else
|
||||
RZDCY_CXXFLAGS += -DTARGET_LINUX_MIPS
|
||||
endif
|
||||
endif
|
||||
endif
|
||||
|
||||
|
|
|
@ -35,7 +35,11 @@ struct sigcontext uc_mcontext;
|
|||
#if HOST_CPU == CPU_ARM
|
||||
#define GET_PC_FROM_CONTEXT(c) (((ucontext_t *)(c))->uc_mcontext.arm_pc)
|
||||
#elif HOST_CPU == CPU_MIPS
|
||||
#ifdef _ANDROID
|
||||
#define GET_PC_FROM_CONTEXT(c) (((ucontext_t *)(c))->uc_mcontext.sc_pc)
|
||||
#else
|
||||
#define GET_PC_FROM_CONTEXT(c) (((ucontext_t *)(c))->uc_mcontext.pc)
|
||||
#endif
|
||||
#elif HOST_CPU == CPU_X86
|
||||
#define GET_PC_FROM_CONTEXT(c) (((ucontext_t *)(c))->uc_mcontext.eip)
|
||||
#else
|
||||
|
|
|
@ -59,7 +59,11 @@ typedef struct ucontext_t
|
|||
#if HOST_CPU == CPU_ARM
|
||||
#define GET_PC_FROM_CONTEXT(c) (((ucontext_t *)(c))->uc_mcontext.arm_pc)
|
||||
#elif HOST_CPU == CPU_MIPS
|
||||
#ifdef _ANDROID
|
||||
#define GET_PC_FROM_CONTEXT(c) (((ucontext_t *)(c))->uc_mcontext.sc_pc)
|
||||
#else
|
||||
#define GET_PC_FROM_CONTEXT(c) (((ucontext_t *)(c))->uc_mcontext.pc)
|
||||
#endif
|
||||
#elif HOST_CPU == CPU_X86
|
||||
#define GET_PC_FROM_CONTEXT(c) (((ucontext_t *)(c))->uc_mcontext.eip)
|
||||
#else
|
||||
|
|
|
@ -26,6 +26,10 @@ ifneq ($(TARGET_ARCH_ABI),armeabi-v7a)
|
|||
NO_REC := 1
|
||||
endif
|
||||
|
||||
ifeq ($(TARGET_ARCH_ABI),mips)
|
||||
ISMIPS := 1
|
||||
endif
|
||||
|
||||
include $(LOCAL_PATH)/../../core/core.mk
|
||||
|
||||
LOCAL_SRC_FILES := $(RZDCY_FILES)
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
APP_STL := stlport_static
|
||||
APP_ABI := armeabi-v7a x86
|
||||
APP_ABI := armeabi-v7a x86 mips
|
||||
#APP_ABI := armeabi-v7a
|
||||
APP_PLATFORM := android-19
|
||||
NDK_TOOLCHAIN_VERSION := 4.8
|
Loading…
Reference in New Issue