Skip to content

native_posix: No support for "pull-model console" #5941

@pfalcon

Description

@pfalcon

"UART" is the default implementation console handler for Zephyr. Currently, building any sample in samples/subsys/console/ for BOARD=native_posix fails:

samples/subsys/console/echo:

/home/pfalcon/projects-3rdparty/Embedded/Zephyr/zephyr/subsys/console/getchar.c: In function ‘console_init’:
/home/pfalcon/projects-3rdparty/Embedded/Zephyr/zephyr/subsys/console/getchar.c:116:32: error: ‘CONFIG_UART_CONSOLE_ON_DEV_NAME’ undeclared (first use in this function)
  uart_dev = device_get_binding(CONFIG_UART_CONSOLE_ON_DEV_NAME);

samples/subsys/console/getchar:

/home/pfalcon/projects-3rdparty/Embedded/Zephyr/zephyr/subsys/console/getchar.c: In function ‘console_init’:
/home/pfalcon/projects-3rdparty/Embedded/Zephyr/zephyr/subsys/console/getchar.c:116:32: error: ‘CONFIG_UART_CONSOLE_ON_DEV_NAME’ undeclared (first use in this function)
  uart_dev = device_get_binding(CONFIG_UART_CONSOLE_ON_DEV_NAME);
                                ^

It would be nice to get that working (and shouldn't be too hard - this "uart console" would just proxy reads/writes from POSIX console).

Metadata

Metadata

Assignees

Labels

EnhancementChanges/Updates/Additions to existing featuresarea: native portHost native arch port (native_sim)priority: lowLow impact/importance bug

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions