[CMAKE]
authorSylvain Petreolle <spetreolle@yahoo.fr>
Sun, 19 Sep 2010 16:36:43 +0000 (16:36 +0000)
committerSylvain Petreolle <spetreolle@yahoo.fr>
Sun, 19 Sep 2010 16:36:43 +0000 (16:36 +0000)
Add ext2 to build.

svn path=/branches/cmake-bringup/; revision=48816

drivers/filesystems/CMakeLists.txt
drivers/filesystems/ext2/CMakeLists.txt [new file with mode: 0644]

index e53e771..cf523e6 100644 (file)
@@ -1,3 +1,4 @@
 
 add_subdirectory(cdfs)
+add_subdirectory(ext2)
 add_subdirectory(fastfat)
diff --git a/drivers/filesystems/ext2/CMakeLists.txt b/drivers/filesystems/ext2/CMakeLists.txt
new file mode 100644 (file)
index 0000000..8dc54b3
--- /dev/null
@@ -0,0 +1,32 @@
+include_directories(inc)
+
+list(APPEND SOURCE
+    src/volinfo.c
+    src/create.c
+    src/write.c
+    src/metadata.c
+    src/fastio.c
+    src/dircntrl.c
+    src/DiskIO.c
+    src/fsctrl.c
+    src/devcntrl.c
+    src/flush.c
+    src/ext2init.c
+    src/io.c
+    src/close.c
+    src/fileinfo.c
+    src/read.c
+    src/cleanup.c
+    src/misc.c
+    src/shutdown.c)
+    
+add_library(ext2fs SHARED ${SOURCE})
+
+set_target_properties(ext2fs PROPERTIES LINK_FLAGS "-Wl,-entry,_DriverEntry@8 -Wl,--image-base,0x00010000 -Wl,--exclude-all-symbols -Wl,--subsystem,native" SUFFIX ".sys")
+
+
+target_link_libraries(ext2fs
+    -lntoskrnl
+    -lhal)
+
+add_dependencies(ext2fs psdk bugcodes)