diff options
author | Solomon Peachy <pizza@shaftnet.org> | 2023-05-25 16:03:33 -0400 |
---|---|---|
committer | Solomon Peachy <pizza@shaftnet.org> | 2023-05-25 16:05:59 -0400 |
commit | 8bc7ba5d221f8bb20ec94854609b9d32ecd8816e (patch) | |
tree | 01feefcf0e4c43b153349339b34e29a911178cda /tools | |
parent | e803daae0a1c42dbee0417d883a1944c65916cce (diff) | |
download | rockbox-8bc7ba5d221f8bb20ec94854609b9d32ecd8816e.tar.gz rockbox-8bc7ba5d221f8bb20ec94854609b9d32ecd8816e.zip |
dbtool: More fixes to dbtool operation
Now properly treats current directory as "/"
Change-Id: I54357a65f2fda7d2cfb56ff18a044ae10b87bbce
Diffstat (limited to 'tools')
-rwxr-xr-x | tools/configure | 2 | ||||
-rw-r--r-- | tools/database/database.c | 35 |
2 files changed, 3 insertions, 34 deletions
diff --git a/tools/configure b/tools/configure index 64b238bb6d..1f758a967d 100755 --- a/tools/configure +++ b/tools/configure | |||
@@ -4270,7 +4270,7 @@ fi | |||
4270 | simcc "database-sdl" | 4270 | simcc "database-sdl" |
4271 | toolset=''; | 4271 | toolset=''; |
4272 | appsdir='$(ROOTDIR)/tools/database'; | 4272 | appsdir='$(ROOTDIR)/tools/database'; |
4273 | rbdir="./.rockbox" | 4273 | |
4274 | case $uname in | 4274 | case $uname in |
4275 | CYGWIN*|MINGW*) | 4275 | CYGWIN*|MINGW*) |
4276 | output="database_${modelname}.exe" | 4276 | output="database_${modelname}.exe" |
diff --git a/tools/database/database.c b/tools/database/database.c index 713d379c41..6eab245f65 100644 --- a/tools/database/database.c +++ b/tools/database/database.c | |||
@@ -23,41 +23,10 @@ int main(int argc, char **argv) | |||
23 | 23 | ||
24 | /* / is actually ., will get translated in io.c | 24 | /* / is actually ., will get translated in io.c |
25 | * (with the help of sim_root_dir below */ | 25 | * (with the help of sim_root_dir below */ |
26 | const char *paths[] = { "./", NULL }; | 26 | const char *paths[] = { "/", NULL }; |
27 | tagcache_init(); | 27 | tagcache_init(); |
28 | do_tagcache_build(paths); | 28 | do_tagcache_build(paths); |
29 | tagcache_reverse_scan(); | 29 | tagcache_reverse_scan(); |
30 | 30 | ||
31 | return 0; | 31 | return 0; |
32 | } | 32 | } |
33 | |||
34 | /* needed for io.c */ | ||
35 | const char *sim_root_dir = "."; | ||
36 | |||
37 | /* stubs to avoid including thread-sdl.c */ | ||
38 | #include "kernel.h" | ||
39 | void mutex_init(struct mutex *m) | ||
40 | { | ||
41 | (void)m; | ||
42 | } | ||
43 | |||
44 | void mutex_lock(struct mutex *m) | ||
45 | { | ||
46 | (void)m; | ||
47 | } | ||
48 | |||
49 | void mutex_unlock(struct mutex *m) | ||
50 | { | ||
51 | (void)m; | ||
52 | } | ||
53 | |||
54 | void sim_thread_lock(void *me) | ||
55 | { | ||
56 | (void)me; | ||
57 | } | ||
58 | |||
59 | void * sim_thread_unlock(void) | ||
60 | { | ||
61 | return (void*)1; | ||
62 | } | ||
63 | |||