fix dependency check logic cause config always disabled
[lunaix-os.git] / lunaix-os / hal / ahci / LBuild
index 7da89abe6dd9091e128a120b371f37d8184b83d4..ec6018d3bb6f4520780dd0f0abf635f3f2a3a761 100644 (file)
@@ -1,5 +1,5 @@
-if config("ahci_enable"):
-    sources([
+if config.ahci_enable:
+    src.c += (
         "ahci_pci.c",
         "hbadev_export.c",
         "ahci.c",
@@ -7,4 +7,4 @@ if config("ahci_enable"):
         "io_event.c",
         "atapi.c",
         "ata.c"
-    ])
\ No newline at end of file
+    )
\ No newline at end of file