3933|2

80

帖子

0

TA的资源

一粒金砂(初级)

楼主
 

这是wince 驱动的一个*.bat文件看不明白到底是什么意思! [复制链接]

大家请看看 :
@echo off
@REM --------------------------------------------------------------------------
@REM Copyright (c) Wolfson Microelectronics plc.  All rights reserved.
@REM
@REM This software as well as any related documentation may only be used or
@REM copied in accordance with the terms of the Wolfson Microelectronic plc's
@REM non-disclosure agreement (NDA). The information in this file is furnished
@REM for informational use only, is subject to change without notice, and
@REM should not be construed as a commitment by Wolfson Microelectronics plc.
@REM Wolfson Microelectronics plc assumes no responsibility or liability for
@REM any errors or inaccuracies that may appear in this document or any software
@REM that may be provided in association with this document.
@REM
@REM Except as permitted by the NDA, no part of this document may be reproduced,
@REM stored in a retrieval system, or transmitted in any form or by any means
@REM without the express written consent of Wolfson Microelectronics plc.
@REM
@REM $Id: CopyHeaders.bat 2890 2006-04-11 09:33:58Z fb $
@REM
@REM This file copies the various header files to the public include folders.
@REM
@REM Warning:
@REM  This driver is specifically written for Wolfson devices.  It is
@REM  not a general device driver.
@REM
@REM  This platform file is specifically designed to work Windows CE.  There
@REM  is no guarantee of correct operation with other platforms/controllers.
@REM
@REM --------------------------------------------------------------------------

setlocal

@REM Move to the Wolfson directory (the drive and path of the script name)
pushd %~dp0

if "%_WINCEOSVER%Check"=="Check" (
    echo error: Please run CopyHeaders.bat in a build window.
    goto END
)
   
if %_WINCEOSVER% GEQ 500 (
    if "%WM_BSP%"=="INTEL_DBPXA27X" (
            echo == MAINSTONEII WM5 Intel BSP ==
        set INCDIR=%_TARGETPLATROOT%\platform\mainstoneii\src\inc
    ) else if "%WM_BSP%"=="TAHITI" (
        echo == i.MX21 WinCE 5.0 ==
        set INCDIR=%_TARGETPLATROOT%\inc
    ) else if "%WM_BSP%"=="MAINSTONEII" (
            echo == MAINSTONEII WinCE 5.0 BSP ==
        set INCDIR=%_TARGETPLATROOT%\src\inc
    ) else if "%WM_BSP%"=="MAINSTONEIII" (
            echo == MAINSTONEIII WM5 MS BSP ==
        set INCDIR=%_TARGETPLATROOT%\src\inc
    ) else (
            echo == Unknown WinCE 5.0 BSP ==
        set INCDIR=%_TARGETPLATROOT%\src\inc
    )
) else (
    echo == Pre WinCE 5.0 BSP ==
    set INCDIR=%_TARGETPLATROOT%\inc
)
     
set HEADERDIRS=inc inc\Compatibility inc\RegisterDefs

@REM
@REM The following files are needed for interrupt handling.
@REM
set PLATFORMFILES=WMPlatformDefs.h WMInterrupts_Raw.h WMPlatform_Raw.h
set PLATFORMFILES=%PLATFORMFILES% WMPlatformDeviceContext.h WMPlatformConfig.h

@REM
@REM The following file is required for OS specific types e.g. Mutex_t.
@REM
set OSFILES=WMPlatform_OS.h

@REM
@REM Files which go in the platform root directory.
@REM
set ROOTFILES=WMCommonDefines OS\WMCE.bat

echo Copying public header files from the Wolfson library to %INCDIR%
set COPY_CMD=xcopy

@REM
@REM Now do the work
@REM
:DO_WORK

@REM
@REM First delete the existing files (but don't care if they're not there)
@REM
del /f /q %INCDIR%\WM*.h 2>NUL

@REM
@REM Now link or copy the new files
@REM
for %%d in (%HEADERDIRS%)                 do %COPY_CMD% %%d\*.h                %INCDIR%\
for %%f in (%PLATFORMFILES%)         do %COPY_CMD% Platform\%%f  %INCDIR%\
for %%f in (%OSFILES%)          do %COPY_CMD% OS\%%f        %INCDIR%\

@REM
@REM Copy our internal build environment variable bat file to %_TARGETPLATROOT%
@REM
for %%f in (%ROOTFILES%)                 do if exist %%f %COPY_CMD% %%f %_TARGETPLATROOT%\

:END
endlocal

@REM
@REM Now run the bat file so that are settings are picked up in the
@REM current environment.
@REM
if exist %_TARGETPLATROOT%\WMCE.bat call %_TARGETPLATROOT%\WMCE.bat

popd
echo on

想这些*.bat 文件中格式定义可以查看那些资料!清 高手出现! 哈

最新回复

没觉得看不懂啊。  详情 回复 发表于 2008-2-17 16:34
点赞 关注

回复
举报

65

帖子

0

TA的资源

一粒金砂(初级)

沙发
 
你只要搜索一下BAT文件怎么写就能明白了。
 
 

回复

77

帖子

0

TA的资源

一粒金砂(初级)

板凳
 
没觉得看不懂啊。
 
 
 

回复
您需要登录后才可以回帖 登录 | 注册

随便看看
查找数据手册?

EEWorld Datasheet 技术支持

相关文章 更多>>
关闭
站长推荐上一条 1/6 下一条

 
EEWorld订阅号

 
EEWorld服务号

 
汽车开发圈

About Us 关于我们 客户服务 联系方式 器件索引 网站地图 最新更新 手机版

站点相关: 国产芯 安防电子 汽车电子 手机便携 工业控制 家用电子 医疗电子 测试测量 网络通信 物联网

北京市海淀区中关村大街18号B座15层1530室 电话:(010)82350740 邮编:100190

电子工程世界版权所有 京B2-20211791 京ICP备10001474号-1 电信业务审批[2006]字第258号函 京公网安备 11010802033920号 Copyright © 2005-2025 EEWORLD.com.cn, Inc. All rights reserved
快速回复 返回顶部 返回列表