立即注册
查看: 1590|回复: 3

[MTK软件经验分享] [FAQ12618]编译错误:make\comp.mak:150:make\\.mak: No such file or directory M...

已绑定手机
发表于 2018-12-12 15:58:06 | 显示全部楼层 |阅读模式 来自 广东省深圳市
[FAQ12618]编译错误:make\comp.mak:150:make\\.mak: No such file or directory Module is in DEFALUT mode

当遇到编译错误:make\comp.mak:150: make\\.mak: No such file or directory Module is in DEFALUT mode,这是由于工程配置需要编译某个模块,但工程目录下并没有该模块的配置文件(make\<module_folder>),所以出现这种找不到配置文件的错误。

由于该报错提示并没有给出明确的模块的名字,这对debug带来一定难度。
下面讲述一种方法,来找出这些模块。




Step1: 在gsm2.mak文件中找到标号为backup的一段代码:
如下:
ifneq ($(strip $(MODIS_CONFIG)),TRUE)
backup : getoptions
# mbis time probe

@if /I "$(strip $(MBIS_EN))" EQU "TRUE" (@perl -e "print 'T_S,$@,T,'. time
. \"\n\"";>>$(MBIS_BUILD_TIME_TMP))
@if not exist tools\prebuild_backup \
md tools\prebuild_backup

@if exist $(strip $(TARGDIR))\$(strip $(LIS_FILE)) \
(copy /y $(strip $(TARGDIR))\$(strip $(LIS_FILE))
tools\prebuild_backup\$(basename $(strip $(LIS_FILE)))_bak.lis > nul)

@if exist $(strip $(COMPLOGDIR))\auto_adjust_mem.log (del /Q /F $(strip
$(COMPLOGDIR))\auto_adjust_mem.log)

@if exist $(strip $(COMPLOGDIR))\aapmc_info.log (del /Q /F $(strip
$(COMPLOGDIR))\aapmc_info.log)
@if exist $(strip $(COMPLOGDIR))\ckImgSize_postbuild.log (del /Q /F

$(strip $(COMPLOGDIR))\ckImgSize_postbuild.log)
@if exist $(strip $(TARGDIR))\VIVA_DEBUG (rd /S /Q $(strip
$(TARGDIR))\VIVA_DEBUG)

@if exist $(strip $(TARGDIR))\DEMAND_PAGING_DEBUG (rd /S /Q $(strip
$(TARGDIR))\DEMAND_PAGING_DEBUG)

@if exist $(strip $(TARGDIR))\FILE_SYSTEM_DEBUG (rd /S /Q $(strip
$(TARGDIR))\FILE_SYSTEM_DEBUG)

@if exist $(strip $(TARGDIR))\BOOTLOADER_DEBUG (rd /S /Q $(strip
$(TARGDIR))\BOOTLOADER_DEBUG)
# mbis time probe

@if /I "$(strip $(MBIS_EN))" EQU "TRUE" (@perl -e "print 'T_E,$@,T,'. time
. \"\n\"";>>$(MBIS_BUILD_TIME_TMP)) else
backup:
endif


在这段代码末尾添加一个命令(要tab对齐):@echo $(strip $(COMPLIBLIST)) >complist.txt
即修改后的代码如下:

ifneq ($(strip $(MODIS_CONFIG)),TRUE)
backup : getoptions
# mbis time probe

游客,如果您要查看本帖隐藏内容请回复




已绑定手机
发表于 2018-12-16 11:20:03 | 显示全部楼层 来自 广东省广州市
我也是这个错误,麻烦。。。。没有具体说明的错误
已绑定手机
已实名认证
已企业认证
我是一牛网创始人
欢迎半导体原厂和其他想要合作的请联系我
电话:18902843661(微信同号,加号备注:XX原厂/XX代理/XX方案/XX工程师或技术)
发表于 2018-12-16 11:31:06 | 显示全部楼层 来自 广东省深圳市
这个上面的说明,应该很清楚了吧?这是mtk原厂的faq资料,你可以持续关注~~
已绑定手机
发表于 2018-12-16 12:23:20 | 显示全部楼层 来自 广东省广州市
这个方法也麻烦,有些xxx.lib也没有对应的make/xxx
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

合作/建议

TEL: 19168984579

工作时间:
周一到周五 9:00-11:30 13:30-19:30
  • 扫一扫关注公众号
  • 扫一扫打开小程序
Copyright © 2013-2024 一牛网 版权所有 All Rights Reserved. 帮助中心|隐私声明|联系我们|手机版|粤ICP备13053961号|营业执照|EDI证
在本版发帖搜索
扫一扫添加微信客服
QQ客服返回顶部
快速回复 返回顶部 返回列表