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
Rewrite the lunabuild toolchain with enhanced feature (#60)
[lunaix-os.git]
/
lunaix-os
/
arch
/
x86
/
LConfig
diff --git
a/lunaix-os/arch/x86/LConfig
b/lunaix-os/arch/x86/LConfig
index 2b345246214d989aa9f5f40c2561a4ad1bb87503..6720ccddbd6ddd370650db87b51b7760acb3a5be 100644
(file)
--- a/
lunaix-os/arch/x86/LConfig
+++ b/
lunaix-os/arch/x86/LConfig
@@
-1,22
+1,28
@@
-@
Group
+@
(parent := architecture_support)
def x86_configurations():
def x86_configurations():
-
- add_to_collection(architecture_support)
- @Term("Use SSE2/3/4 extension")
- def x86_enable_sse_feature():
+ require (arch_x86)
+
+ @flag
+ def x86_bl_mb() -> bool:
+ when (x86_bl is "mb")
+
+ @flag
+ def x86_bl_mb2() -> bool:
+ when (x86_bl is "mb2")
+
+ @"Use SSE2/3/4 extension"
+ def x86_enable_sse_feature() -> bool:
"""
Config whether to allow using SSE feature for certain
optimization
"""
"""
Config whether to allow using SSE feature for certain
optimization
"""
-
- type(bool)
- default(False)
+ return False
- @
Term("Bootloader Model")
- def x86_bl():
+ @
"Bootloader Model"
+ def x86_bl()
-> "mb" | "mb2"
:
"""
Select the bootloader interface
"""
Select the bootloader interface
@@
-26,9
+32,4
@@
def x86_configurations():
none: do not use any interface
"""
none: do not use any interface
"""
- type(["mb"])
- # type(["mb", "mb2", "none"])
- default("mb")
-
-
- return v(arch) in ["i386", "x86_64"]
\ No newline at end of file
+ return "mb"
\ No newline at end of file