rewrite the lunabuild toolchain with enhanced feature
[lunaix-os.git] / lunaix-os / hal / ahci / LConfig
index b9578813c06b241fc4ac9bc9dd5f4e3ec3fa3987..31277f26165d9a4baa068197f9ca278fcb5e1947 100644 (file)
@@ -1,18 +1,14 @@
 
-@Collection
+@"AHCI"
+@(parent := hal)
 def sata_ahci():
 
-    add_to_collection(hal)
-
-    @Term
-    def ahci_enable():
+    @"Enable AHCI support"
+    def ahci_enable() -> bool:
         """ Enable the support of SATA AHCI. 
             Must require PCI at current stage """
+        require(pci_enable)
         
-        type(bool)
-        default(True)
-
-        if not v(pci_enable):
-            set_value(False)
+        return True
 
         
\ No newline at end of file