2005-04-16 16:20:36 -06:00
|
|
|
# Copyright 2003 - 2004 Pathscale, Inc
|
|
|
|
# Released under the GPL
|
|
|
|
|
2006-10-11 02:21:38 -06:00
|
|
|
core-y += arch/um/sys-x86_64/ arch/x86_64/crypto/
|
2005-04-16 16:20:36 -06:00
|
|
|
START := 0x60000000
|
|
|
|
|
2006-10-11 02:21:31 -06:00
|
|
|
_extra_flags_ = -fno-builtin -m64
|
2006-09-27 02:50:27 -06:00
|
|
|
|
2005-07-14 01:33:43 -06:00
|
|
|
#We #undef __x86_64__ for kernelspace, not for userspace where
|
|
|
|
#it's needed for headers to work!
|
2006-10-29 23:46:42 -07:00
|
|
|
ARCH_KERNEL_DEFINES = -U__$(SUBARCH)__
|
2007-10-14 14:21:35 -06:00
|
|
|
KBUILD_CFLAGS += $(_extra_flags_)
|
2006-09-27 02:50:27 -06:00
|
|
|
|
2005-09-09 10:14:12 -06:00
|
|
|
CHECKFLAGS += -m64
|
2007-10-15 13:59:31 -06:00
|
|
|
KBUILD_AFLAGS += -m64
|
2006-06-30 02:55:58 -06:00
|
|
|
LDFLAGS += -m elf_x86_64
|
2007-10-15 14:17:25 -06:00
|
|
|
KBUILD_CPPFLAGS += -m64
|
2005-04-16 16:20:36 -06:00
|
|
|
|
|
|
|
ELF_ARCH := i386:x86-64
|
|
|
|
ELF_FORMAT := elf64-x86-64
|
2005-12-18 09:50:35 -07: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 02:55:58 -06:00
|
|
|
LINK-y += -m64
|