diff options
| author | zms123456 <[email protected]> | 2023-10-18 20:50:30 +0800 |
|---|---|---|
| committer | GitHub <[email protected]> | 2023-10-18 20:50:30 +0800 |
| commit | d01dd05a0cd2107d85e26a445a43957880fd1978 (patch) | |
| tree | b6d6f631e427d608b9a09b22e9dbc0e7fb61c084 /src/Kconfig | |
| parent | dd33b31c280124526dc7aaf7c11e4b1eadf9d6b3 (diff) | |
[kernel][dm]适配新的设备驱动模型 (#8075)
Diffstat (limited to 'src/Kconfig')
| -rw-r--r-- | src/Kconfig | 64 |
1 files changed, 23 insertions, 41 deletions
diff --git a/src/Kconfig b/src/Kconfig index 49fcf256c0..bb93e76bb7 100644 --- a/src/Kconfig +++ b/src/Kconfig @@ -25,6 +25,7 @@ config RT_USING_SMART select RT_USING_DFS select RT_USING_LIBC select RT_USING_POSIX_CLOCKTIME + select RT_USING_DEVICE select RT_USING_TTY select RT_USING_NULL select RT_USING_ZERO @@ -382,52 +383,33 @@ menu "Memory Management" default y if RT_USING_USERHEAP endmenu -menu "Kernel Device Object" - - config RT_USING_DEVICE - bool "Using device object" - default y - - config RT_USING_DEVICE_OPS - bool "Using ops for each device object" - default n - - config RT_USING_DM - bool "Enable device driver model with device tree" - default n - help - Enable device driver model with device tree (FDT). It will use more memory - to parse and support device tree feature. - - config RT_USING_DM_FDT - bool "Enablie builtin libfdt" - depends on RT_USING_DM - default y - help - libfdt - Flat Device Tree manipulation. If your code already contains the - libfdt, you can cancel this built-in libfdt to avoid link issue. +config RT_USING_DEVICE + bool "Using device object" + default y - config RT_USING_INTERRUPT_INFO - bool "Enable additional interrupt trace information" - default n - help - Add name and counter information for interrupt trace. +config RT_USING_DEVICE_OPS + bool "Using ops for each device object" + default n - config RT_USING_CONSOLE - bool "Using console for rt_kprintf" - default y +config RT_USING_INTERRUPT_INFO + bool "Enable additional interrupt trace information" + default n + help + Add name and counter information for interrupt trace. - if RT_USING_CONSOLE - config RT_CONSOLEBUF_SIZE - int "the buffer size for console log printf" - default 128 +config RT_USING_CONSOLE + bool "Using console for rt_kprintf" + default y - config RT_CONSOLE_DEVICE_NAME - string "the device name for console" - default "uart" - endif +if RT_USING_CONSOLE + config RT_CONSOLEBUF_SIZE + int "the buffer size for console log printf" + default 128 -endmenu + config RT_CONSOLE_DEVICE_NAME + string "the device name for console" + default "uart" +endif config RT_VER_NUM hex |
