Files
luban-lite-t3e-pro/tools/scripts/onestep/app_menuconfig.bat
刘可亮 803cac77d5 V1.0.6
2024-09-03 11:16:08 +08:00

31 lines
661 B
Batchfile

@echo off
rem SPDX-License-Identifier: Apache-2.0
rem
rem Copyright (C) 2023-2024 ArtInChip Technology Co., Ltd
setlocal enabledelayedexpansion
if NOT exist %SDK_PRJ_TOP_DIR%\.config (
echo Not lunch project yet
goto exit_label
)
set /P defconfig=<%SDK_PRJ_TOP_DIR%\.defconfig
set defconfig=!defconfig:~0,-1!
for /f "tokens=3* delims=_" %%a in ("%defconfig%") do (
set kernel=%%a
)
for /f "tokens=4* delims=_" %%a in ("%defconfig%") do (
set app=%%a
)
if "%kernel%_%app%" == "baremetal_bootloader" (
echo Not lunch application yet.
goto exit_label
)
call scons --menuconfig -C %SDK_PRJ_TOP_DIR%
:exit_label
endlocal