Changeset 44bec47 in mainline for kernel/arch/ia32xen/Makefile.inc


Ignore:
Timestamp:
2007-06-06T20:00:13Z (18 years ago)
Author:
Jakub Jermar <jakub@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
3ee8a075
Parents:
99373fe
Message:

Better infrastructure for building with different compilers.
Separate ICC_CFLAGS added, SUNCC_CFLAGS extended.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • kernel/arch/ia32xen/Makefile.inc

    r99373fe r44bec47  
    3838DEFS += -DMACHINE=$(MACHINE) -D__32_BITS__
    3939
    40 SUNCC_CFLAGS += -m32
     40CMN1 = -m32
     41GCC_CFLAGS += $(CMN1)
     42ICC_CFLAGS += $(CMN1)
     43SUNCC_CFLAGS += $(CMN1)
    4144
    4245## Accepted CPUs
     
    4447
    4548ifeq ($(MACHINE),athlon-xp)
    46         GCC_CFLAGS += -march=athlon-xp -mmmx -msse -m3dnow
     49        CMN2 = -march=athlon-xp -mmmx -msse -m3dnow
     50        GCC_CFLAGS += $(CMN2)
     51        ICC_CFLAGS += $(CMN2)
     52        SUNCC_CFLAGS += -xarch=ssea
    4753        DEFS += -DCONFIG_FENCES_P3
    4854        CONFIG_SMP = n
     
    5056endif
    5157ifeq ($(MACHINE),athlon-mp)
    52         GCC_CFLAGS += -march=athlon-mp -mmmx -msse -m3dnow
     58        CMN2 = -march=athlon-mp -mmmx -msse -m3dnow
     59        GCC_CFLAGS += $(CMN2)
     60        ICC_CFLAGS += $(CMN2)
     61        SUNCC_CFLAGS += -xarch=ssea
    5362        DEFS += -DCONFIG_FENCES_P3
    5463        CONFIG_HT = n
    5564endif
    5665ifeq ($(MACHINE),pentium3)
    57         GCC_CFLAGS += -march=pentium3 -mmmx -msse
     66        CMN2 = -march=pentium3 -mmmx -msse
     67        GCC_CFLAGS += $(CMN2)
     68        ICC_CFLAGS += $(CMN2)
     69        SUNCC_CFLAGS += -xarch=sse
    5870        DEFS += -DCONFIG_FENCES_P3
    5971        CONFIG_HT = n
    6072endif
    6173ifeq ($(MACHINE),prescott)
    62         GCC_CFLAGS += -march=pentium4 -mfpmath=sse -mmmx -msse -msse2 -msse3
     74        CMN2 = -march=pentium4 -mfpmath=sse -mmmx -msse -msse2 -msse3
     75        GCC_CFLAGS += $(CMN2)
     76        ICC_CFLAGS += $(CMN2)
     77        SUNCC_CFLAGS += -xarch=sse3
    6378        DEFS += -DCONFIG_FENCES_P4
    6479endif
    6580ifeq ($(MACHINE),pentium4)
    6681        GCC_CFLAGS += -march=pentium4 -mfpmath=sse -mmmx -msse -msse2
     82        ICC_CFLAGS += -march=pentium4
     83        SUNCC_CFLAGS += -xarch=sse2
    6784        DEFS += -DCONFIG_FENCES_P4
    6885endif
Note: See TracChangeset for help on using the changeset viewer.