Commit SDMA driver changes.
[barrelfish] / usr / drivers / omap44xx / sdma / Hakefile
index 726a94e..7219f2d 100644 (file)
@@ -11,8 +11,8 @@
 --------------------------------------------------------------------------
 
 [
-    build application { target = "sdma",
-                    cFiles = (find withSuffices [".c"]),
+    build library { target = "sdma_module",
+                    cFiles = ["main.c", "omap_sdma.c", "service.c"],
                     mackerelDevices = [ "omap/omap44xx_sdma" ],
 
                     flounderDefs = [ "omap_sdma" ],
 
                     addLibraries = ["driverkit", "thc"],
                     architectures = ["armv7"]
-                  }
+    },
+
+    build application {
+        target = "sdma",
+        cFiles = [ "sdma_domain.c"],
+        addModules = ["sdma_module"],
+        addLinkFlags = ["-T" ++ Config.source_dir ++ "/lib/driverkit/bfdrivers.ld" ]
+    }
 ]