<?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" />
快乐虾
http://blog.youkuaiyun.com/lights_joy/
lights@hb165.com
本文适用于
ADI bf561 DSP
uclinux-2008r1.5-rc3
Visual DSP++ 5.0(update 5)
欢迎转载,但请保留作者信息
在编译head.s时有一错误:
[Error pp0051] "..\linux-2.6.x\include\asm/mach/blackfin.h":36 Failed to open '#include' file 'bf561.h'
在linux-2.6.x\include\asm/mach/blackfin.h这个文件中有一行:
#include "bf561.h"
错误指向的就是这一行,查看目录可以看到bf561.h的确和blackfin.h在同一个目录下,错误的原因在于vdsp的汇编器不会在相对路径中查找文件,只会在绝对路径中查找包含的文件,因此将上述语句改为:
#include <asm/mach/bf561.h>
下面还有几个相似的,一块改过来:
#include <asm/mach/mem_map.h>
#include <asm/mach/defBF561.h>
#include <asm/mach/anomaly.h>
这里还有个地方比较有意思,以相对路径的方式包含defbf561.h并不会报错,原因在于vdsp的系统包含目录下存在一个同名的文件。当然我们还是把它改过来以使用uclinux的文件。
参考资料
uclinux-2008R1.5-RC3(bf561)到VDSP5的移植(1):前言(<?xml:namespace prefix = st1 ns = "urn:schemas-microsoft-com:office:smarttags" /><chsdate w:st="on" isrocdate="False" islunardate="False" day="12" month="1" year="2009">2009-1-12</chsdate>)
uclinux-2008R1.5-RC3(bf561)到VDSP5的移植(2):代码注释(<chsdate w:st="on" isrocdate="False" islunardate="False" day="12" month="1" year="2009">2009-1-12</chsdate>)
uclinux-2008R1.5-RC3(bf561)到VDSP5的移植(3):vdsp项目创建(<chsdate w:st="on" isrocdate="False" islunardate="False" day="12" month="1" year="2009">2009-1-12</chsdate>)
uclinux-2008R1.5-RC3(bf561)到VDSP5的移植(4):目录差异(<chsdate w:st="on" isrocdate="False" islunardate="False" day="12" month="1" year="2009">2009-1-12</chsdate>)