|
From: <lg...@us...> - 2012-04-06 05:39:18
|
Revision: 2518
http://edk2-buildtools.svn.sourceforge.net/edk2-buildtools/?rev=2518&view=rev
Author: lgao4
Date: 2012-04-06 05:39:12 +0000 (Fri, 06 Apr 2012)
Log Message:
-----------
Add LzmaF86Compress.bat into LzmaCompress source directory. It will be copied to $(SYS_BIN_PATH) in make phase.
Signed-off-by: Liming Gao <lim...@in...>
Reviewed-by: Larry Hauch <lar...@in...>
Modified Paths:
--------------
trunk/BaseTools/Source/C/LzmaCompress/Makefile
trunk/BaseTools/Source/C/Makefile
Added Paths:
-----------
trunk/BaseTools/Source/C/LzmaCompress/LzmaF86Compress.bat
Added: trunk/BaseTools/Source/C/LzmaCompress/LzmaF86Compress.bat
===================================================================
--- trunk/BaseTools/Source/C/LzmaCompress/LzmaF86Compress.bat (rev 0)
+++ trunk/BaseTools/Source/C/LzmaCompress/LzmaF86Compress.bat 2012-04-06 05:39:12 UTC (rev 2518)
@@ -0,0 +1,31 @@
+@REM
+@REM This script will exec LzmaCompress tool with --f86 option that enables converter for x86 code.
+@REM
+@REM Copyright (c) 2012, Intel Corporation. All rights reserved.<BR>
+@REM This program and the accompanying materials
+@REM are licensed and made available under the terms and conditions of the BSD License
+@REM which accompanies this distribution. The full text of the license may be found at
+@REM http://opensource.org/licenses/bsd-license.php
+@REM
+@REM THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
+@REM WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
+@REM
+
+@echo off
+@setlocal
+
+:Begin
+if "%1"=="" goto End
+if "%1"=="-e" (
+ set FLAG=--f86
+)
+if "%1"=="-d" (
+ set FLAG=--f86
+)
+set ARGS=%ARGS% %1
+shift
+goto Begin
+
+:End
+LzmaCompress %ARGS% %FLAG%
+@echo on
Modified: trunk/BaseTools/Source/C/LzmaCompress/Makefile
===================================================================
--- trunk/BaseTools/Source/C/LzmaCompress/Makefile 2012-04-05 08:22:02 UTC (rev 2517)
+++ trunk/BaseTools/Source/C/LzmaCompress/Makefile 2012-04-06 05:39:12 UTC (rev 2518)
@@ -30,3 +30,12 @@
!INCLUDE ..\Makefiles\ms.app
+all: $(BIN_PATH)\LzmaF86Compress.bat
+
+$(BIN_PATH)\LzmaF86Compress.bat: LzmaF86Compress.bat
+ copy LzmaF86Compress.bat $(BIN_PATH)\LzmaF86Compress.bat /Y
+
+cleanall: localCleanall
+
+localCleanall:
+ del /f /q $(BIN_PATH)\LzmaF86Compress.bat > nul
Modified: trunk/BaseTools/Source/C/Makefile
===================================================================
--- trunk/BaseTools/Source/C/Makefile 2012-04-05 08:22:02 UTC (rev 2517)
+++ trunk/BaseTools/Source/C/Makefile 2012-04-06 05:39:12 UTC (rev 2518)
@@ -1,7 +1,7 @@
## @file
# Windows makefile for C tools build.
#
-# Copyright (c) 2009 - 2010, Intel Corporation. All rights reserved.<BR>
+# Copyright (c) 2009 - 2012, Intel Corporation. All rights reserved.<BR>
# This program and the accompanying materials
# are licensed and made available under the terms and conditions of the BSD License
# which accompanies this distribution. The full text of the license may be found at
@@ -59,6 +59,7 @@
@echo ######################
@-xcopy $(LIB_PATH)\*.lib $(SYS_LIB_PATH) /I /D /E /F /Y > NUL 2>&1
@-xcopy $(BIN_PATH)\*.exe $(SYS_BIN_PATH) /I /D /E /F /Y > NUL 2>&1
+ @-xcopy $(BIN_PATH)\*.bat $(SYS_BIN_PATH) /I /D /E /F /Y > NUL 2>&1
.PHONY: clean
clean:
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|