diff options
author | Franck Bui-Huu <vagabon.xyz@gmail.com> | 2007-02-15 08:21:36 -0500 |
---|---|---|
committer | Ralf Baechle <ralf@linux-mips.org> | 2007-10-11 18:45:59 -0400 |
commit | 054c51b4368648406f487f54b7ed6ba75bbb3f8b (patch) | |
tree | 89db2ea5e05fd95bff686d24383897332276e98b /arch/mips/Makefile | |
parent | adff90a9333004d5459823665e8bcf6cb9214f79 (diff) |
[MIPS] Rename CONFIG_BUILD_ELF64 into KBUILD_64BIT_SYM32
This patch renames it for 3 reasons:
- "CONFIG" pattern is used by Kconfig. Now this macro is
no more defined by Kconfig but by Kbuild itself make this
clear by translating "CONFIG" into "KBUILD".
- "ELF32" word is improper because it is irrelevant to ELF
format and it makes confusion with CONFIG_BOOT_ELF32. So
translate it with SYM32.
- Add "64BIT" part to make clear that this macro implies a
64 bits kernel.
Signed-off-by: Franck Bui-Huu <fbuihuu@gmail.com>
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
Diffstat (limited to 'arch/mips/Makefile')
-rw-r--r-- | arch/mips/Makefile | 12 |
1 files changed, 5 insertions, 7 deletions
diff --git a/arch/mips/Makefile b/arch/mips/Makefile index 4337c492ed1b..ce7e02e613a7 100644 --- a/arch/mips/Makefile +++ b/arch/mips/Makefile | |||
@@ -577,19 +577,17 @@ endif | |||
577 | # Automatically detect the build format. By default we choose | 577 | # Automatically detect the build format. By default we choose |
578 | # the elf format according to the load address. | 578 | # the elf format according to the load address. |
579 | # We can always force a build with a 64-bits symbol format by | 579 | # We can always force a build with a 64-bits symbol format by |
580 | # passing 'BUILD_ELF32=no' option to the make's command line. | 580 | # passing 'KBUILD_SYM32=no' option to the make's command line. |
581 | # | 581 | # |
582 | ifdef CONFIG_64BIT | 582 | ifdef CONFIG_64BIT |
583 | ifndef BUILD_ELF32 | 583 | ifndef KBUILD_SYM32 |
584 | ifeq ($(shell expr $(load-y) \< 0xffffffff80000000), 0) | 584 | ifeq ($(shell expr $(load-y) \< 0xffffffff80000000), 0) |
585 | BUILD_ELF32 = y | 585 | KBUILD_SYM32 = y |
586 | endif | 586 | endif |
587 | endif | 587 | endif |
588 | 588 | ||
589 | ifeq ($(BUILD_ELF32), y) | 589 | ifeq ($(KBUILD_SYM32), y) |
590 | cflags-y += -msym32 | 590 | cflags-y += -msym32 -DKBUILD_64BIT_SYM32 |
591 | else | ||
592 | cflags-y += -DCONFIG_BUILD_ELF64 | ||
593 | endif | 591 | endif |
594 | endif | 592 | endif |
595 | 593 | ||