Skip to content

Commit cd3bf8c

Browse files
rddunlapGreg Ungerer
authored andcommitted
m68k/nommu: prevent setting ROMKERNEL when ROM is not set
When CONFIG_ROMKERNEL is set but CONFIG_ROM is not set, the linker complains: m68k-linux-ld:./arch/m68k/kernel/vmlinux.lds:5: undefined symbol `CONFIG_ROMSTART' referenced in expression # CONFIG_ROM is not set # CONFIG_RAMKERNEL is not set CONFIG_ROMKERNEL=y Since ROMSTART depends on ROM, make ROMKERNEL also depend on ROM. Signed-off-by: Randy Dunlap <[email protected]> Cc: Greg Ungerer <[email protected]> Cc: [email protected] Cc: [email protected] Signed-off-by: Greg Ungerer <[email protected]>
1 parent e22ce8e commit cd3bf8c

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

arch/m68k/Kconfig.machine

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -465,6 +465,7 @@ config RAMKERNEL
465465

466466
config ROMKERNEL
467467
bool "ROM"
468+
depends on ROM
468469
help
469470
The kernel will be resident in FLASH/ROM when running. This is
470471
often referred to as Execute-in-Place (XIP), since the kernel

0 commit comments

Comments
 (0)