Fix GenFvImagei build on OS X
authorbbahnsen <bbahnsen@6f19259b-4bc3-4df7-8a09-765794883524>
Tue, 16 May 2006 00:27:02 +0000 (00:27 +0000)
committerbbahnsen <bbahnsen@6f19259b-4bc3-4df7-8a09-765794883524>
Tue, 16 May 2006 00:27:02 +0000 (00:27 +0000)
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@166 6f19259b-4bc3-4df7-8a09-765794883524

Tools/Source/TianoTools/Common/CommonLib.c
Tools/Source/TianoTools/Common/CommonLib.h
Tools/Source/TianoTools/GenFvImage/build.xml

index e2b12b4..c07ffb9 100644 (file)
@@ -493,3 +493,12 @@ Returns:
 \r
   return EFI_SUCCESS;\r
 }\r
+\r
+#ifdef __GNUC__\r
+void strlwr(char *s)\r
+{\r
+  for(;*s;s++) {\r
+    *s = tolower(*s);\r
+  }\r
+}\r
+#endif\r
index fd8b6a4..257f066 100644 (file)
@@ -131,6 +131,7 @@ PrintGuidToBuffer (
 #define stricmp strcasecmp\r
 #define strnicmp strncasecmp\r
 #define strcmpi strcasecmp\r
+void strlwr(char *s);\r
 #endif\r
 \r
 #endif\r
index 58cdb61..2fe1342 100644 (file)
@@ -81,6 +81,7 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
         </then>\r
       </elseif>\r
     </if>\r
+\r
   </target>\r
 \r
   <target name="Tool" depends="init, GenFvImage, GenFvImage_Ia32, GenFvImage_X64, GenFvImage_Ipf"/>\r
@@ -110,7 +111,7 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
       <includepath path="${PACKAGE_DIR}/Common"/>\r
       <libset dir="${LIB_DIR}" libs="CommonTools CustomizedCompress"/>\r
       <linkerarg value="/nodefaultlib:libc.lib" unless="gcc"/>\r
-      <syslibset dir="${env.CYGWIN_HOME}/lib/e2fsprogs" libs="uuid" if="gcc"/>\r
+      <!-- <syslibset dir="${env.CYGWIN_HOME}/lib/e2fsprogs" libs="uuid" if="gcc"/> -->\r
       <syslibset libs="RpcRT4" unless="gcc"/>\r
     </cc>\r
   </target>\r
@@ -142,7 +143,7 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
       <includepath path="${PACKAGE_DIR}/Common"/>\r
       <libset dir="${LIB_DIR}" libs="CommonTools CustomizedCompress"/>\r
       <linkerarg value="/nodefaultlib:libc.lib" unless="gcc"/>\r
-      <syslibset dir="${env.CYGWIN_HOME}/lib/e2fsprogs" libs="uuid" if="gcc"/>\r
+      <!-- <syslibset dir="${env.CYGWIN_HOME}/lib/e2fsprogs" libs="uuid" if="gcc"/> -->\r
       <syslibset libs="RpcRT4" unless="gcc"/>\r
     </cc>\r
   </target>\r
@@ -174,7 +175,7 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
       <includepath path="${PACKAGE_DIR}/Common"/>\r
       <libset dir="${LIB_DIR}" libs="CommonTools CustomizedCompress"/>\r
       <linkerarg value="/nodefaultlib:libc.lib" unless="gcc"/>\r
-      <syslibset dir="${env.CYGWIN_HOME}/lib/e2fsprogs" libs="uuid" if="gcc"/>\r
+      <!-- <syslibset dir="${env.CYGWIN_HOME}/lib/e2fsprogs" libs="uuid" if="gcc"/> -->\r
       <syslibset libs="RpcRT4" unless="gcc"/>\r
     </cc>\r
   </target>\r
@@ -206,7 +207,7 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
       <includepath path="${PACKAGE_DIR}/Common"/>\r
       <libset dir="${LIB_DIR}" libs="CommonTools CustomizedCompress"/>\r
       <linkerarg value="/nodefaultlib:libc.lib" unless="gcc"/>\r
-      <syslibset dir="${env.CYGWIN_HOME}/lib/e2fsprogs" libs="uuid" if="gcc"/>\r
+      <!-- <syslibset dir="${env.CYGWIN_HOME}/lib/e2fsprogs" libs="uuid" if="gcc"/> -->\r
       <syslibset libs="RpcRT4" unless="gcc"/>\r
     </cc>\r
   </target>\r