1 comment:
File src/drivers/uart/uart8250io.c:
Patch Set #2, Line 78: static const unsigned int bases[] = { 0x3f8, 0x2f8, 0x3e8, 0x2e8 };
I was trying to understand how it changes to get to the best support. […]
I had an insane idea not too long ago: the `dynconfig()` macro
When there's no `dynconfig backend` (e.g. CMOS, VPD) to change options after building, this would be equivalent to the `CONFIG()` macro, and evaluate to a constant expression. However, if some `dynconfig backend` is enabled, then it would become a function call, which would retrieve the value through that backend. This would allow reusing the same Kconfig symbol names in the dynconfig backends (with some prefix to differentiate them from regular Kconfig symbols).
I didn't think about implementing this though, which is why I say it's an insane idea.
To view, visit change 45405. To unsubscribe, or for help writing mail filters, visit settings.