【发布时间】:2012-03-16 14:30:07
【问题描述】:
我们的平台代码中有一个底层 .h 文件,根据我们是构建内核还是 EBOOT,需要以不同方式构建该文件。我正在尝试编写脚本以避免在每次进行 EBOOT 构建时手动更改文件时发生的万无一失的错误。
这里是需要修改的部分代码
// To disable debug port messages altogether, define DEBUG_PORT to 0
#ifdef DEBUG
#define DEBUG_PORT DBG_UART1
#pragma message ( "DEBUG defined" )
#elsif ITT_EBOOT
#define DEBUG_PORT DBG_UART1
#pragma message ( "DEBUG defined" )
#else
#define DEBUG_PORT 0
#pragma message ( "DEBUG disabled" )
#endif
这是我拥有的构建脚本。它可以工作并构建所需的文件,但构建日志总是返回 DEBUG disabled 消息
REM Build the EBOOT with the changes needed for the UART
REM Change into the directory
REM Rebuild the BSPCMN subproject
PUSHD .
CD C:\WINCE600\PLATFORM\iMX25-3DS-PDK1_7\src\COMMON\BSPCMN\
SET ITT_EBOOT_SWITCH=1
SET WINCEREL=1&&build -c&&makeimg
POPD
REM Change into the directory
REM Rebuild the EBOOT subproject
PUSHD .
CD C:\WINCE600\PLATFORM\iMX25-3DS-PDK1_7\src\BOOTLOADER\EBOOT\
SET WINCEREL=1&&build -c&&makeimg
POPD
受影响项目的源文件在这里:
!if 0
Copyright (C) 2007-2008, Freescale Semiconductor, Inc. All Rights Reserved.
THIS SOURCE CODE, AND ITS USE AND DISTRIBUTION, IS SUBJECT TO THE TERMS
AND CONDITIONS OF THE APPLICABLE LICENSE AGREEMENT
!endif
!IF "$(ITT_EBOOT_SWITCH)" == "1"
CDEFINES=$(CDEFINES) -DITT_EBOOT
!ENDIF
TARGETNAME=bspcmn
TARGETTYPE=LIBRARY
NOMIPS16CODE=1
SOURCES=\
bspargs.c \
debugserial.c
FILE_VIEW_INCLUDES_FOLDER= \
..\..\INC\bsp_cfg.h \
非常欢迎任何帮助,我在过去几天的大部分时间里都在努力尝试获得预期的构建行为
【问题讨论】:
标签: visual-studio visual-studio-2005 windows-ce build-automation