fix dependency check logic cause config always disabled
[lunaix-os.git] / lunaix-os / arch / x86 / LConfig
1
2 @(parent := architecture_support)
3 def x86_configurations():
4
5     require (arch_x86)
6
7     @flag
8     def x86_bl_mb() -> bool:
9         when (x86_bl is "mb")
10     
11     @flag
12     def x86_bl_mb2() -> bool:
13         when (x86_bl is "mb2")
14     
15     @"Use SSE2/3/4 extension"
16     def x86_enable_sse_feature() -> bool:
17         """ 
18             Config whether to allow using SSE feature for certain
19             optimization
20         """
21
22         return False
23
24     @"Bootloader Model"
25     def x86_bl() -> "mb" | "mb2":
26         """
27             Select the bootloader interface
28             
29             Supported interface
30                 mb:      multiboot compliance
31                 mb2:     multiboot2 compliance
32                 none:    do not use any interface
33         """
34
35         return "mb"