Rewrite the lunabuild toolchain with enhanced feature (#60)
[lunaix-os.git] / lunaix-os / hal / ahci / LConfig
index a199abfce77c858345e5db13b44ab1a60acea305..ea0b305bc0adbece3026e1d8295a4540f96504ea 100644 (file)
@@ -1,18 +1,14 @@
 
 
-@Collection("AHCI")
+@"AHCI"
+@(parent := hal)
 def sata_ahci():
 
 def sata_ahci():
 
-    add_to_collection(hal)
-
-    @Term("Enable AHCI support")
-    def ahci_enable():
+    @"Enable AHCI support"
+    def ahci_enable() -> bool:
         """ Enable the support of SATA AHCI. 
         """ Enable the support of SATA AHCI. 
-            Must require PCI at current stage """
+            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
 
         
\ No newline at end of file