dbtool: Fix red.
Apparently _most_ targets have a dbtool built as a simulator variant, but _some_ are built as an application target. This commit fixes simulator-based targets, which weren't ever broken. (Prior commits fixed things for _app_ targets, which haven't worked since at least 2020, maybe never..) Change-Id: I7fef2b10e5128059b293118617701630bf3dc1fb
This commit is contained in:
parent
8bc7ba5d22
commit
0f941488af
1 changed files with 31 additions and 0 deletions
|
@ -30,3 +30,34 @@ int main(int argc, char **argv)
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
/* needed for io.c */
|
||||||
|
const char *sim_root_dir = ".";
|
||||||
|
|
||||||
|
/* stubs to avoid including thread-sdl.c */
|
||||||
|
#include "kernel.h"
|
||||||
|
void mutex_init(struct mutex *m)
|
||||||
|
{
|
||||||
|
(void)m;
|
||||||
|
}
|
||||||
|
|
||||||
|
void mutex_lock(struct mutex *m)
|
||||||
|
{
|
||||||
|
(void)m;
|
||||||
|
}
|
||||||
|
|
||||||
|
void mutex_unlock(struct mutex *m)
|
||||||
|
{
|
||||||
|
(void)m;
|
||||||
|
}
|
||||||
|
|
||||||
|
void sim_thread_lock(void *me)
|
||||||
|
{
|
||||||
|
(void)me;
|
||||||
|
}
|
||||||
|
|
||||||
|
void * sim_thread_unlock(void)
|
||||||
|
{
|
||||||
|
return (void*)1;
|
||||||
|
}
|
||||||
|
|
Loading…
Reference in a new issue