Rewrite the lunabuild toolchain with enhanced feature (#60)
[lunaix-os.git] / lunaix-os / hal / LBuild
index c63faf3456c54826ba15d25a873a66f414f1b99c..d0475eef8bf70bf2092d04fa973fddc5d555e958 100644 (file)
@@ -1,9 +1,9 @@
-use("acpi")
-use("ahci")
-use("char")
-use("gfxa")
-use("rtc")
-use("term")
-use("timer")
-use("bus")
+from . import acpi, ahci, char, rtc, term, timer, bus
 
+if config.use_devicetree:
+    from . import devtree
+
+if config.use_graphic_dev:
+    from . import gfxa
+
+src.c += "irq.c"
\ No newline at end of file