From a1aee22a4fc422efb6a46cf275febf6263aa271f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C5=82=20=C5=81yszczek?= Date: Fri, 29 Jul 2022 00:18:29 +0200 Subject: [PATCH] boards/stm32wl5/flash: define default procfs mountpoint MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit When nsh is not enabled, CONFIG_NSH_PROC_MOUNTPOINT is not defined. If in that case procfs is used, compilation will result in error. Define sane default path for procfs in case nsh is not enable but procfs is. Signed-off-by: Michał Łyszczek --- boards/arm/stm32wl5/nucleo-wl55jc/src/stm32_appinit.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/boards/arm/stm32wl5/nucleo-wl55jc/src/stm32_appinit.c b/boards/arm/stm32wl5/nucleo-wl55jc/src/stm32_appinit.c index 30d0629e517..ce76a4d883c 100644 --- a/boards/arm/stm32wl5/nucleo-wl55jc/src/stm32_appinit.c +++ b/boards/arm/stm32wl5/nucleo-wl55jc/src/stm32_appinit.c @@ -48,6 +48,12 @@ * Pre-processor Definitions ****************************************************************************/ +/* Define proc mountpoint in case procfs is used but nsh is not */ + +#ifndef CONFIG_NSH_PROC_MOUNTPOINT +#define CONFIG_NSH_PROC_MOUNTPOINT "/proc" +#endif + /**************************************************************************** * Public Functions ****************************************************************************/