2005-04-17 02:20:36 +04:00
|
|
|
# Copyright 2003 - 2004 Pathscale, Inc
|
|
|
|
# Released under the GPL
|
|
|
|
|
2007-10-13 11:16:04 +04:00
|
|
|
core-y += arch/um/sys-x86_64/ arch/x86/crypto/
|
2005-04-17 02:20:36 +04:00
|
|
|
START := 0x60000000
|
|
|
|
|
2006-10-11 12:21:31 +04:00
|
|
|
_extra_flags_ = -fno-builtin -m64
|
2006-09-27 12:50:27 +04:00
|
|
|
|
2007-10-15 00:21:35 +04:00
|
|
|
KBUILD_CFLAGS += $(_extra_flags_)
|
2006-09-27 12:50:27 +04:00
|
|
|
|
2007-10-29 07:31:16 +03:00
|
|
|
CHECKFLAGS += -m64 -D__x86_64__
|
2007-10-15 23:59:31 +04:00
|
|
|
KBUILD_AFLAGS += -m64
|
2006-06-30 12:55:58 +04:00
|
|
|
LDFLAGS += -m elf_x86_64
|
2007-10-16 00:17:25 +04:00
|
|
|
KBUILD_CPPFLAGS += -m64
|
2005-04-17 02:20:36 +04:00
|
|
|
|
|
|
|
ELF_ARCH := i386:x86-64
|
|
|
|
ELF_FORMAT := elf64-x86-64
|
2007-10-13 11:16:04 +04:00
|
|
|
HEADER_ARCH := x86
|
2005-12-18 19:50:35 +03:00
|
|
|
|
|
|
|
# Not on all 64-bit distros /lib is a symlink to /lib64. PLD is an example.
|
|
|
|
|
|
|
|
LINK-$(CONFIG_LD_SCRIPT_DYN) += -Wl,-rpath,/lib64
|
2006-06-30 12:55:58 +04:00
|
|
|
LINK-y += -m64
|
2008-07-07 21:36:56 +04:00
|
|
|
|
|
|
|
# Do unit-at-a-time unconditionally on x86_64, following the host
|
|
|
|
KBUILD_CFLAGS += $(call cc-option,-funit-at-a-time)
|