我在网上找到了一个S3C2440 BSP包,支持Wince 6.0。下载地址是:https://download.csdn.net/download/arm123/1943490?utm_source=iteye
可是当我把这个BSP包下载下来在我的电脑上生成时,却总是报错,报错代码的最后部分如下所示。求指教应该怎么处理这些错误,让BSP包可以在我的电脑上成功生成。
Build for Windows CE (Release 601) (Built on Aug 17 2006 15:18:52)
File names: Build.log Build.wrn Build.err Build.dat
CEBUILD: Building (C:\WINCE600\platform\smdk2440a)
BUILD: [Thrd:Sequence:Type ] Message
BUILD: [00:0000000000:PROGC ] Build started with parameters:
BUILD: [00:0000000001:PROGC ] Build started in directory: C:\WINCE600\PLATFORM\SMDK2440A
BUILD: [00:0000000002:PROGC ] Checking for C:\WINCE600\sdk\bin\i386\srccheck.exe.
BUILD: [00:0000000003:PROGC ] Running passes WCEFILES0, MIDL, MC, ASN, THUNK, PRECOMPHEADER, COMPILE, LIB, LINK, MANAGEDRESX, MANAGEDMOD, MANAGEDDLL, MANAGEDEXE, MANAGEDWIN for ARM.
BUILD: [00:0000000004:PROGC ] Loading database "C:\WINCE600\PLATFORM\SMDK2440A\Build.dat".
BUILD: [00:0000000005:PROGC ] Done.
BUILD: [00:0000000006:PROGC ] Computing include file dependencies:
BUILD: [00:0000000007:PROGC ] Checking for SDK include directory: C:\WINCE600\sdk\CE\inc.
BUILD: [00:0000000008:PROGC ] Scan C:\WINCE600\PLATFORM\SMDK2440A\Src\Common\ABORT\
BUILD: [00:0000000009:PROGC ] Scan C:\WINCE600\PLATFORM\SMDK2440A\Src\Common\Cache\
BUILD: [00:0000000010:PROGC ] Scan C:\WINCE600\PLATFORM\SMDK2440A\Src\Common\Intr\
BUILD: [00:0000000011:PROGC ] Scan C:\WINCE600\PLATFORM\SMDK2440A\Src\Common\Intr_dvs\
BUILD: [00:0000000012:PROGC ] Scan C:\WINCE600\PLATFORM\SMDK2440A\Src\Common\Io\
BUILD: [00:0000000013:PROGC ] Scan C:\WINCE600\PLATFORM\SMDK2440A\Src\Common\Ioctl\
BUILD: [00:0000000014:PROGC ] Scan C:\WINCE600\PLATFORM\SMDK2440A\Src\Common\Memory\
BUILD: [00:0000000015:PROGC ] Scan C:\WINCE600\PLATFORM\SMDK2440A\Src\Common\Power\
BUILD: [00:0000000016:PROGC ] Scan C:\WINCE600\PLATFORM\SMDK2440A\Src\Common\Rtc\
BUILD: [00:0000000017:PROGC ] Scan C:\WINCE600\PLATFORM\SMDK2440A\Src\Common\Startup\
BUILD: [00:0000000018:PROGC ] Scan C:\WINCE600\PLATFORM\SMDK2440A\Src\Common\Timer\
BUILD: [00:0000000019:PROGC ] Scan C:\WINCE600\PLATFORM\SMDK2440A\Src\Common\Timer_dvs\
BUILD: [00:0000000020:PROGC ] Scan C:\WINCE600\PLATFORM\SMDK2440A\Src\Common\Profiler\
BUILD: [00:0000000021:PROGC ] Scan C:\WINCE600\PLATFORM\SMDK2440A\Src\Drivers\Ceddk\Ddk_bus\
BUILD: [00:0000000022:PROGC ] Scan C:\WINCE600\PLATFORM\SMDK2440A\Src\Drivers\Ceddk\Dll\
BUILD: [00:0000000023:PROGC ] Scan C:\WINCE600\PLATFORM\SMDK2440A\Src\Drivers\Keybd\Kbdcommon\
BUILD: [00:0000000024:PROGC ] Scan C:\WINCE600\PLATFORM\SMDK2440A\Src\Drivers\Keybd\Matrix_0409\
BUILD: [00:0000000025:PROGC ] Scan C:\WINCE600\PLATFORM\SMDK2440A\Src\Drivers\Keybd\Pddlist\
BUILD: [00:0000000026:PROGC ] Scan C:\WINCE600\PLATFORM\SMDK2440A\Src\Drivers\Keybd\Kbds3c2440jpn1\
BUILD: [00:0000000027:PROGC ] Scan C:\WINCE600\PLATFORM\SMDK2440A\Src\Drivers\Keybd\Kbds3c2440jpn2\
BUILD: [00:0000000028:PROGC ] Scan C:\WINCE600\PLATFORM\SMDK2440A\Src\Drivers\Keybd\Kbds3c2440kor\
BUILD: [00:0000000029:PROGC ] Scan C:\WINCE600\PLATFORM\SMDK2440A\Src\Drivers\Keybd\Kbds3c2440us\
BUILD: [00:0000000030:PROGC ] Scan C:\WINCE600\PLATFORM\SMDK2440A\Src\Drivers\Pwrbutton\
BUILD: [00:0000000031:PROGC ] Scan C:\WINCE600\PLATFORM\SMDK2440A\Src\Drivers\Pccard\
BUILD: [00:0000000032:PROGC ] Scan C:\WINCE600\PLATFORM\SMDK2440A\Src\Drivers\Serial\
BUILD: [00:0000000033:PROGC ] Scan C:\WINCE600\PLATFORM\SMDK2440A\Src\Drivers\Usb\Function\
BUILD: [00:0000000034:PROGC ] Scan C:\WINCE600\PLATFORM\SMDK2440A\Src\Drivers\Usb\HCD\
BUILD: [00:0000000035:PROGC ] Scan C:\WINCE600\PLATFORM\SMDK2440A\Src\Drivers\NLEDDRVR\
BUILD: [00:0000000036:PROGC ] Scan C:\WINCE600\PLATFORM\SMDK2440A\Src\Drivers\Battdrvr\
BUILD: [00:0000000037:PROGC ] Scan C:\WINCE600\PLATFORM\SMDK2440A\Src\Drivers\Backlight\
BUILD: [00:0000000038:PROGC ] Scan C:\WINCE600\PLATFORM\SMDK2440A\Src\Drivers\CS8900\
BUILD: [00:0000000039:PROGC ] Scan C:\WINCE600\PLATFORM\SMDK2440A\Src\Drivers\Display\
BUILD: [00:0000000040:PROGC ] Scan C:\WINCE600\PLATFORM\SMDK2440A\Src\Drivers\camera\
BUILD: [00:0000000041:PROGC ] Scan C:\WINCE600\PLATFORM\SMDK2440A\Src\Drivers\IIC\
BUILD: [00:0000000042:PROGC ] Scan C:\WINCE600\PLATFORM\SMDK2440A\Src\Drivers\Touch\
BUILD: [00:0000000043:PROGC ] Scan C:\WINCE600\PLATFORM\SMDK2440A\Src\Drivers\Wavedev\
BUILD: [00:0000000044:PROGC ] Scan C:\WINCE600\PLATFORM\SMDK2440A\Src\Oal\Oallib\
BUILD: [00:0000000045:PROGC ] Scan C:\WINCE600\PLATFORM\SMDK2440A\Src\Oal\Oalexe\
BUILD: [00:0000000046:WARNN ] C:\WINCE600\PLATFORM\SMDK2440A\Src\Drivers\Usb\HCD\sources(50) : Build.exe does not evaluate IF conditional statements. Conditional statements that affect macro definitions might cause Build.exe to not rebuild modified source code. Refer to the Platform Builder documentation.
BUILD: [00:0000000047:WARNN ] C:\WINCE600\PLATFORM\SMDK2440A\Src\Drivers\Ceddk\Dll: Missing source file: C:\WINCE600\public\common\sdk\lib\ARMV4I\debug\coredll.lib.
BUILD: [00:0000000049:PROGC ] Building LIB Pass in C:\WINCE600\PLATFORM\SMDK2440A\Src\Drivers\Ceddk\Dll\ directory.
BUILD: [01:0000000059:PROGC ] Linking C:\WINCE600\platform\smdk2440a\lib\ARMV4I\debug\ceddk.lib
BUILD: [00:0000000070:WARNN ] C:\WINCE600\PLATFORM\SMDK2440A\Src\Drivers\Usb\Function: Missing source file: C:\WINCE600\public\common\oak\lib\ARMV4I\debug\ufnmdd.lib.
BUILD: [00:0000000072:PROGC ] Building LIB Pass in C:\WINCE600\PLATFORM\SMDK2440A\Src\Drivers\Usb\Function\ directory.
BUILD: [01:0000000082:PROGC ] Linking C:\WINCE600\platform\smdk2440a\lib\ARMV4I\debug\sc2440usbfn.lib
BUILD: [00:0000000093:WARNN ] C:\WINCE600\PLATFORM\SMDK2440A\Src\Drivers\Usb\HCD\sources(58) : Build.exe does not evaluate IF conditional statements. Conditional statements that affect macro definitions might cause Build.exe to not rebuild modified source code. Refer to the Platform Builder documentation.
BUILD: [00:0000000094:WARNN ] C:\WINCE600\PLATFORM\SMDK2440A\Src\Drivers\Usb\HCD: Missing source file: C:\WINCE600\public\common\oak\oak\lib\ARMV4I\debug\ohcdmdd2.lib.
BUILD: [00:0000000095:WARNN ] C:\WINCE600\PLATFORM\SMDK2440A\Src\Drivers\Usb\HCD: Missing source file: C:\WINCE600\public\common\oak\oak\lib\ARMV4I\debug\hcdlib.lib.
BUILD: [00:0000000096:WARNN ] C:\WINCE600\PLATFORM\SMDK2440A\Src\Drivers\Usb\HCD\sources(49) : Build.exe does not evaluate IF conditional statements. Conditional statements that affect macro definitions might cause Build.exe to not rebuild modified source code. Refer to the Platform Builder documentation.
BUILD: [00:0000000101:PROGC ] Building LIB Pass in C:\WINCE600\PLATFORM\SMDK2440A\Src\Drivers\Usb\HCD\ directory.
BUILD: [01:0000000111:ERRORE] NMAKE : U1073: don't know how to make 'D:\WINCE600\OSDesigns\AC2440\AC2440\Wince600\smdk2440a_ARMV4I\cesysgen\oak\oak\lib\ARMV4I\debug\ohcdmdd2.lib'
BUILD: [01:0000000113:ERRORE] NMAKE.EXE TargetLibFiles -i -c BUILDMSG=Stop.BUILDROOT=C:\WINCE600\PLATFORM\SMDK2440A LINKONLY=1 NOPASS0=1 failed - rc = 2
BUILD: [00:0000000114:PROGC ] Files Warnings Errors
BUILD: [00:0000000115:PROGC ] Midl 0 0 0
BUILD: [00:0000000116:PROGC ] Message 0 0 0
BUILD: [00:0000000117:PROGC ] Precomp Header 0 0 0
BUILD: [00:0000000118:PROGC ] Resource 0 0 0
BUILD: [00:0000000119:PROGC ] MASM 0 0 0
BUILD: [00:0000000120:PROGC ] SHASM 0 0 0
BUILD: [00:0000000121:PROGC ] ARMASM 0 0 0
BUILD: [00:0000000122:PROGC ] MIPSASM 0 0 0
BUILD: [00:0000000123:PROGC ] C++ 0 0 0
BUILD: [00:0000000124:PROGC ] C 0 0 0
BUILD: [00:0000000125:PROGC ] Static Libraries 0 0 0
BUILD: [00:0000000126:PROGC ] Exe's 0 0 0
BUILD: [00:0000000127:PROGC ] Dll's 2 0 0
BUILD: [00:0000000128:PROGC ] Preprocess deffile 0 0 0
BUILD: [00:0000000129:PROGC ] Resx 0 0 0
BUILD: [00:0000000130:PROGC ] CSharp Compile 0 0 0
BUILD: [00:0000000131:PROGC ] Other 0 0 2
BUILD: [00:0000000132:PROGC ]
BUILD: [00:0000000133:PROGC ] Total 2 0 2
BUILD: [00:0000000134:PROGC ]
BUILD: [00:0000000135:PROGC ] 0 Warnings, 2 Errors
BUILD: [00:0000000136:PROGC ] GetSystemTimes (seconds): Idle: 8 Kernel: 10 User: 2
BUILD: [00:0000000137:PROGC ] Elapsed time (seconds): 3
Build for Windows CE (Release 601) (Built on Aug 17 2006 15:18:52)
File names: Build.log Build.wrn Build.err Build.dat
Sysgening platform C:\WINCE600\platform\smdk2440a
\WINCE600\build.err
BLDDEMO: There were errors building AC2440
AC2440 - 3 error(s), 102 warning(s)
========== 生成: 0 成功或最新,失败,被跳过==========
我的C:\WINCE600\PLATFORM\SMDK2440A\Src\Drivers\Usb\HCD文件夹中source的部分代码如下所示:
###DOSYSGEN=1
!if "$(BSP_NOUSB)" == "1"
SKIPBUILD=1
!endif
SYNCHRONIZE_DRAIN=1
!IFDEF DOSYSGEN
TARGETNAME=ohci_lib
TARGETTYPE=LIBRARY
TARGETDEFNAME=ohci
!ELSE
TARGETNAME=ohci2
TARGETTYPE=DYNLINK
RELEASETYPE=PLATFORM
TARGETLIBS=$(_SYSGENOAKROOT)\cesysgen\sdk\lib\$(_CPUINDPATH)\coredll.lib\
$(_SYSGENOAKROOT)\cesysgen\oak\lib\$(_CPUINDPATH)\ceddk.lib\
SOURCELIBS=$(_COMMONOAKROOT)\oak\lib\$(_CPUINDPATH)\ohcdmdd2.lib\
$(_COMMONOAKROOT)\oak\lib\$(_CPUINDPATH)\hcdlib.lib\
DLLENTRY=DllMain
DEFFILE=$(_COMMONOAKROOT)\inc\ohcd.def\
!ENDIF
SOURCES= \
2440_ohci.c \
勾选的支持如下图所示:

我的D:\WINCE600\OSDesigns\AC2440\AC2440\Wince600\smdk2440a_ARMV4I\cesysgen\oak\lib\ARMV4I\debug文件夹下有ohcdmdd2.lib。
