summaryrefslogtreecommitdiff
path: root/firmware
diff options
context:
space:
mode:
Diffstat (limited to 'firmware')
-rw-r--r--firmware/SOURCES2
-rw-r--r--firmware/export/config.h4
-rw-r--r--firmware/export/screendump.h14
3 files changed, 12 insertions, 8 deletions
diff --git a/firmware/SOURCES b/firmware/SOURCES
index 001a86335e..b72a7521e9 100644
--- a/firmware/SOURCES
+++ b/firmware/SOURCES
@@ -286,7 +286,7 @@ font_cache.c
286font.c 286font.c
287hangul.c 287hangul.c
288lru.c 288lru.c
289#ifndef BOOTLOADER 289#ifdef HAVE_SCREENDUMP
290screendump.c 290screendump.c
291#endif 291#endif
292#if LCD_DEPTH == 1 292#if LCD_DEPTH == 1
diff --git a/firmware/export/config.h b/firmware/export/config.h
index efd99569b6..7002b2a3c5 100644
--- a/firmware/export/config.h
+++ b/firmware/export/config.h
@@ -1281,6 +1281,10 @@ Lyre prototype 1 */
1281#endif /* SIMULATOR */ 1281#endif /* SIMULATOR */
1282#endif /* default SDL SW volume conditions */ 1282#endif /* default SDL SW volume conditions */
1283 1283
1284#if !defined(BOOTLOADER) || defined(HAVE_BOOTLOADER_SCREENDUMP)
1285# define HAVE_SCREENDUMP
1286#endif
1287
1284/* null audiohw setting macro for when codec header is included for reasons 1288/* null audiohw setting macro for when codec header is included for reasons
1285 other than audio support */ 1289 other than audio support */
1286#define AUDIOHW_SETTING(name, us, nd, st, minv, maxv, defv, expr...) 1290#define AUDIOHW_SETTING(name, us, nd, st, minv, maxv, defv, expr...)
diff --git a/firmware/export/screendump.h b/firmware/export/screendump.h
index 953184c3ac..b8fc27047d 100644
--- a/firmware/export/screendump.h
+++ b/firmware/export/screendump.h
@@ -52,12 +52,7 @@
52#define DUMP_BMP_LINESIZE ((LCD_WIDTH*3 + 3) & ~3) 52#define DUMP_BMP_LINESIZE ((LCD_WIDTH*3 + 3) & ~3)
53#endif 53#endif
54 54
55#ifdef BOOTLOADER 55#ifdef HAVE_SCREENDUMP
56
57#define screen_dump() do { } while(0)
58#define remote_screen_dump() do { } while(0)
59
60#else /* !BOOTLOADER */
61 56
62/* Save a .BMP file containing the current screen contents. */ 57/* Save a .BMP file containing the current screen contents. */
63void screen_dump(void); 58void screen_dump(void);
@@ -69,6 +64,11 @@ void screen_dump_set_hook(void (*hook)(int fd));
69void remote_screen_dump(void); 64void remote_screen_dump(void);
70#endif 65#endif
71 66
72#endif /* !BOOTLOADER */ 67#else /* !HAVE_SCREENDUMP */
68
69#define screen_dump() do { } while(0)
70#define remote_screen_dump() do { } while(0)
71
72#endif /* HAVE_SCREENDUMP */
73 73
74#endif /* __SCREENDUMP_H__ */ 74#endif /* __SCREENDUMP_H__ */