From 57f76784c5bd13933be89fecb513f7b4a8c8e4be Mon Sep 17 00:00:00 2001 From: Solomon Peachy Date: Sat, 23 Mar 2024 19:56:01 -0400 Subject: Fix build for hosted targets. Basically the namespace code _never_ actually linked properly on hosted targets, but nobody noticed as there were no users, causing the symbols to be dropped with no fuss. The tagcache namespace awareness stuff pulled in the namespace code, which made things go kaboom due to it relying on native FAT parsing code. Change-Id: Idef5f44b026c875022436809ca1f5015eece714a --- apps/tagcache.c | 2 +- firmware/SOURCES | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/apps/tagcache.c b/apps/tagcache.c index c8900f5c38..adfe148db4 100644 --- a/apps/tagcache.c +++ b/apps/tagcache.c @@ -4991,7 +4991,7 @@ void do_tagcache_build(const char *path[]) roots_ll[0].path = path[0]; roots_ll[0].next = NULL; -#if defined HAVE_MULTIVOLUME && !defined(SIMULATOR) && !defined(__PCTOOL__) +#if defined(HAVE_MULTIVOLUME) && !defined(SIMULATOR) && !defined(__PCTOOL__) && !defined(PLATFORM_NATIVE) extern bool ns_volume_is_visible(int volume); /*rb_namespace.c*/ /* i is for the path vector, j for the roots_ll array */ int i = 1, j = 1; diff --git a/firmware/SOURCES b/firmware/SOURCES index 0cfea38272..83e1f048d7 100644 --- a/firmware/SOURCES +++ b/firmware/SOURCES @@ -238,7 +238,9 @@ common/dircache.c common/pathfuncs.c common/fdprintf.c common/linked_list.c +#ifndef PLATFORM_NATIVE common/rb_namespace.c +#endif common/rectangle.c common/strcasecmp.c common/strcasestr.c -- cgit v1.2.3