Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 1 | # Copyright 2003 - 2004 Pathscale, Inc |
| 2 | # Released under the GPL |
| 3 | |
Al Viro | 2b8232c | 2007-10-13 08:16:04 +0100 | [diff] [blame] | 4 | core-y += arch/um/sys-x86_64/ arch/x86/crypto/ |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 5 | START := 0x60000000 |
| 6 | |
Paolo 'Blaisorblade' Giarrusso | 1875a48 | 2006-10-11 01:21:31 -0700 | [diff] [blame] | 7 | _extra_flags_ = -fno-builtin -m64 |
Paolo 'Blaisorblade' Giarrusso | 0683750 | 2006-09-27 01:50:27 -0700 | [diff] [blame] | 8 | |
Sam Ravnborg | a0f97e0 | 2007-10-14 22:21:35 +0200 | [diff] [blame] | 9 | KBUILD_CFLAGS += $(_extra_flags_) |
Paolo 'Blaisorblade' Giarrusso | 0683750 | 2006-09-27 01:50:27 -0700 | [diff] [blame] | 10 | |
Al Viro | ca5cd87 | 2007-10-29 04:31:16 +0000 | [diff] [blame] | 11 | CHECKFLAGS += -m64 -D__x86_64__ |
Sam Ravnborg | 222d394 | 2007-10-15 21:59:31 +0200 | [diff] [blame] | 12 | KBUILD_AFLAGS += -m64 |
Jeff Dike | ff23db5 | 2006-06-30 01:55:58 -0700 | [diff] [blame] | 13 | LDFLAGS += -m elf_x86_64 |
Sam Ravnborg | 06c5040 | 2007-10-15 22:17:25 +0200 | [diff] [blame] | 14 | KBUILD_CPPFLAGS += -m64 |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 15 | |
| 16 | ELF_ARCH := i386:x86-64 |
| 17 | ELF_FORMAT := elf64-x86-64 |
Al Viro | 2b8232c | 2007-10-13 08:16:04 +0100 | [diff] [blame] | 18 | HEADER_ARCH := x86 |
Rob Landley | 53c0b59 | 2005-12-18 17:50:35 +0100 | [diff] [blame] | 19 | |
| 20 | # Not on all 64-bit distros /lib is a symlink to /lib64. PLD is an example. |
| 21 | |
| 22 | LINK-$(CONFIG_LD_SCRIPT_DYN) += -Wl,-rpath,/lib64 |
Jeff Dike | ff23db5 | 2006-06-30 01:55:58 -0700 | [diff] [blame] | 23 | LINK-y += -m64 |
Jeff Dike | 4f81c53 | 2008-07-07 13:36:56 -0400 | [diff] [blame] | 24 | |
| 25 | # Do unit-at-a-time unconditionally on x86_64, following the host |
| 26 | KBUILD_CFLAGS += $(call cc-option,-funit-at-a-time) |