From 27aa16111cc2934cf214ca9e976d0d57f5e02a4f Mon Sep 17 00:00:00 2001 From: YAMAMOTO Takashi Date: Thu, 26 Mar 2020 10:03:13 +0900 Subject: [PATCH] sim: hostfs: Stop assuming CONFIG_NAME_MAX=32 --- arch/sim/src/Makefile | 1 + include/nuttx/fs/hostfs.h | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/arch/sim/src/Makefile b/arch/sim/src/Makefile index 8aced456f7..a454cafc41 100644 --- a/arch/sim/src/Makefile +++ b/arch/sim/src/Makefile @@ -190,6 +190,7 @@ endif ifeq ($(CONFIG_FS_HOSTFS),y) ifneq ($(CONFIG_FS_HOSTFS_RPMSG),y) HOSTSRCS += up_hostfs.c + HOSTCFLAGS += -DCONFIG_NAME_MAX=$(CONFIG_NAME_MAX) up_hostfs.c: hostfs.h diff --git a/include/nuttx/fs/hostfs.h b/include/nuttx/fs/hostfs.h index dd7cb835d8..73f16c970f 100644 --- a/include/nuttx/fs/hostfs.h +++ b/include/nuttx/fs/hostfs.h @@ -91,7 +91,7 @@ /* Should match definition in include/limits.h */ -#define NUTTX_NAME_MAX 32 +#define NUTTX_NAME_MAX CONFIG_NAME_MAX #endif /* __SIM__ */