git://git.onelab.eu
/
linux-2.6.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
vserver 1.9.5.x5
[linux-2.6.git]
/
arch
/
x86_64
/
Makefile
diff --git
a/arch/x86_64/Makefile
b/arch/x86_64/Makefile
index
9b9a504
..
6f90c24
100644
(file)
--- a/
arch/x86_64/Makefile
+++ b/
arch/x86_64/Makefile
@@
-37,10
+37,10
@@
LDFLAGS := -m elf_x86_64
OBJCOPYFLAGS := -O binary -R .note -R .comment -S
LDFLAGS_vmlinux := -e stext
OBJCOPYFLAGS := -O binary -R .note -R .comment -S
LDFLAGS_vmlinux := -e stext
-CHECK
:= $(CHECK) -D__x86_64__=1
+CHECK
FLAGS += -D__x86_64__ -m64
-cflags-$(CONFIG_MK8) += $(call c
heck_gcc,-march=k8,
)
-cflags-$(CONFIG_MPSC) += $(call c
heck_gcc,-march=nocona,
)
+cflags-$(CONFIG_MK8) += $(call c
c-option,-march=k8
)
+cflags-$(CONFIG_MPSC) += $(call c
c-option,-march=nocona
)
CFLAGS += $(cflags-y)
CFLAGS += -mno-red-zone
CFLAGS += $(cflags-y)
CFLAGS += -mno-red-zone
@@
-54,11
+54,13
@@
ifneq ($(CONFIG_DEBUG_INFO),y)
CFLAGS += -fno-asynchronous-unwind-tables
# -fweb shrinks the kernel a bit, but the difference is very small
# it also messes up debugging, so don't use it for now.
CFLAGS += -fno-asynchronous-unwind-tables
# -fweb shrinks the kernel a bit, but the difference is very small
# it also messes up debugging, so don't use it for now.
-#CFLAGS += $(call c
heck_gcc,-fweb,
)
+#CFLAGS += $(call c
c-option,-fweb
)
endif
# -funit-at-a-time shrinks the kernel .text considerably
# unfortunately it makes reading oopses harder.
endif
# -funit-at-a-time shrinks the kernel .text considerably
# unfortunately it makes reading oopses harder.
-CFLAGS += $(call check_gcc,-funit-at-a-time,)
+CFLAGS += $(call cc-option,-funit-at-a-time)
+# prevent gcc from generating any FP code by mistake
+CFLAGS += $(call cc-option,-mno-sse -mno-mmx -mno-sse2 -mno-3dnow,)
head-y := arch/x86_64/kernel/head.o arch/x86_64/kernel/head64.o arch/x86_64/kernel/init_task.o
head-y := arch/x86_64/kernel/head.o arch/x86_64/kernel/head64.o arch/x86_64/kernel/init_task.o
@@
-77,6
+79,7
@@
boot := arch/x86_64/boot
all: bzImage
BOOTIMAGE := arch/x86_64/boot/bzImage
all: bzImage
BOOTIMAGE := arch/x86_64/boot/bzImage
+KBUILD_IMAGE := $(BOOTIMAGE)
bzImage: vmlinux
$(Q)$(MAKE) $(build)=$(boot) $(BOOTIMAGE)
bzImage: vmlinux
$(Q)$(MAKE) $(build)=$(boot) $(BOOTIMAGE)