1
0
mirror of https://github.com/torvalds/linux.git synced 2024-12-21 10:31:54 +00:00
linux/arch/nios2
Tobias Klauser 2b2b4074e6 nios2: Make NIOS2_CMDLINE_IGNORE_DTB depend on CMDLINE_BOOL
If NIOS2_CMDLINE_IGNORE_DTB is selected but CMDLINE_BOOL isn't and thus
CONFIG_CMDLINE is not defined, the build fails with the following error:

arch/nios2/kernel/setup.c: In function 'nios2_boot_init':
arch/nios2/kernel/setup.c:131:30: error: 'CONFIG_CMDLINE' undeclared
(first use in this function)
   strncpy(boot_command_line, CONFIG_CMDLINE, COMMAND_LINE_SIZE);

This can be reproduced using randconfig with KCONFIG_SEED=0xE5B8749E, i.e.
'make KCONFIG_SEED=0xE5B8749E ARCH=nios2 randconfig'.

Fix this by letting NIOS2_CMDLINE_IGNORE_DTB depend on CMDLINE_BOOL, so we
actually have a default kernel command string to fall back to.

Signed-off-by: Tobias Klauser <tklauser@distanz.ch>
Acked-by: Ley Foon Tan <lftan@altera.com>
2014-12-08 12:56:14 +08:00
..
boot nios2: Build infrastructure 2014-12-08 12:56:06 +08:00
configs nios2: Build infrastructure 2014-12-08 12:56:06 +08:00
include nios2: Remove unused extern declaration of shm_align_mask 2014-12-08 12:56:11 +08:00
kernel nios2: asm-offsets: Remove unused definition TI_TASK 2014-12-08 12:56:12 +08:00
lib nios2: Build infrastructure 2014-12-08 12:56:06 +08:00
mm nios2: Build infrastructure 2014-12-08 12:56:06 +08:00
platform nios2: Build infrastructure 2014-12-08 12:56:06 +08:00
Kconfig nios2: Make NIOS2_CMDLINE_IGNORE_DTB depend on CMDLINE_BOOL 2014-12-08 12:56:14 +08:00
Kconfig.debug nios2: Build infrastructure 2014-12-08 12:56:06 +08:00
Makefile nios2: Build infrastructure 2014-12-08 12:56:06 +08:00