50 lines
1.5 KiB
Plaintext
50 lines
1.5 KiB
Plaintext
说明:
|
||
|
||
APP目录包含spi_ethernet功能以及mifi网络切换相关接口;
|
||
|
||
以太网及mifi功能编译:
|
||
1.将APP目录下内容拷贝到PLAT目录中;
|
||
|
||
2.以太网功能编译:
|
||
方法一:
|
||
1)将project\ec7xx_0h00\ap\apps\bootloader文件夹拷贝到project\ec7xx_ref_1h00\ap\apps;
|
||
|
||
2)将project\ec7xx_ref_1h00\ap\apps\bootloader\GCC\ec7xx_0h00_flash.ld文件重命名为ec7xx_ref_1h00_flash.ld
|
||
|
||
3)修改project\ec7xx_ref_1h00\ap\apps\bootloader\GCC\Makefile中AVAILABLE_TARGETS变量:
|
||
AVAILABLE_TARGETS = ec7xx_ref_1h00
|
||
|
||
4)编译:ec716s_openbuild_ref_1h00.bat spi_ethernet
|
||
|
||
方法二:
|
||
将spi_ethernet工程拷贝到project\ec7xx_0h00\ap\apps中,再在需要编译的bat脚本中添加编译选项即可。
|
||
注意需要同步修改spi_ethernet工程Makefile中AVAILABLE_TARGET配置以及Makefile.rules路径:
|
||
AVAILABLE_TARGETS = ec7xx_0h00
|
||
|
||
include $(TOP)/PLAT/tools/scripts/Makefile.rules
|
||
|
||
#include $(TOP)/PLAT/project/$(TARGET)/$(CORE)/apps/Makefile.rules
|
||
|
||
3.mifi项目编译:
|
||
|
||
1)不包含mifi网络切换(STA<<=====>>softAP)功能,直接使用默认配置编译即可,如:GccBuild_ec716s.bat spi_2boards
|
||
|
||
2)包含mifi网络切换(STA<<=====>>softAP)功能,请在tools\scripts\Makefile.rules添加subsys路径编译规则:
|
||
|
||
#-------------------------------------------------------------------------------
|
||
# Rules
|
||
#-------------------------------------------------------------------------------
|
||
.
|
||
.
|
||
.
|
||
include $(TOP)/PLAT/middleware/thirdparty/Makefile.inc
|
||
/*add build rools of subsys */
|
||
ifeq ($(SUBSYS_ENABLE),y)
|
||
include $(TOP)/PLAT/subsys/Makefile.inc
|
||
|
||
endif
|
||
|
||
3)然后使用默认配置编译即可,如:GccBuild_ec716s.bat spi_2boards
|
||
|
||
|