diff options
author | H. Peter Anvin <hpa@zytor.com> | 2009-05-06 00:20:51 -0400 |
---|---|---|
committer | H. Peter Anvin <hpa@zytor.com> | 2009-05-08 20:16:22 -0400 |
commit | 845adf7266a7ba6970bf982ffd96abc60d2018ab (patch) | |
tree | d27c42ba2b3b58dffcc0bfd8c3bf2ad7c161746b /arch/x86/Kconfig | |
parent | d3dd3b5a29bb9582957451531fed461628dfc834 (diff) |
x86: add a Kconfig symbol for when relocations are needed
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>
Diffstat (limited to 'arch/x86/Kconfig')
-rw-r--r-- | arch/x86/Kconfig | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/arch/x86/Kconfig b/arch/x86/Kconfig index 039c3f04aac5..5aee45356b58 100644 --- a/arch/x86/Kconfig +++ b/arch/x86/Kconfig | |||
@@ -1513,6 +1513,11 @@ config RELOCATABLE | |||
1513 | it has been loaded at and the compile time physical address | 1513 | it has been loaded at and the compile time physical address |
1514 | (CONFIG_PHYSICAL_START) is ignored. | 1514 | (CONFIG_PHYSICAL_START) is ignored. |
1515 | 1515 | ||
1516 | # Relocation on x86-32 needs some additional build support | ||
1517 | config X86_NEED_RELOCS | ||
1518 | def_bool y | ||
1519 | depends on X86_32 && RELOCATABLE | ||
1520 | |||
1516 | config PHYSICAL_ALIGN | 1521 | config PHYSICAL_ALIGN |
1517 | hex | 1522 | hex |
1518 | prompt "Alignment value to which kernel should be aligned" if X86_32 | 1523 | prompt "Alignment value to which kernel should be aligned" if X86_32 |