Rewrite the lunabuild toolchain with enhanced feature (#60)
[lunaix-os.git] / lunaix-os / hal / ahci / LBuild
index 8c081c6b12d91fb9619391ffbae6cf0d8d7a11c6..ec6018d3bb6f4520780dd0f0abf635f3f2a3a761 100644 (file)
@@ -1,9 +1,10 @@
-sources([
-    "ahci_pci.c",
-    "hbadev_export.c",
-    "ahci.c",
-    "utils.c",
-    "io_event.c",
-    "atapi.c",
-    "ata.c"
-])
\ No newline at end of file
+if config.ahci_enable:
+    src.c += (
+        "ahci_pci.c",
+        "hbadev_export.c",
+        "ahci.c",
+        "utils.c",
+        "io_event.c",
+        "atapi.c",
+        "ata.c"
+    )
\ No newline at end of file