rewrite the lunabuild toolchain with enhanced feature
[lunaix-os.git] / lunaix-os / hal / char / LBuild
index 88b33102a513d175fe3cc31f6a4cbabc34a36e08..55e3c8271e187971186e4337bb0c4863e140215e 100644 (file)
@@ -1,8 +1,13 @@
-use("uart")
+from . import uart
 
-sources([
+if config.vga_console:
+    src.c += "lxconsole.c"
+
+if config.chargame_console:
+    src.c += "chargame.c"
+
+src.c += (
     "devnull.c",
     "serial.c",
     "devzero.c",
-    "lxconsole.c",
-])
\ No newline at end of file
+)
\ No newline at end of file