当前位置: 首页 > 工具软件 > mak > 使用案例 >

linux在mak时候出现错误,[FAQ12618]编译错误:make\comp.mak:150:make\\.mak: No such file or directory M......

单于轶
2023-12-01

[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\),所以出现这种找不到配置文件的错误。

由于该报错提示并没有给出明确的模块的名字,这对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

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

 类似资料: