Removed one useless makefile, and corrected some BSD licenses

git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@1025 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
yshi8
2006-07-17 03:33:40 +00:00
parent 322b772308
commit 56fe62ce9d
8 changed files with 119 additions and 176 deletions

View File

@ -1,71 +0,0 @@
#/*++
#
# Copyright (c) 2001 Intel Corporation. All rights reserved.
#
# This software and associated documentation (if any) is furnished under
# a license and may only be used or copied in accordance with the terms
# of the license. Except as permitted by such license, no part of this
# software or documentation may be reproduced, stored in a retrieval
# system, or transmitted in any form or by any means without the express
# written consent of Intel Corporation.
#
# Module Name:
#
# makefile
#
# Abstract:
#
# makefile for building the PeiRebase utility.
#
# Revision History
#
#--*/
#
# Make sure environmental variable EFI_SOURCE is set
#
!IFNDEF EFI_SOURCE
!ERROR EFI_SOURCE environmental variable not set
!ENDIF
#
# Do this if you want to compile from this directory
#
!IFNDEF TOOLCHAIN
TOOLCHAIN = TOOLCHAIN_MSVC
!ENDIF
!INCLUDE PlatformTools.env
#
# Target specific information
#
TARGET_NAME = PeiRebase
TARGET_SRC_DIR = $(TIANO_TOOLS_SOURCE)\$(TARGET_NAME)
TARGET_EXE = $(TIANO_TOOLS_OUTPUT)\PeiRebase.exe
TARGET_EXE_LIBS = $(TIANO_TOOLS_OUTPUT)\Common.lib
#
# Build targets
#
all: $(TARGET_EXE)
OBJECTS = $(TIANO_TOOLS_OUTPUT)\PeiRebase.obj
#
# Compile each source file
#
$(TIANO_TOOLS_OUTPUT)\PeiRebase.obj : $(TARGET_SRC_DIR)\PeiRebaseExe.c $(INC_DEPS) $(TARGET_EXE_LIBS)
$(CC) $(C_FLAGS) $(TARGET_SRC_DIR)\PeiRebaseExe.c /Fo$@
#
# Link the object files together
#
$(TARGET_EXE) : $(OBJECTS) $(TARGET_EXE_LIBS)
@echo LINKING
$(LINK) $(MSVS_LINK_LIBPATHS) $(L_FLAGS) $(LIBS) /out:$(TARGET_EXE) $(OBJECTS) $(TARGET_EXE_LIBS)
clean:
@if exist $(TIANO_TOOLS_OUTPUT)\$(TARGET_NAME).* del $(TIANO_TOOLS_OUTPUT)\$(TARGET_NAME).* > NUL

View File

@ -1,17 +1,17 @@
/*++ /*++
Copyright (c) 2005 Intel Corporation. All rights reserved Copyright (c) 1999-2006 Intel Corporation. All rights reserved
This software and associated documentation (if any) is furnished This program and the accompanying materials are licensed and made available
under a license and may only be used or copied in accordance under the terms and conditions of the BSD License which accompanies this
with the terms of the license. Except as permitted by such distribution. The full text of the license may be found at
license, no part of this software or documentation may be http://opensource.org/licenses/bsd-license.php
reproduced, stored in a retrieval system, or transmitted in any
form or by any means without the express written consent of THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
Intel Corporation. WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
Module Name: Module Name:
SecApResetVectorFixup.h SecApResetVectorFixup.h
Abstract: Abstract:

View File

@ -1,22 +1,24 @@
/** @file /*++
Print Library.
Copyright (c) 2004-2006 Intel Corporation. All rights reserved Copyright (c) 2004-2006 Intel Corporation. All rights reserved
This software and associated documentation (if any) is furnished This program and the accompanying materials are licensed and made available
under a license and may only be used or copied in accordance under the terms and conditions of the BSD License which accompanies this
with the terms of the license. Except as permitted by such distribution. The full text of the license may be found at
license, no part of this software or documentation may be http://opensource.org/licenses/bsd-license.php
reproduced, stored in a retrieval system, or transmitted in any
form or by any means without the express written consent of
Intel Corporation.
THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS, THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED. WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
Module Name: PrintLib.c
**/ Module Name:
PrintLib.c
Abstract:
Print Library.
--*/
#include <Common/UefiBaseTypes.h> #include <Common/UefiBaseTypes.h>
#include <Library/PrintLib.h> #include <Library/PrintLib.h>
@ -64,19 +66,19 @@ static CONST STATUS_LOOKUP_TABLE_ENTRY StatusString[] = {
/** /**
VSPrint function to process format and place the results in Buffer. Since a VSPrint function to process format and place the results in Buffer. Since a
VA_LIST is used this rountine allows the nesting of Vararg routines. Thus VA_LIST is used this rountine allows the nesting of Vararg routines. Thus
this is the main print working routine this is the main print working routine
@param StartOfBuffer Unicode buffer to print the results of the parsing of Format into. @param StartOfBuffer Unicode buffer to print the results of the parsing of Format into.
@param BufferSize Maximum number of characters to put into buffer. Zero means @param BufferSize Maximum number of characters to put into buffer. Zero means
no limit. no limit.
@param Flags Intial flags value. Can only have FORMAT_UNICODE and OUTPUT_UNICODE set @param Flags Intial flags value. Can only have FORMAT_UNICODE and OUTPUT_UNICODE set
@param FormatString Unicode format string see file header for more details. @param FormatString Unicode format string see file header for more details.
@param Marker Vararg list consumed by processing Format. @param Marker Vararg list consumed by processing Format.
@return Number of characters printed. @return Number of characters printed.
@ -172,24 +174,24 @@ BasePrintLibVSPrint (
Format += BytesPerFormatCharacter; Format += BytesPerFormatCharacter;
FormatCharacter = (*Format | (*(Format + 1) << 8)) & FormatMask; FormatCharacter = (*Format | (*(Format + 1) << 8)) & FormatMask;
switch (FormatCharacter) { switch (FormatCharacter) {
case '.': case '.':
Flags |= PRECISION; Flags |= PRECISION;
break; break;
case '-': case '-':
Flags |= LEFT_JUSTIFY; Flags |= LEFT_JUSTIFY;
break; break;
case '+': case '+':
Flags |= PREFIX_SIGN; Flags |= PREFIX_SIGN;
break; break;
case ' ': case ' ':
Flags |= PREFIX_BLANK; Flags |= PREFIX_BLANK;
break; break;
case ',': case ',':
Flags |= COMMA_TYPE; Flags |= COMMA_TYPE;
break; break;
case 'L': case 'L':
case 'l': case 'l':
Flags |= LONG_TYPE; Flags |= LONG_TYPE;
break; break;
case '*': case '*':
if ((Flags & PRECISION) == 0) { if ((Flags & PRECISION) == 0) {
@ -229,7 +231,7 @@ BasePrintLibVSPrint (
Done = TRUE; Done = TRUE;
break; break;
} }
} }
// //
// Limit the maximum field width to the remaining characters in the output buffer // Limit the maximum field width to the remaining characters in the output buffer
@ -338,7 +340,7 @@ BasePrintLibVSPrint (
} else { } else {
BasePrintLibSPrint ( BasePrintLibSPrint (
ValueBuffer, ValueBuffer,
0, 0,
0, 0,
"%08x-%04x-%04x-%02x%02x-%02x%02x%02x%02x%02x%02x", "%08x-%04x-%04x-%02x%02x-%02x%02x%02x%02x%02x%02x",
TmpGuid->Data1, TmpGuid->Data1,
@ -358,7 +360,7 @@ BasePrintLibVSPrint (
break; break;
case 't': case 't':
TmpTime = VA_ARG (Marker, TIME *); TmpTime = VA_ARG (Marker, TIME *);
if (TmpTime == NULL) { if (TmpTime == NULL) {
ArgumentString = "<null time>"; ArgumentString = "<null time>";
} else { } else {
@ -519,7 +521,7 @@ BasePrintLibVSPrint (
// Null terminate the Unicode or ASCII string // Null terminate the Unicode or ASCII string
// //
Buffer = BasePrintLibFillBuffer (Buffer, 1, 0, BytesPerOutputCharacter); Buffer = BasePrintLibFillBuffer (Buffer, 1, 0, BytesPerOutputCharacter);
return ((Buffer - OriginalBuffer) / BytesPerOutputCharacter); return ((Buffer - OriginalBuffer) / BytesPerOutputCharacter);
} }

View File

@ -1,22 +1,24 @@
/** @file /*++
Print Library worker functions.
Copyright (c) 2004-2006 Intel Corporation. All rights reserved Copyright (c) 2004-2006 Intel Corporation. All rights reserved
This software and associated documentation (if any) is furnished This program and the accompanying materials are licensed and made available
under a license and may only be used or copied in accordance under the terms and conditions of the BSD License which accompanies this
with the terms of the license. Except as permitted by such distribution. The full text of the license may be found at
license, no part of this software or documentation may be http://opensource.org/licenses/bsd-license.php
reproduced, stored in a retrieval system, or transmitted in any
form or by any means without the express written consent of
Intel Corporation.
THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS, THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED. WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
Module Name: PrintLibInternal.c
**/ Module Name:
PrintLibInternal.c
Abstract:
Print Library worker functions.
--*/
#include <Common/UefiBaseTypes.h> #include <Common/UefiBaseTypes.h>
#include <Library/PrintLib.h> #include <Library/PrintLib.h>
@ -48,11 +50,11 @@ BasePrintLibFillBuffer (
Print worker function that prints a Value as a decimal number in Buffer. Print worker function that prints a Value as a decimal number in Buffer.
@param Buffer Location to place the Unicode or ASCII string of Value. @param Buffer Location to place the Unicode or ASCII string of Value.
@param Value Value to convert to a Decimal or Hexidecimal string in Buffer. @param Value Value to convert to a Decimal or Hexidecimal string in Buffer.
@param Flags Flags to use in printing string, see file header for details. @param Flags Flags to use in printing string, see file header for details.
@param Precision Minimum number of digits to return in the ASCII string @param Precision Minimum number of digits to return in the ASCII string
@return Number of characters printed. @return Number of characters printed.

View File

@ -1,21 +1,24 @@
/** @file /*++
Print Library.
Copyright (c) 2004-2006 Intel Corporation. All rights reserved Copyright (c) 2004-2006 Intel Corporation. All rights reserved
This software and associated documentation (if any) is furnished This program and the accompanying materials are licensed and made available
under a license and may only be used or copied in accordance under the terms and conditions of the BSD License which accompanies this
with the terms of the license. Except as permitted by such distribution. The full text of the license may be found at
license, no part of this software or documentation may be http://opensource.org/licenses/bsd-license.php
reproduced, stored in a retrieval system, or transmitted in any
form or by any means without the express written consent of
Intel Corporation.
THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS, THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED. WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
Module Name: PrintLibInternal.h
**/ Module Name:
PrintLibInternal.h
Abstract:
Print Library.
--*/
@ -83,8 +86,8 @@ BasePrintLibFillBuffer (
UINTN UINTN
EFIAPI EFIAPI
BasePrintLibValueToString ( BasePrintLibValueToString (
IN OUT CHAR8 *Buffer, IN OUT CHAR8 *Buffer,
IN INT64 Value, IN INT64 Value,
IN UINTN Radix IN UINTN Radix
); );

View File

@ -1,21 +1,24 @@
/** @file /*++
Unicode string primatives.
Copyright (c) 2004-2006 Intel Corporation. All rights reserved Copyright (c) 2004-2006 Intel Corporation. All rights reserved
This software and associated documentation (if any) is furnished This program and the accompanying materials are licensed and made available
under a license and may only be used or copied in accordance under the terms and conditions of the BSD License which accompanies this
with the terms of the license. Except as permitted by such distribution. The full text of the license may be found at
license, no part of this software or documentation may be http://opensource.org/licenses/bsd-license.php
reproduced, stored in a retrieval system, or transmitted in any
form or by any means without the express written consent of
Intel Corporation.
THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS, THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED. WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
Module Name: String.c
**/ Module Name:
String.c
Abstract:
Unicode and ASCII string primatives.
--*/
#include <assert.h> #include <assert.h>

View File

@ -1,13 +1,14 @@
/*++ /*++
Copyright (c) 2004-2006 Intel Corporation. All rights reserved Copyright (c) 2004-2006 Intel Corporation. All rights reserved
This software and associated documentation (if any) is furnished This program and the accompanying materials are licensed and made available
under a license and may only be used or copied in accordance under the terms and conditions of the BSD License which accompanies this
with the terms of the license. Except as permitted by such distribution. The full text of the license may be found at
license, no part of this software or documentation may be http://opensource.org/licenses/bsd-license.php
reproduced, stored in a retrieval system, or transmitted in any
form or by any means without the express written consent of THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
Intel Corporation. WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
Module Name: Module Name:
@ -42,7 +43,7 @@ Arguments:
Returns: Returns:
Zero - Function completed successfully. Zero - Function completed successfully.
Non-zero - Function exited with errors. Non-zero - Function exited with errors.
--*/ --*/
{ {

View File

@ -1,18 +1,21 @@
/*++ /*++
Copyright (c) 2004-2006 Intel Corporation. All rights reserved Copyright (c) 2004-2006 Intel Corporation. All rights reserved
This software and associated documentation (if any) is furnished This program and the accompanying materials are licensed and made available
under a license and may only be used or copied in accordance under the terms and conditions of the BSD License which accompanies this
with the terms of the license. Except as permitted by such distribution. The full text of the license may be found at
license, no part of this software or documentation may be http://opensource.org/licenses/bsd-license.php
reproduced, stored in a retrieval system, or transmitted in any
form or by any means without the express written consent of THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
Intel Corporation. WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
Module Name: Module Name:
ZeroDebugData.c ZeroDebugData.c
Abstract: Abstract:
Zero the Debug Data Fields of Portable Executable (PE) format file. Zero the Debug Data Fields of Portable Executable (PE) format file.
--*/ --*/