Makefile (8a517c514d5893602cf85c1b4c47afbbc04d2198) | Makefile (366d19e181be873c70f4aafca3931d77d781ccd7) |
---|---|
1# Unified Makefile for i386 and x86_64 2 3# select defconfig based on actual architecture 4ifeq ($(ARCH),x86) 5 KBUILD_DEFCONFIG := i386_defconfig 6else 7 KBUILD_DEFCONFIG := $(ARCH)_defconfig 8endif --- 41 unchanged lines hidden (view full) --- 50 KBUILD_CFLAGS += -m64 51 52 # FIXME - should be integrated in Makefile.cpu (Makefile_32.cpu) 53 cflags-$(CONFIG_MK8) += $(call cc-option,-march=k8) 54 cflags-$(CONFIG_MPSC) += $(call cc-option,-march=nocona) 55 56 cflags-$(CONFIG_MCORE2) += \ 57 $(call cc-option,-march=core2,$(call cc-option,-mtune=generic)) | 1# Unified Makefile for i386 and x86_64 2 3# select defconfig based on actual architecture 4ifeq ($(ARCH),x86) 5 KBUILD_DEFCONFIG := i386_defconfig 6else 7 KBUILD_DEFCONFIG := $(ARCH)_defconfig 8endif --- 41 unchanged lines hidden (view full) --- 50 KBUILD_CFLAGS += -m64 51 52 # FIXME - should be integrated in Makefile.cpu (Makefile_32.cpu) 53 cflags-$(CONFIG_MK8) += $(call cc-option,-march=k8) 54 cflags-$(CONFIG_MPSC) += $(call cc-option,-march=nocona) 55 56 cflags-$(CONFIG_MCORE2) += \ 57 $(call cc-option,-march=core2,$(call cc-option,-mtune=generic)) |
58 cflags-$(CONFIG_MATOM) += $(call cc-option,-march=atom) \ 59 $(call cc-option,-mtune=atom,$(call cc-option,-mtune=generic)) |
|
58 cflags-$(CONFIG_GENERIC_CPU) += $(call cc-option,-mtune=generic) 59 KBUILD_CFLAGS += $(cflags-y) 60 61 KBUILD_CFLAGS += -mno-red-zone 62 KBUILD_CFLAGS += -mcmodel=kernel 63 64 # -funit-at-a-time shrinks the kernel .text considerably 65 # unfortunately it makes reading oopses harder. --- 125 unchanged lines hidden --- | 60 cflags-$(CONFIG_GENERIC_CPU) += $(call cc-option,-mtune=generic) 61 KBUILD_CFLAGS += $(cflags-y) 62 63 KBUILD_CFLAGS += -mno-red-zone 64 KBUILD_CFLAGS += -mcmodel=kernel 65 66 # -funit-at-a-time shrinks the kernel .text considerably 67 # unfortunately it makes reading oopses harder. --- 125 unchanged lines hidden --- |