2 Star 4 Fork 5

30toB/AIC-D12x-BASE

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
SConscript 1.61 KB
一键复制 编辑 原始数据 按行查看 历史
30toB 提交于 2024-08-15 23:41 +08:00 . 增加uboot,将uboot和app集成到一个工程中
Import('AIC_ROOT')
Import('PRJ_CHIP')
Import('PRJ_BOARD')
Import('PRJ_KERNEL')
Import('PRJ_APP')
import os
from building import *
objs = []
# chip
rel_path = os.path.join('bsp/artinchip/sys/' + PRJ_CHIP, 'SConscript')
abs_path = os.path.join(AIC_ROOT, rel_path)
if os.path.isfile(abs_path):
objs = objs + SConscript(rel_path)
# board
rel_path = os.path.join('target/' + PRJ_CHIP, PRJ_BOARD, 'SConscript')
abs_path = os.path.join(AIC_ROOT, rel_path)
if os.path.isfile(abs_path):
objs = objs + SConscript(rel_path)
# kernel/xxx
rel_path = os.path.join('kernel', PRJ_KERNEL, 'SConscript')
abs_path = os.path.join(AIC_ROOT, rel_path)
if os.path.isfile(abs_path):
objs = objs + SConscript(rel_path)
# kernel/common
rel_path = os.path.join('kernel', 'common', 'SConscript')
abs_path = os.path.join(AIC_ROOT, rel_path)
if os.path.isfile(abs_path):
objs = objs + SConscript(rel_path)
# bsp
rel_path = os.path.join('bsp', 'SConscript')
abs_path = os.path.join(AIC_ROOT, rel_path)
if os.path.isfile(abs_path):
objs = objs + SConscript(rel_path)
# packages
rel_path = os.path.join('packages', 'SConscript')
abs_path = os.path.join(AIC_ROOT, rel_path)
if os.path.isfile(abs_path):
objs = objs + SConscript(rel_path)
# app
if PRJ_APP == "bootloader":
rel_path = os.path.join('bootloader', 'SConscript')
abs_path = os.path.join(AIC_ROOT, rel_path)
if os.path.isfile(abs_path):
objs = objs + SConscript(rel_path)
else:
rel_path = os.path.join('application', 'SConscript')
abs_path = os.path.join(AIC_ROOT, rel_path)
if os.path.isfile(abs_path):
objs = objs + SConscript(rel_path)
Return('objs')
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
C
1
https://gitee.com/keqian/Aic_d12x.git
git@gitee.com:keqian/Aic_d12x.git
keqian
Aic_d12x
AIC-D12x-BASE
master

搜索帮助