From b5f5dc1fad9a7876a2d146b1c61d06e64435a86e Mon Sep 17 00:00:00 2001 From: notaz Date: Fri, 13 Oct 2017 23:38:09 +0300 Subject: [PATCH] android: make armeabi buildable --- cpu/cyclone_config.h | 2 ++ cpu/cyclone_config_armv4.h | 2 ++ jni/Android.mk | 7 +++++++ platform/common/common.mak | 6 ++++-- 4 files changed, 15 insertions(+), 2 deletions(-) create mode 100644 cpu/cyclone_config_armv4.h diff --git a/cpu/cyclone_config.h b/cpu/cyclone_config.h index ed3b257e..23205171 100644 --- a/cpu/cyclone_config.h +++ b/cpu/cyclone_config.h @@ -8,7 +8,9 @@ **/ +#ifndef HAVE_ARMv6 #define HAVE_ARMv6 1 +#endif #define USE_MS_SYNTAX 0 #define CYCLONE_FOR_GENESIS 2 #define COMPRESS_JUMPTABLE 0 diff --git a/cpu/cyclone_config_armv4.h b/cpu/cyclone_config_armv4.h new file mode 100644 index 00000000..2319029b --- /dev/null +++ b/cpu/cyclone_config_armv4.h @@ -0,0 +1,2 @@ +#define HAVE_ARMv6 0 +#include "cyclone_config.h" diff --git a/jni/Android.mk b/jni/Android.mk index a0f5dc8d..bc817026 100644 --- a/jni/Android.mk +++ b/jni/Android.mk @@ -49,6 +49,13 @@ ifeq ($(TARGET_ARCH),arm) asm_misc = 1 # asm_cdmemory = 1 # texrels asm_mix = 1 + +# for armeabi to build... +CYCLONE_CONFIG = cyclone_config_armv4.h + +$(cleantarget):: + $(MAKE) -C $(FR)cpu/cyclone/ clean + else use_fame = 1 use_cz80 = 1 diff --git a/platform/common/common.mak b/platform/common/common.mak index cd92f54b..89e46051 100644 --- a/platform/common/common.mak +++ b/platform/common/common.mak @@ -173,13 +173,15 @@ ifeq "$(use_cyclone)" "1" $(FR)pico/pico.c: $(FR)cpu/cyclone/Cyclone.h endif +CYCLONE_CONFIG ?= cyclone_config.h + $(FR)cpu/cyclone/Cyclone.h: @echo "Cyclone submodule is missing, please run 'git submodule update --init'" @false -$(FR)cpu/cyclone/Cyclone.s: $(FR)cpu/cyclone_config.h +$(FR)cpu/cyclone/Cyclone.s: $(FR)cpu/$(CYCLONE_CONFIG) @echo building Cyclone... - @make -C $(R)cpu/cyclone/ CONFIG_FILE=../cyclone_config.h + @make -C $(R)cpu/cyclone/ CONFIG_FILE=../$(CYCLONE_CONFIG) $(FR)cpu/cyclone/Cyclone.s: $(FR)cpu/cyclone/*.cpp $(FR)cpu/cyclone/*.h -- 2.39.5