Rewrite the lunabuild toolchain with enhanced feature (#60)
[lunaix-os.git] / lunaix-os / kernel / fs / LBuild
index 638662f8319721f8b3752f743b542d7d5c91c355..0a1d2ac26ef7b65c7fdbb0b5d2d71a122bd98056 100644 (file)
@@ -1,13 +1,12 @@
-use("twifs")
-use("ramfs")
+from . import twifs, ramfs
 
-if configured("fs_iso9660"):
-    use("iso9660")
+if config.fs_ext2:
+    from . import ext2
 
-if configured("fs_ext2"):
-    use("ext2")
+if config.fs_iso9660:
+    from . import iso9660
 
-sources([
+src.c += (
     "twimap.c",
     "pcache.c",
     "mount.c",
@@ -17,5 +16,5 @@ sources([
     "path_walk.c",
     "fsm.c",
     "fs_export.c",
-])
+)