Skip to content

Commit

Permalink
NIOS2: fix kconfig unmet dependency warning for SERIAL_CORE_CONSOLE
Browse files Browse the repository at this point in the history
SERIAL_CORE_CONSOLE depends on TTY so EARLY_PRINTK should also
depend on TTY so that it does not select SERIAL_CORE_CONSOLE
inadvertently.

WARNING: unmet direct dependencies detected for SERIAL_CORE_CONSOLE
  Depends on [n]: TTY [=n] && HAS_IOMEM [=y]
  Selected by [y]:
  - EARLY_PRINTK [=y]

Fixes: e8bf5bc ("nios2: add early printk support")
Signed-off-by: Randy Dunlap <[email protected]>
Cc: Dinh Nguyen <[email protected]>
Signed-off-by: Dinh Nguyen <[email protected]>
  • Loading branch information
rddunlap authored and Dinh Nguyen committed Sep 24, 2021
1 parent e4e737b commit adfc8f9
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion arch/nios2/Kconfig.debug
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,10 @@
config EARLY_PRINTK
bool "Activate early kernel debugging"
default y
depends on TTY
select SERIAL_CORE_CONSOLE
help
Enable early printk on console
Enable early printk on console.
This is useful for kernel debugging when your machine crashes very
early before the console code is initialized.
You should normally say N here, unless you want to debug such a crash.

0 comments on commit adfc8f9

Please sign in to comment.