git://scm.lunaixsky.com
/
lunaix-os.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
shconfig: add `link` command to view the inverse dependency
[lunaix-os.git]
/
lunaix-os
/
hal
/
char
/
LConfig
diff --git
a/lunaix-os/hal/char/LConfig
b/lunaix-os/hal/char/LConfig
index 8e662fa5be4494450cfc8e0ca6e5633787ae6576..dd2fa0f0c498026e8f8a7737e91c573a72dcbd38 100644
(file)
--- a/
lunaix-os/hal/char/LConfig
+++ b/
lunaix-os/hal/char/LConfig
@@
-1,25
+1,26
@@
-include("uart")
+from . import uart
-@Collection("Character Devices")
+@"Character Devices"
+@(parent := hal)
def char_device():
""" Controlling support of character devices """
def char_device():
""" Controlling support of character devices """
- add_to_collection(hal)
-
- @Term("VGA 80x25 text-mode console")
- def vga_console():
- """
Enable VGA console device (text mode only) """
-
- type(bool)
- default(True)
+ @"VGA 80x25 text-mode console"
+ def vga_console() -> bool:
+ """
+ Enable VGA console device (text mode only)
+ """
+ require (use_graphic_dev)
+
+ return True
- @
Term("VGA character game device")
- def chargame_console():
+ @
"VGA character game device"
+ def chargame_console()
-> bool
:
"""
Enable VGA Charactor Game console device (text mode only)
You normally don't need to include this, unless you want some user space fun ;)
"""
"""
Enable VGA Charactor Game console device (text mode only)
You normally don't need to include this, unless you want some user space fun ;)
"""
+ require (vga_console)
- type(bool)
- default(False)
\ No newline at end of file
+ return False
\ No newline at end of file