sim: hostfs: Stop assuming CONFIG_NAME_MAX=32

This commit is contained in:
YAMAMOTO Takashi 2020-03-26 10:03:13 +09:00 committed by patacongo
parent f89ccf873e
commit 27aa16111c
2 changed files with 2 additions and 1 deletions

View File

@ -190,6 +190,7 @@ endif
ifeq ($(CONFIG_FS_HOSTFS),y) ifeq ($(CONFIG_FS_HOSTFS),y)
ifneq ($(CONFIG_FS_HOSTFS_RPMSG),y) ifneq ($(CONFIG_FS_HOSTFS_RPMSG),y)
HOSTSRCS += up_hostfs.c HOSTSRCS += up_hostfs.c
HOSTCFLAGS += -DCONFIG_NAME_MAX=$(CONFIG_NAME_MAX)
up_hostfs.c: hostfs.h up_hostfs.c: hostfs.h

View File

@ -91,7 +91,7 @@
/* Should match definition in include/limits.h */ /* Should match definition in include/limits.h */
#define NUTTX_NAME_MAX 32 #define NUTTX_NAME_MAX CONFIG_NAME_MAX
#endif /* __SIM__ */ #endif /* __SIM__ */