[ofw] [PATCH] [IBAT] ibat: fix slow build

Sean Hefty sean.hefty at intel.com
Fri Jan 30 17:28:56 PST 2009


The following patch to ibat allows it to build in a timely manner.

Signed-off-by: Sean Hefty <sean.hefty at intel.com>
---
I can commit this.

Index: core/ibat/user/SOURCES
===================================================================
--- core/ibat/user/SOURCES	(revision 1864)
+++ core/ibat/user/SOURCES	(working copy)
@@ -1,14 +1,8 @@
-TARGETNAME=ibat
+TARGETNAME = ibat
 
-TARGETPATH=..\..\..\bin\user\obj$(BUILD_ALT_DIR)
-TARGETTYPE=LIBRARY
+TARGETPATH = ..\..\..\bin\user\obj$(BUILD_ALT_DIR)
+TARGETTYPE = LIBRARY
 
-SOURCES=\
-	ibat.cpp
+SOURCES = ibat.cpp
 
-
-INCLUDES=$(SDK_INC_PATH);..;..\..\..\inc;..\..\..\inc\user;$(PLATFORM_SDK_PATH)
\Include
-
-USER_C_FLAGS=$(USER_C_FLAGS)
-
-MSC_WARNING_LEVEL= /W4
+INCLUDES = ..\..\..\inc;..\..\..\inc\user;
Index: inc/iba/ib_at_ioctl.h
===================================================================
--- inc/iba/ib_at_ioctl.h	(revision 1864)
+++ inc/iba/ib_at_ioctl.h	(working copy)
@@ -33,13 +33,13 @@
 
 /* This file is shared between user- and kernel-mode */
 
-#include <iba/ib_types.h>
 
-
 #ifndef	_IB_AT_IOCTL_H_
 #define	_IB_AT_IOCTL_H_
 
+#include <iba/ib_types.h>
 
+
 #define	IBAT_IOCTL_VERSION		5
 
 #define	IBAT_MAC_LEN			6
Index: inc/user/iba/ibat.h
===================================================================
--- inc/user/iba/ibat.h	(revision 1864)
+++ inc/user/iba/ibat.h	(working copy)
@@ -29,6 +29,9 @@
  * $Id:$
  */
 
+#ifndef _IBAT_H_
+#define _IBAT_H_
+
 #include <winsock2.h>
 #include <ws2tcpip.h>
 
@@ -60,3 +63,5 @@
     );
 
 #endif /* __cplusplus */
+
+#endif	// _IBAT_H_
\ No newline at end of file





More information about the ofw mailing list