diff options
Diffstat (limited to 'arch/x86/Kconfig')
-rw-r--r-- | arch/x86/Kconfig | 41 |
1 files changed, 24 insertions, 17 deletions
diff --git a/arch/x86/Kconfig b/arch/x86/Kconfig index b1d3f60525c0..aafae3b140de 100644 --- a/arch/x86/Kconfig +++ b/arch/x86/Kconfig | |||
@@ -47,6 +47,11 @@ config X86 | |||
47 | select HAVE_KERNEL_BZIP2 | 47 | select HAVE_KERNEL_BZIP2 |
48 | select HAVE_KERNEL_LZMA | 48 | select HAVE_KERNEL_LZMA |
49 | 49 | ||
50 | config OUTPUT_FORMAT | ||
51 | string | ||
52 | default "elf32-i386" if X86_32 | ||
53 | default "elf64-x86-64" if X86_64 | ||
54 | |||
50 | config ARCH_DEFCONFIG | 55 | config ARCH_DEFCONFIG |
51 | string | 56 | string |
52 | default "arch/x86/configs/i386_defconfig" if X86_32 | 57 | default "arch/x86/configs/i386_defconfig" if X86_32 |
@@ -1460,9 +1465,7 @@ config KEXEC_JUMP | |||
1460 | 1465 | ||
1461 | config PHYSICAL_START | 1466 | config PHYSICAL_START |
1462 | hex "Physical address where the kernel is loaded" if (EMBEDDED || CRASH_DUMP) | 1467 | hex "Physical address where the kernel is loaded" if (EMBEDDED || CRASH_DUMP) |
1463 | default "0x1000000" if X86_NUMAQ | 1468 | default "0x1000000" |
1464 | default "0x200000" if X86_64 | ||
1465 | default "0x100000" | ||
1466 | ---help--- | 1469 | ---help--- |
1467 | This gives the physical address where the kernel is loaded. | 1470 | This gives the physical address where the kernel is loaded. |
1468 | 1471 | ||
@@ -1481,15 +1484,15 @@ config PHYSICAL_START | |||
1481 | to be specifically compiled to run from a specific memory area | 1484 | to be specifically compiled to run from a specific memory area |
1482 | (normally a reserved region) and this option comes handy. | 1485 | (normally a reserved region) and this option comes handy. |
1483 | 1486 | ||
1484 | So if you are using bzImage for capturing the crash dump, leave | 1487 | So if you are using bzImage for capturing the crash dump, |
1485 | the value here unchanged to 0x100000 and set CONFIG_RELOCATABLE=y. | 1488 | leave the value here unchanged to 0x1000000 and set |
1486 | Otherwise if you plan to use vmlinux for capturing the crash dump | 1489 | CONFIG_RELOCATABLE=y. Otherwise if you plan to use vmlinux |
1487 | change this value to start of the reserved region (Typically 16MB | 1490 | for capturing the crash dump change this value to start of |
1488 | 0x1000000). In other words, it can be set based on the "X" value as | 1491 | the reserved region. In other words, it can be set based on |
1489 | specified in the "crashkernel=YM@XM" command line boot parameter | 1492 | the "X" value as specified in the "crashkernel=YM@XM" |
1490 | passed to the panic-ed kernel. Typically this parameter is set as | 1493 | command line boot parameter passed to the panic-ed |
1491 | crashkernel=64M@16M. Please take a look at | 1494 | kernel. Please take a look at Documentation/kdump/kdump.txt |
1492 | Documentation/kdump/kdump.txt for more details about crash dumps. | 1495 | for more details about crash dumps. |
1493 | 1496 | ||
1494 | Usage of bzImage for capturing the crash dump is recommended as | 1497 | Usage of bzImage for capturing the crash dump is recommended as |
1495 | one does not have to build two kernels. Same kernel can be used | 1498 | one does not have to build two kernels. Same kernel can be used |
@@ -1502,8 +1505,8 @@ config PHYSICAL_START | |||
1502 | Don't change this unless you know what you are doing. | 1505 | Don't change this unless you know what you are doing. |
1503 | 1506 | ||
1504 | config RELOCATABLE | 1507 | config RELOCATABLE |
1505 | bool "Build a relocatable kernel (EXPERIMENTAL)" | 1508 | bool "Build a relocatable kernel" |
1506 | depends on EXPERIMENTAL | 1509 | default y |
1507 | ---help--- | 1510 | ---help--- |
1508 | This builds a kernel image that retains relocation information | 1511 | This builds a kernel image that retains relocation information |
1509 | so it can be loaded someplace besides the default 1MB. | 1512 | so it can be loaded someplace besides the default 1MB. |
@@ -1518,12 +1521,16 @@ config RELOCATABLE | |||
1518 | it has been loaded at and the compile time physical address | 1521 | it has been loaded at and the compile time physical address |
1519 | (CONFIG_PHYSICAL_START) is ignored. | 1522 | (CONFIG_PHYSICAL_START) is ignored. |
1520 | 1523 | ||
1524 | # Relocation on x86-32 needs some additional build support | ||
1525 | config X86_NEED_RELOCS | ||
1526 | def_bool y | ||
1527 | depends on X86_32 && RELOCATABLE | ||
1528 | |||
1521 | config PHYSICAL_ALIGN | 1529 | config PHYSICAL_ALIGN |
1522 | hex | 1530 | hex |
1523 | prompt "Alignment value to which kernel should be aligned" if X86_32 | 1531 | prompt "Alignment value to which kernel should be aligned" if X86_32 |
1524 | default "0x100000" if X86_32 | 1532 | default "0x1000000" |
1525 | default "0x200000" if X86_64 | 1533 | range 0x2000 0x1000000 |
1526 | range 0x2000 0x400000 | ||
1527 | ---help--- | 1534 | ---help--- |
1528 | This value puts the alignment restrictions on physical address | 1535 | This value puts the alignment restrictions on physical address |
1529 | where kernel is loaded and run from. Kernel is compiled for an | 1536 | where kernel is loaded and run from. Kernel is compiled for an |