cmdline fixes
This commit is contained in:
@@ -6,7 +6,7 @@ endif
|
|||||||
|
|
||||||
modules += {
|
modules += {
|
||||||
'nvme': {
|
'nvme': {
|
||||||
'modular': true, #kconfig.get('CONFIG_NVME_CORE') == 'm',
|
'modular': kconfig.get('CONFIG_NVME_CORE') == 'm',
|
||||||
'sources': nvme_sources,
|
'sources': nvme_sources,
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -21,8 +21,8 @@
|
|||||||
static_assert(_Generic( \
|
static_assert(_Generic( \
|
||||||
(opt_limit), \
|
(opt_limit), \
|
||||||
const char**: true, \
|
const char**: true, \
|
||||||
const struct cmdline_option_limit_int*: true, \
|
const struct cmdline_range_int*: true, \
|
||||||
const struct cmdline_option_limit_uint*: true, \
|
const struct cmdline_range_uint*: true, \
|
||||||
void*: true \
|
void*: true \
|
||||||
)); \
|
)); \
|
||||||
[[__used, __section(".cmdline")]] \
|
[[__used, __section(".cmdline")]] \
|
||||||
@@ -57,10 +57,10 @@ struct cmdline_option {
|
|||||||
};
|
};
|
||||||
union {
|
union {
|
||||||
const char** str_limit;
|
const char** str_limit;
|
||||||
struct cmdline_limit_int {
|
struct cmdline_range_int {
|
||||||
intptr_t min, max;
|
intptr_t min, max;
|
||||||
}* intptr_limit;
|
}* intptr_limit;
|
||||||
struct cmdline_limit_uint {
|
struct cmdline_range_uint {
|
||||||
uintptr_t min, max;
|
uintptr_t min, max;
|
||||||
}* uintptr_limit;
|
}* uintptr_limit;
|
||||||
void* limit;
|
void* limit;
|
||||||
|
|||||||
+1
-1
@@ -161,5 +161,5 @@ executable(
|
|||||||
)
|
)
|
||||||
|
|
||||||
# Print a summary
|
# Print a summary
|
||||||
summary(mod_summary, section: 'Driver configuration')
|
summary(mod_summary, bool_yn: true, section: 'Driver configuration')
|
||||||
summary(kconfig, bool_yn: true, section: 'Kernel configuration')
|
summary(kconfig, bool_yn: true, section: 'Kernel configuration')
|
||||||
|
|||||||
@@ -61,8 +61,8 @@ if __name__ == "__main__":
|
|||||||
case 1:
|
case 1:
|
||||||
kind_str = "bool"
|
kind_str = "bool"
|
||||||
case 2:
|
case 2:
|
||||||
kind_str = "integer"
|
kind_str = "signed integer"
|
||||||
case 2:
|
case 3:
|
||||||
kind_str = "unsigned integer"
|
kind_str = "unsigned integer"
|
||||||
|
|
||||||
# Skip function pointer
|
# Skip function pointer
|
||||||
|
|||||||
Reference in New Issue
Block a user