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


Ignore:
Timestamp:
2007-06-06T20:00:13Z (17 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/ia32/Makefile.inc

    r99373fe r44bec47  
    3737
    3838DEFS += -DMACHINE=$(MACHINE) -D__32_BITS__
    39 SUNCC_CFLAGS += -m32
     39
     40CMN1 = -m32
     41GCC_CFLAGS += $(CMN1)
     42ICC_CFLAGS += $(CMN1)
     43SUNCC_CFLAGS += $(CMN1)
    4044
    4145## Accepted CPUs
     
    4347
    4448ifeq ($(MACHINE),athlon-xp)
    45         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
    4653        DEFS += -DCONFIG_FENCES_P3
    4754        CONFIG_SMP = n
     
    4956endif
    5057ifeq ($(MACHINE),athlon-mp)
    51         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
    5262        DEFS += -DCONFIG_FENCES_P3
    5363        CONFIG_HT = n
    5464endif
    5565ifeq ($(MACHINE),pentium3)
    56         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
    5770        DEFS += -DCONFIG_FENCES_P3
    5871        CONFIG_HT = n
    5972endif
    6073ifeq ($(MACHINE),prescott)
    61         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
    6278        DEFS += -DCONFIG_FENCES_P4
    6379endif
    6480ifeq ($(MACHINE),pentium4)
    65         ifeq ($(COMPILER),icc_native)
    66                 GCC_CFLAGS += -march=pentium4
    67         else
    68                 GCC_CFLAGS += -march=pentium4 -mfpmath=sse -mmmx -msse -msse2
    69         endif
     81        GCC_CFLAGS += -march=pentium4 -mfpmath=sse -mmmx -msse -msse2
     82        ICC_CFLAGS += -march=pentium4
     83        SUNCC_CFLAGS += -xarch=sse2
    7084        DEFS += -DCONFIG_FENCES_P4
    7185endif
Note: See TracChangeset for help on using the changeset viewer.