Files
luban-lite-t3e-pro/tools/scripts/onestep/ctarget.bat

19 lines
479 B
Batchfile
Raw Normal View History

2023-08-30 16:21:18 +08:00
@echo off
rem SPDX-License-Identifier: GPL-2.0+
rem
rem Copyright (C) 2023 ArtInChip Technology Co., Ltd
if exist %SDK_PRJ_TOP_DIR%\.config (
set /P defconfig=<%SDK_PRJ_TOP_DIR%\.defconfig
for /f "tokens=1* delims=_" %%a in ("%defconfig%") do (
set chip=%%a
)
for /f "tokens=2* delims=_" %%a in ("%defconfig%") do (
set board=%%a
)
set target_dir=%SDK_PRJ_TOP_DIR%\target\%chip%\%board%
if exist %target_dir% cd /d %target_dir%
) else (
echo Not lunch project yet
)