The dedicated windows tool at APPSDIR/tools/mkkconfig.bat uses , which is not a windows shell variable, and is left uninitialized, but in fact should be the current directory.

This commit is contained in:
Sebastien Lorquet 2017-05-22 07:34:13 -06:00 committed by Gregory Nutt
parent 2e0796bf40
commit 9043459c7b

View File

@ -75,6 +75,9 @@ REM GOTO :End
REM ) REM )
) )
REM Get the current directory
SET APPSDIR=%~dp0
Echo # > %kconfig% Echo # > %kconfig%
Echo # For a description of the syntax of this configuration file, >> %kconfig% Echo # For a description of the syntax of this configuration file, >> %kconfig%
Echo # see the file kconfig-language.txt in the NuttX tools repository. >> %kconfig% Echo # see the file kconfig-language.txt in the NuttX tools repository. >> %kconfig%
@ -89,10 +92,9 @@ IF %menu% NEQ "" (
DIR /B /A:D >_tmp_.dat DIR /B /A:D >_tmp_.dat
Echo source "$APPSDIR/builtin/Kconfig" >> %kconfig%
FOR /F "tokens=*" %%s IN (_tmp_.dat) do ( FOR /F "tokens=*" %%s IN (_tmp_.dat) do (
IF EXIST %%s\Kconfig ( IF EXIST %%s\Kconfig (
Echo source "$APPSDIR/%%s/Kconfig" >> %kconfig% Echo source "%APPSDIR%/%%s/Kconfig" >> %kconfig%
) )
) )
DEL _tmp_.dat DEL _tmp_.dat