X-Git-Url: https://scm.lunaixsky.com/lunaix-os.git/blobdiff_plain/47c4e0c19ae8526b14ce4e0d7b243f7a4dc6fafd..bffa3430fbbaaad29bec0b5bee9c1f0bfc7fd068:/lunaix-os/hal/LConfig diff --git a/lunaix-os/hal/LConfig b/lunaix-os/hal/LConfig index 63598db..9a70d02 100644 --- a/lunaix-os/hal/LConfig +++ b/lunaix-os/hal/LConfig @@ -6,4 +6,30 @@ include("ahci") def hal(): """ Lunaix hardware asbtraction layer """ - pass \ No newline at end of file + @Term("Devicetree for hardware discovery") + def use_devicetree(): + """ + Decide whether to use Devicetree for platform + resource topology sensing. + + On some architecture, Lunaix will fallback to use + devicetree when ran out of options. For others, such + as those designed with embedded support in mind, + devicetree might be mandatory and perhaps the only + way. + """ + + type(bool) + default(not v(arch).startswith("x86")) + + @ReadOnly + @Term("Maximum size of device tree blob (in KiB)") + def dtb_maxsize(): + """ + Maximum size for a firmware provided device tree blob + """ + + type(int) + default(256) + + return v(use_devicetree) \ No newline at end of file