Files

15 lines
497 B
Python
Raw Permalink Normal View History

2026-01-27 18:28:38 +08:00
from pathlib import Path
import os
import shutil
import platform
2026-01-27 18:28:38 +08:00
os.environ['SDK_PATH'] = os.path.normpath(str(Path(os.getcwd())/'..'/'..'/'SDK'))
os.environ['EXT_COMPONENTS_PATH'] = os.path.normpath(str(Path(os.getcwd())/'..'/'..'/'ext_components'))
if platform.machine() != 'aarch64':
os.environ['CONFIG_TOOLCHAIN_PATH'] ="/opt/gcc-linaro-7.5.0-2019.12-x86_64_aarch64-linux-gnu/bin"
2026-01-27 18:28:38 +08:00
with open(str(Path(os.getcwd())/'..'/'..'/'SDK'/'tools'/'scons'/'project.py')) as f:
exec(f.read())