rewrite the lunabuild toolchain with enhanced feature
[lunaix-os.git] / lunaix-os / kernel / fs / LBuild
index 25e8446a3309bf1daa0481a305ff4a8645460272..0a1d2ac26ef7b65c7fdbb0b5d2d71a122bd98056 100644 (file)
@@ -1,8 +1,12 @@
-use("twifs")
-use("ramfs")
-use("iso9660")
+from . import twifs, ramfs
 
-sources([
+if config.fs_ext2:
+    from . import ext2
+
+if config.fs_iso9660:
+    from . import iso9660
+
+src.c += (
     "twimap.c",
     "pcache.c",
     "mount.c",
@@ -12,5 +16,5 @@ sources([
     "path_walk.c",
     "fsm.c",
     "fs_export.c",
-    "probe_boot.c"
-])
\ No newline at end of file
+)
+