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 d59b259fb9..3063e1f06d 100644
--- a/firmware/export/config.h
+++ b/firmware/export/config.h
@@ -83,6 +83,9 @@
83#define PLATFORM_HOSTED (1<<1) 83#define PLATFORM_HOSTED (1<<1)
84#define PLATFORM_ANDROID (1<<2) 84#define PLATFORM_ANDROID (1<<2)
85#define PLATFORM_SDL (1<<3) 85#define PLATFORM_SDL (1<<3)
86#define PLATFORM_MAEMO4 (1<<4)
87#define PLATFORM_MAEMO5 (1<<5)
88#define PLATFORM_MAEMO (PLATFORM_MAEMO4|PLATFORM_MAEMO5)
86 89
87/* CONFIG_KEYPAD */ 90/* CONFIG_KEYPAD */
88#define PLAYER_PAD 1 91#define PLAYER_PAD 1
@@ -500,7 +503,12 @@ Lyre prototype 1 */
500#endif 503#endif
501 504
502/* define for all cpus from ARM family */ 505/* define for all cpus from ARM family */
503#if (CONFIG_CPU == IMX31L) 506#if (CONFIG_PLATFORM & PLATFORM_MAEMO5) && defined(MAEMO_ARM_BUILD)
507#define CPU_ARM
508#define ARM_ARCH 7 /* ARMv7 */
509
510#elif (CONFIG_CPU == IMX31L) \
511 || ((CONFIG_PLATFORM & PLATFORM_MAEMO4) && defined(MAEMO_ARM_BUILD))
504#define CPU_ARM 512#define CPU_ARM
505#define ARM_ARCH 6 /* ARMv6 */ 513#define ARM_ARCH 6 /* ARMv6 */
506 514
diff --git a/firmware/export/config/application.h b/firmware/export/config/application.h
index b731f0cf76..64ebbf3685 100644
--- a/firmware/export/config/application.h
+++ b/firmware/export/config/application.h
@@ -6,6 +6,10 @@
6/* We don't run on hardware directly */ 6/* We don't run on hardware directly */
7#ifdef ANDROID 7#ifdef ANDROID
8#define CONFIG_PLATFORM (PLATFORM_HOSTED|PLATFORM_ANDROID) 8#define CONFIG_PLATFORM (PLATFORM_HOSTED|PLATFORM_ANDROID)
9#elif MAEMO5
10#define CONFIG_PLATFORM (PLATFORM_HOSTED|PLATFORM_MAEMO5)
11#elif MAEMO4
12#define CONFIG_PLATFORM (PLATFORM_HOSTED|PLATFORM_MAEMO4)
9#else 13#else
10#define CONFIG_PLATFORM (PLATFORM_HOSTED|PLATFORM_SDL) 14#define CONFIG_PLATFORM (PLATFORM_HOSTED|PLATFORM_SDL)
11#endif 15#endif
@@ -75,17 +79,20 @@
75/* Define this if you do software codec */ 79/* Define this if you do software codec */
76#define CONFIG_CODEC SWCODEC 80#define CONFIG_CODEC SWCODEC
77 81
82#if (CONFIG_PLATFORM & (PLATFORM_ANDROID|PLATFORM_MAEMO))
83#define HAVE_MULTIMEDIA_KEYS
84#endif
85
78#if (CONFIG_PLATFORM & PLATFORM_ANDROID) 86#if (CONFIG_PLATFORM & PLATFORM_ANDROID)
79#define CONFIG_KEYPAD ANDROID_PAD 87#define CONFIG_KEYPAD ANDROID_PAD
80#define HAVE_MULTIMEDIA_KEYS 88#elif (CONFIG_PLATFORM & (PLATFORM_SDL|PLATFORM_MAEMO))
81#elif (CONFIG_PLATFORM & PLATFORM_SDL)
82#define HAVE_SCROLLWHEEL 89#define HAVE_SCROLLWHEEL
83#define CONFIG_KEYPAD SDL_PAD 90#define CONFIG_KEYPAD SDL_PAD
84#else 91#else
85#error unknown platform 92#error unknown platform
86#endif 93#endif
87 94
88#if (CONFIG_PLATFORM & PLATFORM_SDL) 95#if (CONFIG_PLATFORM & (PLATFORM_SDL|PLATFORM_MAEMO))
89/* Use SDL audio/pcm in a SDL app build */ 96/* Use SDL audio/pcm in a SDL app build */
90#define HAVE_SDL 97#define HAVE_SDL
91#define HAVE_SDL_AUDIO 98#define HAVE_SDL_AUDIO
diff --git a/firmware/export/debug.h b/firmware/export/debug.h
index 043ec26bbb..99cdf42c05 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, ...)
34 34
35/* */ 35/* */
36#if defined(SIMULATOR) && !defined(__PCTOOL__) \ 36#if defined(SIMULATOR) && !defined(__PCTOOL__) \
37 || ((CONFIG_PLATFORM & PLATFORM_ANDROID) && defined(DEBUG)) 37 || ((CONFIG_PLATFORM & (PLATFORM_ANDROID|PLATFORM_MAEMO)) && defined(DEBUG))
38#define DEBUGF debugf 38#define DEBUGF debugf
39#define LDEBUGF(...) ldebugf(__FILE__, __LINE__, __VA_ARGS__) 39#define LDEBUGF(...) ldebugf(__FILE__, __LINE__, __VA_ARGS__)
40#else 40#else