summaryrefslogtreecommitdiffstats
path: root/from_pkg
diff options
context:
space:
mode:
authorfishsoupisgood <github@madingley.org>2019-07-19 12:15:32 +0100
committerfishsoupisgood <github@madingley.org>2019-07-19 12:15:32 +0100
commite888db713f9e345cbcf68b2edf3eb3a5c0929ebf (patch)
tree75d089fcfa0003213d430a0018782f2e5deb6ebd /from_pkg
parentdc213fae48478699ccd71b388b0f36fd6186bd2c (diff)
downloadwristapps-e888db713f9e345cbcf68b2edf3eb3a5c0929ebf.tar.gz
wristapps-e888db713f9e345cbcf68b2edf3eb3a5c0929ebf.tar.bz2
wristapps-e888db713f9e345cbcf68b2edf3eb3a5c0929ebf.zip
fish
Diffstat (limited to 'from_pkg')
0 files changed, 0 insertions, 0 deletions
n73'>73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102
#
# i386/Makefile
#
# This file is included by the global makefile so that you can add your own
# architecture-specific flags and dependencies. Remember to do have actions
# for "archclean" cleaning up for this architecture.
#
# This file is subject to the terms and conditions of the GNU General Public
# License.  See the file "COPYING" in the main directory of this archive
# for more details.
#
# Copyright (C) 1994 by Linus Torvalds
#
# 19990713  Artur Skawina <skawina@geocities.com>
#           Added '-march' and '-mpreferred-stack-boundary' support
#

XENARCH	:= $(subst ",,$(CONFIG_XENARCH))

LDFLAGS		:= -m elf_i386
LDFLAGS_vmlinux :=
CHECK		:= $(CHECK) -D__i386__=1

CFLAGS += -m32
AFLAGS += -m32

CFLAGS += -pipe -msoft-float

# prevent gcc from keeping the stack 16 byte aligned
CFLAGS += $(call cc-option,-mpreferred-stack-boundary=2,)

align := $(cc-option-align)
cflags-$(CONFIG_M386)		+= -march=i386
cflags-$(CONFIG_M486)		+= -march=i486
cflags-$(CONFIG_M586)		+= -march=i586
cflags-$(CONFIG_M586TSC)	+= -march=i586
cflags-$(CONFIG_M586MMX)	+= $(call cc-option,-march=pentium-mmx,-march=i586)
cflags-$(CONFIG_M686)		+= -march=i686
cflags-$(CONFIG_MPENTIUMII)	+= -march=i686 $(call cc-option,-mtune=pentium2)
cflags-$(CONFIG_MPENTIUMIII)	+= -march=i686 $(call cc-option,-mtune=pentium3)
cflags-$(CONFIG_MPENTIUMM)	+= -march=i686 $(call cc-option,-mtune=pentium3)
cflags-$(CONFIG_MPENTIUM4)	+= -march=i686 $(call cc-option,-mtune=pentium4)
cflags-$(CONFIG_MK6)		+= -march=k6
# Please note, that patches that add -march=athlon-xp and friends are pointless.
# They make zero difference whatsosever to performance at this time.
cflags-$(CONFIG_MK7)		+= $(call cc-option,-march=athlon,-march=i686 $(align)-functions=4)
cflags-$(CONFIG_MK8)		+= $(call cc-option,-march=k8,$(call cc-option,-march=athlon,-march=i686 $(align)-functions=4))
cflags-$(CONFIG_MCRUSOE)	+= -march=i686 $(align)-functions=0 $(align)-jumps=0 $(align)-loops=0
cflags-$(CONFIG_MEFFICEON)	+= -march=i686 $(call cc-option,-mtune=pentium3) $(align)-functions=0 $(align)-jumps=0 $(align)-loops=0
cflags-$(CONFIG_MWINCHIPC6)	+= $(call cc-option,-march=winchip-c6,-march=i586)
cflags-$(CONFIG_MWINCHIP2)	+= $(call cc-option,-march=winchip2,-march=i586)
cflags-$(CONFIG_MWINCHIP3D)	+= $(call cc-option,-march=winchip2,-march=i586)
cflags-$(CONFIG_MCYRIXIII)	+= $(call cc-option,-march=c3,-march=i486) $(align)-functions=0 $(align)-jumps=0 $(align)-loops=0
cflags-$(CONFIG_MVIAC3_2)	+= $(call cc-option,-march=c3-2,-march=i686)

# AMD Elan support
cflags-$(CONFIG_X86_ELAN)	+= -march=i486

# -mregparm=3 works ok on gcc-3.0 and later
#
GCC_VERSION			:= $(shell $(CONFIG_SHELL) $(srctree)/scripts/gcc-version.sh $(CC))
cflags-$(CONFIG_REGPARM) 	+= $(shell if [ $(GCC_VERSION) -ge 0300 ] ; then echo "-mregparm=3"; fi ;)

# Disable unit-at-a-time mode, it makes gcc use a lot more stack
# due to the lack of sharing of stacklots.
CFLAGS += $(call cc-option,-fno-unit-at-a-time,)

CFLAGS += $(cflags-y)

head-y := arch/xen/i386/kernel/head.o arch/xen/i386/kernel/init_task.o

libs-y 					+= arch/i386/lib/
core-y					+= arch/xen/i386/kernel/ \
					   arch/xen/i386/mm/ \
					   arch/i386/crypto/
# \
#					   arch/xen/$(mcore-y)/
drivers-$(CONFIG_MATH_EMULATION)	+= arch/i386/math-emu/
drivers-$(CONFIG_PCI)			+= arch/xen/i386/pci/
# must be linked after kernel/
drivers-$(CONFIG_OPROFILE)		+= arch/i386/oprofile/
drivers-$(CONFIG_PM)			+= arch/i386/power/

# for clean
obj-	+= kernel/ mm/ pci/
#obj-	+= ../../i386/lib/ ../../i386/mm/ 
#../../i386/$(mcore-y)/
#obj-	+= ../../i386/pci/ ../../i386/oprofile/ ../../i386/power/

xenflags-y += -Iinclude/asm-xen/asm-i386/mach-xen \
		-Iinclude/asm-i386/mach-default
CFLAGS += $(xenflags-y)
AFLAGS += $(xenflags-y)

prepare: include/asm-$(XENARCH)/asm_offsets.h
CLEAN_FILES += include/asm-$(XENARCH)/asm_offsets.h

arch/$(XENARCH)/kernel/asm-offsets.s: include/asm include/.asm-ignore \
	include/linux/version.h include/config/MARKER

include/asm-$(XENARCH)/asm_offsets.h: arch/$(XENARCH)/kernel/asm-offsets.s
	$(call filechk,gen-asm-offsets)