2023-08-30 16:21:18 +08:00
|
|
|
@echo off
|
2024-09-03 11:16:08 +08:00
|
|
|
rem SPDX-License-Identifier: Apache-2.0
|
2023-08-30 16:21:18 +08:00
|
|
|
rem
|
|
|
|
|
rem Copyright (C) 2023 ArtInChip Technology Co., Ltd
|
|
|
|
|
|
2024-04-03 16:40:57 +08:00
|
|
|
if NOT exist %SDK_PRJ_TOP_DIR%\.config (
|
2023-08-30 16:21:18 +08:00
|
|
|
echo Not lunch project yet
|
2024-04-03 16:40:57 +08:00
|
|
|
goto ct_exit
|
2023-08-30 16:21:18 +08:00
|
|
|
)
|
2024-04-03 16:40:57 +08:00
|
|
|
|
|
|
|
|
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%
|
|
|
|
|
|
|
|
|
|
:ct_exit
|