资源简介
配合博客文章《【填坑】海思wifi平台Hi3861开发(2)》查看更佳,里面提到了boot链接第三方库的问题
代码片段和文件信息
#!/usr/bin/env python3
# coding=utf-8
“““
* Copyright (c) HiSilicon Technologies Co. Ltd. 2019-2020. All rights reserved.
* Description: SCons Compile environment init.
* Author: HiSilicon
* Create: 2019-12-31
“““
import os
import sys
from copy import deepcopy
from scons_utils import scons_usr_string_option
from scons_utils import scons_pre_check
from scons_utils import select_added_cfg
from scons_utils import scons_get_cfg_val
from scons_utils import condition_str
from scons_utils import scons_usr_bool_option
from scons_utils import scons_get_cfg_val
from scons_utils import traverse_subdir
#Module to be built by default.
compile_module = [‘drv‘ ‘sys‘ ‘os‘ ‘wpa‘ ‘mbedtls‘ ‘lwip‘ ‘at‘ ‘spiffs‘]
#Get settings from menuconfig
product_soft_ver_str = scons_usr_string_option(‘CONFIG_TARGET_SOFT_VER‘)
log_output_flag = False
#library path for linking
os_lib_path = [
os.path.join(‘build‘ ‘scripts‘)
os.path.join(‘build‘ ‘libs‘)
]
#library path for boot linking
os_boot_path = [
os.path.join(‘build‘ ‘libs‘)
]
“““
module_dir dictionary. Format as
module name : relative directory where the module is located
“““
module_dir = {
‘boot‘: os.path.join(‘boot‘ ‘flashboot‘)
‘loaderboot‘: os.path.join(‘boot‘ ‘loaderboot‘)
‘drv‘: os.path.join(‘platform‘ ‘drivers‘)
‘sys‘: os.path.join(‘platform‘ ‘system‘)
‘os‘: os.path.join(‘platform‘ ‘os‘ ‘Huawei_LiteOS‘)
‘mqtt‘: os.path.join(‘third_party‘ ‘paho.mqtt.c‘)
‘mbedtls‘: os.path.join(‘third_party‘ ‘mbedtls‘)
‘coap‘: os.path.join(‘third_party‘ ‘libcoap‘)
‘at‘: os.path.join(‘components‘ ‘at‘)
‘iperf‘: os.path.join(‘components‘ ‘iperf2‘)
‘cjson‘: os.path.join(‘third_party‘ ‘cjson‘)
‘spiffs‘: os.path.join(‘third_party‘ ‘spiffs‘)
‘lwip‘: os.path.join(‘components‘ ‘lwip_sack‘)
‘wpa‘: os.path.join(‘platform‘ ‘os‘ ‘Huawei_LiteOS‘ ‘net‘ ‘wpa_supplicant‘)
‘hilink‘: os.path.join(‘components‘ ‘hilink‘)
‘harmonyos‘: os.path.join(‘components‘ ‘harmonyos‘ ‘kv‘)
}
“““
proj_lib_cfg dictionary contains the sub-folders which includes the source code.
Format as
module name : {library name:[“folder1“ “folder2“]}
“““
proj_lib_cfg = {
#flashboot
‘boot‘:{ #module name
‘boot‘: [ #library name
‘startup‘ #source code folders
os.path.join(‘drivers‘ ‘lsadc‘)
os.path.join(‘drivers‘ ‘flash‘)
os.path.join(‘drivers‘ ‘efuse‘)
os.path.join(‘drivers‘ ‘gpio‘)
os.path.join(‘drivers‘ ‘io‘)
os.path.join(‘common‘ ‘nvm‘)
os.path.join(‘common‘ ‘partition_table‘)
os.path.join(‘..‘ ‘..‘ ‘third_party‘ ‘u-boot-v2019.07‘ ‘lib‘)
os.path.join(‘..‘ ‘commonboot‘ ‘efuse‘)
os.path.join(‘..‘ ‘commonboot‘ ‘flash‘)
‘lzmaram‘
‘upg‘
‘secure‘
]
}
#loaderboot
‘loaderboot‘:{ #module name
‘loaderboot‘: [ #librar
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
目录 0 2020-09-10 09:56 测试patch_HSCP2020073076109_2020091001\
目录 0 2020-09-10 09:56 测试patch_HSCP2020073076109_2020091001\new\
目录 0 2020-09-10 09:56 测试patch_HSCP2020073076109_2020091001\new\boot\
目录 0 2020-09-10 09:56 测试patch_HSCP2020073076109_2020091001\new\boot\flashboot\
文件 4230 2020-09-10 17:19 测试patch_HSCP2020073076109_2020091001\new\boot\flashboot\Makefile
文件 6866 2020-09-10 17:19 测试patch_HSCP2020073076109_2020091001\new\boot\flashboot\SConsc
文件 2211 2020-09-10 17:19 测试patch_HSCP2020073076109_2020091001\new\boot\flashboot\module_config.mk
目录 0 2020-09-10 09:56 测试patch_HSCP2020073076109_2020091001\new\boot\loaderboot\
文件 3911 2020-09-10 17:19 测试patch_HSCP2020073076109_2020091001\new\boot\loaderboot\Makefile
文件 6167 2020-09-10 17:19 测试patch_HSCP2020073076109_2020091001\new\boot\loaderboot\SConsc
文件 1747 2020-09-10 17:19 测试patch_HSCP2020073076109_2020091001\new\boot\loaderboot\module_config.mk
目录 0 2020-09-10 09:56 测试patch_HSCP2020073076109_2020091001\new\build\
目录 0 2020-09-10 09:56 测试patch_HSCP2020073076109_2020091001\new\build\sc
文件 31201 2020-09-10 17:19 测试patch_HSCP2020073076109_2020091001\new\build\sc
文件 14585 2020-09-10 17:19 测试patch_HSCP2020073076109_2020091001\new\build\sc
目录 0 2020-09-10 09:56 测试patch_HSCP2020073076109_2020091001\old\
目录 0 2020-09-10 09:56 测试patch_HSCP2020073076109_2020091001\old\boot\
目录 0 2020-09-10 09:56 测试patch_HSCP2020073076109_2020091001\old\boot\flashboot\
文件 4060 2020-08-07 21:48 测试patch_HSCP2020073076109_2020091001\old\boot\flashboot\Makefile
文件 6675 2020-08-07 21:48 测试patch_HSCP2020073076109_2020091001\old\boot\flashboot\SConsc
文件 2215 2020-08-07 21:48 测试patch_HSCP2020073076109_2020091001\old\boot\flashboot\module_config.mk
目录 0 2020-09-10 09:56 测试patch_HSCP2020073076109_2020091001\old\boot\loaderboot\
文件 3741 2020-08-07 21:48 测试patch_HSCP2020073076109_2020091001\old\boot\loaderboot\Makefile
文件 5976 2020-08-07 21:48 测试patch_HSCP2020073076109_2020091001\old\boot\loaderboot\SConsc
文件 1751 2020-08-07 21:48 测试patch_HSCP2020073076109_2020091001\old\boot\loaderboot\module_config.mk
目录 0 2020-09-10 09:55 测试patch_HSCP2020073076109_2020091001\old\build\
目录 0 2020-09-10 09:55 测试patch_HSCP2020073076109_2020091001\old\build\sc
文件 31116 2020-08-07 21:59 测试patch_HSCP2020073076109_2020091001\old\build\sc
文件 13988 2020-08-07 21:48 测试patch_HSCP2020073076109_2020091001\old\build\sc
- 上一篇:幸运数字抽奖软件
- 下一篇:数据库课程设计工厂管理系统
相关资源
- Hi3559A V100R001C02SPC030.txt191518
- IMX385对接海思原理图
- 海思Hi3521A移植Nginx指南
- 海思Hi3798MV100芯片电信HG680-J分区表
- Hi3516A_V100R001C01SPC040 sdk 百度云 海思开
- 海思HI3536
- 海思3521D V100 SDK 百度网盘.txt
- 海思IVE用户图像
- Hi3519AV100 硬件设计用户指南
- 海思网络摄像头源码
- 海思sil9135 hdmi驱动
- 海思Hi3518E、VLC播放
- Hi3518E V200R001C01SPC050 sdk
- 海思3518中文SDK文档
- Hi3518E V200R001C01SPC030 sdk 百度云 海思开
- Hi3518E V200R001C01SPC040 sdk 百度云 海思开
- Hi3518EV300 参考设计低功耗硬件设计指
- 海思hi3520 rtsp源码
- Hi3519AV100 硬件设计用户指南.pdf
- 海思Hi3796MV200 Data Sheet 数据手册
- 海思平台嵌入式系统开发总结.pdf
- 海思sil9024/sil9022驱动
- 海思Hi3518e全套资料
- HI3536芯片开发手册
- 海思HI35xx平台CPU芯片温度监控驱动及
- 海思方案通用刷机工具IDT 版本号V1.
- 海思Linux开发环境 用户指南
- 海思3559AV100 SDK开发包
- 海思HI3516EV200 SDK 网盘链接
- 海思H.265解码库
评论
共有 条评论