Skip to content

Commit

Permalink
x86: add a Kconfig symbol for when relocations are needed
Browse files Browse the repository at this point in the history
We only need to build relocations when we are building a 32-bit
relocatable kernel.  Rather than unnecessarily complicating the
Makefiles, make an explicit Kbuild symbol for this.

[ Impact: permits future cleanup ]

Signed-off-by: H. Peter Anvin <hpa@zytor.com>
Cc: Sam Ravnborg <sam@ravnborg.org>
  • Loading branch information
H. Peter Anvin committed May 9, 2009
1 parent d3dd3b5 commit 845adf7
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions arch/x86/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -1513,6 +1513,11 @@ config RELOCATABLE
it has been loaded at and the compile time physical address
(CONFIG_PHYSICAL_START) is ignored.

# Relocation on x86-32 needs some additional build support
config X86_NEED_RELOCS
def_bool y
depends on X86_32 && RELOCATABLE

config PHYSICAL_ALIGN
hex
prompt "Alignment value to which kernel should be aligned" if X86_32
Expand Down

0 comments on commit 845adf7

Please sign in to comment.