搜索
bottom↓
回复: 1

根据bug报告修改的winavr20070122的mfile模板

[复制链接]

出0入0汤圆

发表于 2007-4-25 11:52:32 | 显示全部楼层 |阅读模式
根据sourceforge上的bug报告修改的winavr20070122的mfile模板,一共是3个bug,其中1702167还没官方的回应,另外2个已经确认将在下一个版本中修复。

我把我根据这3个报告修改过的模板发上来,不过还没怎么测试过。解压缩后复制到<你的winavr安装目录>\mfile下面,请先备份原来的makefile_template文件。

点击此处下载armok01151959.rar

阿莫论坛20周年了!感谢大家的支持与爱护!!

知道什么是神吗?其实神本来也是人,只不过神做了人做不到的事情 所以才成了神。 (头文字D, 杜汶泽)

出0入0汤圆

 楼主| 发表于 2007-4-25 11:53:21 | 显示全部楼层
以下是3个bug的具体内容:

[ 1684059 ] Makefile ASFLAGS parameters incorrect

You may monitor this Tracker item after you login (register an account, if you do not already have one)

Submitted By:

Nobody/Anonymous - nobody        

Date Submitted:

2007-03-19 19:35

Last Updated By:

arcanum - Comment added        

Date Last Updated:

2007-03-20 12:37

Number of Comments:

1        

Number of Attachments:

0

Category: (?)

None        

Group: (?)

None

Assigned To: (?)

Eric Weddington        

Priority: (?)

5

Status: (?)

Open        

Resolution: (?)

Fixed

Summary: (?)

Makefile ASFLAGS parameters incorrect        

Private: (?)

No



The following line in the Makefile template (WINAVR20070122) is incorrect:



ASFLAGS =

-Wa,-adhlns=$(<:.S=$(OBJDIR)/%.lst),-gstabs,--listing-cont-lines=100



A percentage sign is missing from the -adhlns parameter, causing incorrect

output to be omitted when a recompile is executed without being preceeded

by a make clean. The corrected line is:



ASFLAGS =

-Wa,-adhlns=$(<:%.S=$(OBJDIR)/%.lst),-gstabs,--listing-cont-lines=100



[ 1702167 ] Add ADEFS to makefile

You may monitor this Tracker item after you login (register an account, if you do not already have one)

Submitted By:

Nobody/Anonymous - nobody        

Date Submitted:

2007-04-17 05:10

Last Updated By:

Item Submitter - Tracker Item Submitted        

Date Last Updated:

No updates since submission

Number of Comments:

0        

Number of Attachments:

0

Category: (?)

None        

Group: (?)

None

Assigned To: (?)

Nobody/Anonymous        

Priority: (?)

5

Status: (?)

Open        

Resolution: (?)

None

Summary: (?)

Add ADEFS to makefile        

Private: (?)

No



The current WinAVR Makefile template does not contain any facilities for

passing flags to the assembler. This means that F_CPU and such is not

avaliable to the assembler. Passing CDEFS is not enough, as the "UL" and

other similar C-only tokens are not accepted by the assembler.



Proposed solution is to add in a new "ADEFS" variable as pass it to the

assembler.





In the template, below CDEFS, add:



# Place -D or -U options here for ASM sources

ADEFS = -DF_CPU=$(F_CPU)



And change the line:



ASFLAGS =

-Wa,-adhlns=$(<:%.S=$(OBJDIR)/%.lst),-gstabs,--listing-cont-lines=100



Into:



ASFLAGS = $(ADEFS)

-Wa,-adhlns=$(<:%.S=$(OBJDIR)/%.lst),-gstabs,--listing-cont-lines=100



[ 1648575 ] "Device:" blank in output window

You may monitor this Tracker item after you login (register an account, if you do not already have one)

Submitted By:

sklerozzz - sklerozzz        

Date Submitted:

2007-01-31 00:41

Last Updated By:

arcanum - Comment added        

Date Last Updated:

2007-03-19 09:12

Number of Comments:

1        

Number of Attachments:

0

Category: (?)

None         Group: (?)

None

Assigned To: (?)

Eric Weddington        

Priority: (?)

5

Status: (?)

Open        

Resolution: (?)

Accepted

Summary: (?)

"Device:" blank in output window        

Private: (?)

No



Device name is omitted in "AVR memory usage" section in output window.

To resolve, change line 427 of makefile_template from

ELFSIZE = $(SIZE) --format=avr $(TARGET).elf

to

ELFSIZE = $(SIZE) --mcu=$(MCU)--format=avr $(TARGET).elf


-----此内容被yyccaa于2007-04-25,11:54:12编辑过
回帖提示: 反政府言论将被立即封锁ID 在按“提交”前,请自问一下:我这样表达会给举报吗,会给自己惹麻烦吗? 另外:尽量不要使用Mark、顶等没有意义的回复。不得大量使用大字体和彩色字。【本论坛不允许直接上传手机拍摄图片,浪费大家下载带宽和论坛服务器空间,请压缩后(图片小于1兆)才上传。压缩方法可以在微信里面发给自己(不要勾选“原图),然后下载,就能得到压缩后的图片。注意:要连续压缩2次才能满足要求!!】。另外,手机版只能上传图片,要上传附件需要切换到电脑版(不需要使用电脑,手机上切换到电脑版就行,页面底部)。
您需要登录后才可以回帖 登录 | 注册

本版积分规则

手机版|Archiver|amobbs.com 阿莫电子技术论坛 ( 粤ICP备2022115958号, 版权所有:东莞阿莫电子贸易商行 创办于2004年 (公安交互式论坛备案:44190002001997 ) )

GMT+8, 2024-7-24 05:20

© Since 2004 www.amobbs.com, 原www.ourdev.cn, 原www.ouravr.com

快速回复 返回顶部 返回列表