Whamcloud - gitweb
remove arch symlink
authorjacob <jacob>
Sat, 5 Feb 2005 00:53:16 +0000 (00:53 +0000)
committerjacob <jacob>
Sat, 5 Feb 2005 00:53:16 +0000 (00:53 +0000)
lnet/autoMakefile.am
lnet/include/libcfs/kp30.h
lnet/include/libcfs/libcfs.h

index 50d8298..b49b8d4 100644 (file)
@@ -6,20 +6,5 @@
 SUBDIRS = libcfs portals knals unals router tests doc utils include    \
        autoconf
 
-sources: include/libcfs/arch
+sources:
        $(MAKE) sources -C libcfs
-
-all-recursive: include/libcfs/arch
-
-include/libcfs/arch:
-       case `uname` in                                           \
-               Linux)                                            \
-                       ln -s linux include/libcfs/arch           \
-                       ;;                                        \
-               Darwin)                                           \
-                       ln -s darwin include/libcfs/arch          \
-                       ;;                                        \
-               *)                                                \
-                       echo "Platform `uname` is not supported"  \
-                       ;;                                        \
-       esac
index cdd1bff..6fd88e7 100644 (file)
@@ -7,7 +7,13 @@
 #define PORTAL_DEBUG
 #include <libcfs/libcfs.h>
 
-#include <libcfs/arch/kp30.h>
+#if defined(__linux__)
+#include <libcfs/linux/kp30.h>
+#elif defined(__APPLE__)
+#include <libcfs/darwin/kp30.h>
+#else
+#error Unsupported operating system
+#endif
 
 #ifdef __KERNEL__
 
index 2fabeab..ecc7086 100644 (file)
@@ -8,7 +8,14 @@
 #define __attribute__(x)
 #endif
 
-#include <libcfs/arch/libcfs.h>
+#if defined(__linux__)
+#include <libcfs/linux/libcfs.h>
+#elif defined(__APPLE__)
+#include <libcfs/darwin/libcfs.h>
+#else
+#error Unsupported operating system.
+#endif
+
 #include "curproc.h"
 
 #define PORTAL_DEBUG
@@ -90,6 +97,7 @@ extern unsigned int portal_printk;
 #define D_READA       0x00400000 /* read-ahead */
 #define D_MMAP        0x00800000
 #define D_CONFIG      0x01000000
+#define D_CONSOLE     0x02000000
 /* If you change these values, please keep these files up to date...
  *    portals/utils/debug.c
  *    utils/lconf