summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
Diffstat (limited to 'tools')
-rw-r--r--tools/checkwps/SOURCES14
-rw-r--r--tools/checkwps/checkwps.c7
-rw-r--r--tools/checkwps/file.h16
-rw-r--r--tools/database/SOURCES10
-rw-r--r--tools/root.make8
5 files changed, 28 insertions, 27 deletions
diff --git a/tools/checkwps/SOURCES b/tools/checkwps/SOURCES
index 828b7965ea..425e8de7b9 100644
--- a/tools/checkwps/SOURCES
+++ b/tools/checkwps/SOURCES
@@ -1,13 +1,21 @@
1#undef unix /* messes up filesystem-unix.c below */
1../../apps/gui/skin_engine/skin_parser.c 2../../apps/gui/skin_engine/skin_parser.c
2../../apps/gui/skin_engine/skin_backdrops.c 3../../apps/gui/skin_engine/skin_backdrops.c
3../../apps/gui/viewport.c 4../../apps/gui/viewport.c
4../../apps/misc.c 5../../apps/misc.c
5../../firmware/common/strlcpy.c 6../../firmware/common/strlcpy.c
6checkwps.c 7../../firmware/common/pathfuncs.c
7 8../../firmware/asm/mempcpy.c
9../../firmware/target/hosted/filesystem-unix.c
8#ifdef APPLICATION 10#ifdef APPLICATION
9../../firmware/common/rbpaths.c 11../../firmware/target/hosted/filesystem-app.c
12#else
13../../uisimulator/common/filesystem-sim.c
10#endif 14#endif
15#ifdef DEBUG
16../../firmware/debug.c
17#endif
18checkwps.c
11 19
12#ifdef HAVE_LCD_BITMAP 20#ifdef HAVE_LCD_BITMAP
13../../apps/recorder/bmp.c 21../../apps/recorder/bmp.c
diff --git a/tools/checkwps/checkwps.c b/tools/checkwps/checkwps.c
index 10e505f006..c2cadc7444 100644
--- a/tools/checkwps/checkwps.c
+++ b/tools/checkwps/checkwps.c
@@ -39,11 +39,14 @@ bool debug_wps = true;
39int wps_verbose_level = 0; 39int wps_verbose_level = 0;
40char *skin_buffer; 40char *skin_buffer;
41 41
42int errno; 42const char *sim_root_dir = ".";
43
44const struct settings_list *settings; 43const struct settings_list *settings;
45const int nb_settings = 0; 44const int nb_settings = 0;
46 45
46#ifdef SIMULATOR
47#error beep beep
48#endif
49
47/* static endianness conversion */ 50/* static endianness conversion */
48#define SWAP_16(x) ((typeof(x))(unsigned short)(((unsigned short)(x) >> 8) | \ 51#define SWAP_16(x) ((typeof(x))(unsigned short)(((unsigned short)(x) >> 8) | \
49 ((unsigned short)(x) << 8))) 52 ((unsigned short)(x) << 8)))
diff --git a/tools/checkwps/file.h b/tools/checkwps/file.h
deleted file mode 100644
index a14d7f5b91..0000000000
--- a/tools/checkwps/file.h
+++ /dev/null
@@ -1,16 +0,0 @@
1#ifndef MAX_PATH
2#define MAX_PATH 260
3#endif
4
5/* Wrapper - required for O_RDONLY */
6
7#include <fcntl.h>
8
9extern ssize_t read(int fd, void *buf, size_t count);
10extern ssize_t write(int fd, const void *buf, size_t count);
11extern off_t lseek(int fildes, off_t offset, int whence);
12extern int close(int fd);
13
14/* strlcpy doesn't belong here (it's in string.h in the rockbox sources),
15 * but this avoids complicated magic to override the system string.h */
16size_t strlcpy(char *dst, const char *src, size_t siz);
diff --git a/tools/database/SOURCES b/tools/database/SOURCES
index 5c9b971583..71593bba11 100644
--- a/tools/database/SOURCES
+++ b/tools/database/SOURCES
@@ -1,15 +1,21 @@
1#undef unix /* messes up filesystem-unix.c below */
1database.c 2database.c
2../../apps/misc.c 3../../apps/misc.c
3../../apps/tagcache.c 4../../apps/tagcache.c
4../../firmware/common/crc32.c 5../../firmware/common/crc32.c
5../../firmware/common/filefuncs.c 6../../firmware/common/pathfuncs.c
6../../firmware/common/strlcpy.c 7../../firmware/common/strlcpy.c
7../../firmware/common/strcasestr.c 8../../firmware/common/strcasestr.c
8../../firmware/common/structec.c 9../../firmware/common/structec.c
9../../firmware/common/unicode.c 10../../firmware/common/unicode.c
10../../firmware/target/hosted/debug-hosted.c 11../../firmware/target/hosted/debug-hosted.c
11../../firmware/logf.c 12../../firmware/logf.c
12../../uisimulator/common/io.c 13../../firmware/target/hosted/filesystem-unix.c
14#ifdef APPLICATION
15../../firmware/target/hosted/filesystem-app.c
16#else /* !APPLICATION */
17../../uisimulator/common/filesystem-sim.c
18#endif /* APPLICATION */
13#if CONFIG_CODEC != SWCODEC 19#if CONFIG_CODEC != SWCODEC
14../../lib/rbcodec/metadata/id3tags.c 20../../lib/rbcodec/metadata/id3tags.c
15../../lib/rbcodec/metadata/metadata.c 21../../lib/rbcodec/metadata/metadata.c
diff --git a/tools/root.make b/tools/root.make
index 4d58e26e8e..4e0ca7c4f0 100644
--- a/tools/root.make
+++ b/tools/root.make
@@ -356,22 +356,22 @@ endif
356 356
357ifeq (,$(findstring android, $(APP_TYPE))) 357ifeq (,$(findstring android, $(APP_TYPE)))
358 358
359simext: 359simext1:
360 $(SILENT)mkdir -p $@ 360 $(SILENT)mkdir -p $@
361 361
362bininstall: $(BUILDDIR)/$(BINARY) 362bininstall: $(BUILDDIR)/$(BINARY)
363 @echo "Installing your rockbox binary in your '$(RBPREFIX)' dir" 363 @echo "Installing your rockbox binary in your '$(RBPREFIX)' dir"
364 $(SILENT)cp $(BINARY) "$(RBPREFIX)/.rockbox/" 364 $(SILENT)cp $(BINARY) "$(RBPREFIX)/.rockbox/"
365 365
366install: simext 366install: simext1
367 @echo "Installing your build in your '$(RBPREFIX)' dir" 367 @echo "Installing your build in your '$(RBPREFIX)' dir"
368 $(SILENT)$(TOOLSDIR)/buildzip.pl $(VERBOSEOPT) --app=$(APPLICATION) -m "$(MODELNAME)" -i "$(TARGET_ID)" $(INSTALL) -z "zip -r0" -r "$(ROOTDIR)" --rbdir="$(RBDIR)" -f 0 $(TARGET) $(BINARY) 368 $(SILENT)$(TOOLSDIR)/buildzip.pl $(VERBOSEOPT) --app=$(APPLICATION) -m "$(MODELNAME)" -i "$(TARGET_ID)" $(INSTALL) -z "zip -r0" -r "$(ROOTDIR)" --rbdir="$(RBDIR)" -f 0 $(TARGET) $(BINARY)
369 369
370fullinstall: simext 370fullinstall: simext1
371 @echo "Installing a full setup in your '$(RBPREFIX)' dir" 371 @echo "Installing a full setup in your '$(RBPREFIX)' dir"
372 $(SILENT)$(TOOLSDIR)/buildzip.pl $(VERBOSEOPT) --app=$(APPLICATION) -m "$(MODELNAME)" -i "$(TARGET_ID)" $(INSTALL) -z "zip -r0" -r "$(ROOTDIR)" --rbdir="$(RBDIR)" -f 2 $(TARGET) $(BINARY) 372 $(SILENT)$(TOOLSDIR)/buildzip.pl $(VERBOSEOPT) --app=$(APPLICATION) -m "$(MODELNAME)" -i "$(TARGET_ID)" $(INSTALL) -z "zip -r0" -r "$(ROOTDIR)" --rbdir="$(RBDIR)" -f 2 $(TARGET) $(BINARY)
373 373
374symlinkinstall: simext 374symlinkinstall: simext1
375 @echo "Installing a full setup with links in your '$(RBPREFIX)' dir" 375 @echo "Installing a full setup with links in your '$(RBPREFIX)' dir"
376 $(SILENT)$(TOOLSDIR)/buildzip.pl $(VERBOSEOPT) --app=$(APPLICATION) -m "$(MODELNAME)" -i "$(TARGET_ID)" $(INSTALL) -z "zip -r0" -r "$(ROOTDIR)" --rbdir="$(RBDIR)" -f 2 $(TARGET) $(BINARY) -l 376 $(SILENT)$(TOOLSDIR)/buildzip.pl $(VERBOSEOPT) --app=$(APPLICATION) -m "$(MODELNAME)" -i "$(TARGET_ID)" $(INSTALL) -z "zip -r0" -r "$(ROOTDIR)" --rbdir="$(RBDIR)" -f 2 $(TARGET) $(BINARY) -l
377endif 377endif