这篇是基于QC的Brew平台编译其ARM版target的makefile的经验:
1.在AMOI的ADS1.2的基础上,请确认系统环境变量中存在以下变量(否则手工添加):
ARMHOME c:\apps\ads120
ARMDLL c:\apps\ads120\bin
ARMCONF c:\apps\ads120\bin
ARMINC c:\apps\ads120\include
ARMLIB c:\apps\ads120\lib
2. 为了支持global, static 变量,请安装QC的工具:
3. 为了解决一些ADS1.2的bug,请打补丁:
4. 使用Brew plug-in for VC生成 *.mak之后,一般需要将以下内容修改:
(1).将 HEXTOOL = $(ARMBIN)\fromelf # ARM ADS utility to create hex file from image
替换成:HEXTOOL = $(ARMBIN)\elf2mod # ARM ADS utility to create hex file from image
(2).将 LFLAGS = $(ROPILINK) -rwpi -entry 0x8000#
替换成:LFLAGS = -split -reloc -entry AEEMod_Load
(3).将 CPU = -cpu ARM7TDMI # ARM7TDMI target processor
替换成:CPU = -cpu ARM926EJ-S # ARM9TDMI target processor (实际的CPU配置)
请参考:
|
文件: |
makefile.zip |
大小: |
28KB |
下载: |
下载 | |
阅读(4501) | 评论(3) | 转发(0) |