Rewrite the lunabuild toolchain with enhanced feature (#60)
[lunaix-os.git] / lunaix-os / hal / char / uart / LBuild
index 83088c659775567aec63e6887517442122d9901f..a25cf34735102ad91f37181c28d15f44c5aee6e4 100644 (file)
@@ -1,11 +1,12 @@
-sources([
+src.c += (
     "16x50_base.c",
     "16x50_pmio.c",
     "16x50_mmio.c",
-])
+    "16x50_dev.c",
+)
 
-if config("xt_16x50"):
-    sources("16x50_isa.c")
+if config.xt_16x50:
+    src.c += "16x50_isa.c"
 
-if config("pci_16x50"):
-    sources("16x50_pci.c")
\ No newline at end of file
+if config.pci_16x50:
+    src.c += "16x50_pci.c"
\ No newline at end of file