summaryrefslogtreecommitdiff
path: root/firmware/export
diff options
context:
space:
mode:
Diffstat (limited to 'firmware/export')
-rw-r--r--firmware/export/config.h10
-rw-r--r--firmware/export/config/application.h13
-rw-r--r--firmware/export/debug.h2
3 files changed, 20 insertions, 5 deletions
diff --git a/firmware/export/config.h b/firmware/export/config.h
index d59b259..3063e1f 100644
--- a/firmware/export/config.h
+++ b/firmware/export/config.h
@@ -83,6 +83,9 @@
#define PLATFORM_HOSTED (1<<1)
#define PLATFORM_ANDROID (1<<2)
#define PLATFORM_SDL (1<<3)
+#define PLATFORM_MAEMO4 (1<<4)
+#define PLATFORM_MAEMO5 (1<<5)
+#define PLATFORM_MAEMO (PLATFORM_MAEMO4|PLATFORM_MAEMO5)
/* CONFIG_KEYPAD */
#define PLAYER_PAD 1
@@ -500,7 +503,12 @@ Lyre prototype 1 */
#endif
/* define for all cpus from ARM family */
-#if (CONFIG_CPU == IMX31L)
+#if (CONFIG_PLATFORM & PLATFORM_MAEMO5) && defined(MAEMO_ARM_BUILD)
+#define CPU_ARM
+#define ARM_ARCH 7 /* ARMv7 */
+
+#elif (CONFIG_CPU == IMX31L) \
+ || ((CONFIG_PLATFORM & PLATFORM_MAEMO4) && defined(MAEMO_ARM_BUILD))
#define CPU_ARM
#define ARM_ARCH 6 /* ARMv6 */
diff --git a/firmware/export/config/application.h b/firmware/export/config/application.h
index b731f0c..64ebbf3 100644
--- a/firmware/export/config/application.h
+++ b/firmware/export/config/application.h
@@ -6,6 +6,10 @@
/* We don't run on hardware directly */
#ifdef ANDROID
#define CONFIG_PLATFORM (PLATFORM_HOSTED|PLATFORM_ANDROID)
+#elif MAEMO5
+#define CONFIG_PLATFORM (PLATFORM_HOSTED|PLATFORM_MAEMO5)
+#elif MAEMO4
+#define CONFIG_PLATFORM (PLATFORM_HOSTED|PLATFORM_MAEMO4)
#else
#define CONFIG_PLATFORM (PLATFORM_HOSTED|PLATFORM_SDL)
#endif
@@ -75,17 +79,20 @@
/* Define this if you do software codec */
#define CONFIG_CODEC SWCODEC
+#if (CONFIG_PLATFORM & (PLATFORM_ANDROID|PLATFORM_MAEMO))
+#define HAVE_MULTIMEDIA_KEYS
+#endif
+
#if (CONFIG_PLATFORM & PLATFORM_ANDROID)
#define CONFIG_KEYPAD ANDROID_PAD
-#define HAVE_MULTIMEDIA_KEYS
-#elif (CONFIG_PLATFORM & PLATFORM_SDL)
+#elif (CONFIG_PLATFORM & (PLATFORM_SDL|PLATFORM_MAEMO))
#define HAVE_SCROLLWHEEL
#define CONFIG_KEYPAD SDL_PAD
#else
#error unknown platform
#endif
-#if (CONFIG_PLATFORM & PLATFORM_SDL)
+#if (CONFIG_PLATFORM & (PLATFORM_SDL|PLATFORM_MAEMO))
/* Use SDL audio/pcm in a SDL app build */
#define HAVE_SDL
#define HAVE_SDL_AUDIO
diff --git a/firmware/export/debug.h b/firmware/export/debug.h
index 043ec26..99cdf42 100644
--- a/firmware/export/debug.h
+++ b/firmware/export/debug.h
@@ -34,7 +34,7 @@ extern void ldebugf(const char* file, int line, const char *fmt, ...)
/* */
#if defined(SIMULATOR) && !defined(__PCTOOL__) \
- || ((CONFIG_PLATFORM & PLATFORM_ANDROID) && defined(DEBUG))
+ || ((CONFIG_PLATFORM & (PLATFORM_ANDROID|PLATFORM_MAEMO)) && defined(DEBUG))
#define DEBUGF debugf
#define LDEBUGF(...) ldebugf(__FILE__, __LINE__, __VA_ARGS__)
#else