Changeset 52d30c4 in mainline for kernel/arch/ia32


Ignore:
Timestamp:
2007-06-05T21:24:40Z (18 years ago)
Author:
Jakub Jermar <jakub@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
4a8635b
Parents:
92d349c8
Message:

A bit of infrastructure for building with different compilers.
CFLAGS split into GCC_CFLAGS and SUNCC_CFLAGS.
As of now, there are no separate ICC_CFLAGS, but can be easily added.

File:
1 edited

Legend:

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

    r92d349c8 r52d30c4  
    3737
    3838DEFS += -DMACHINE=$(MACHINE) -D__32_BITS__
     39SUNCC_CFLAGS = -m32
    3940
    4041## Accepted CPUs
     
    4243
    4344ifeq ($(MACHINE),athlon-xp)
    44         CFLAGS += -march=athlon-xp -mmmx -msse -m3dnow
     45        GCC_CFLAGS += -march=athlon-xp -mmmx -msse -m3dnow
    4546        DEFS += -DCONFIG_FENCES_P3
    4647        CONFIG_SMP = n
     
    4849endif
    4950ifeq ($(MACHINE),athlon-mp)
    50         CFLAGS += -march=athlon-mp -mmmx -msse -m3dnow
     51        GCC_CFLAGS += -march=athlon-mp -mmmx -msse -m3dnow
    5152        DEFS += -DCONFIG_FENCES_P3
    5253        CONFIG_HT = n
    5354endif
    5455ifeq ($(MACHINE),pentium3)
    55         CFLAGS += -march=pentium3 -mmmx -msse
     56        GCC_CFLAGS += -march=pentium3 -mmmx -msse
    5657        DEFS += -DCONFIG_FENCES_P3
    5758        CONFIG_HT = n
    5859endif
    5960ifeq ($(MACHINE),prescott)
    60         CFLAGS += -march=pentium4 -mfpmath=sse -mmmx -msse -msse2 -msse3
     61        GCC_CFLAGS += -march=pentium4 -mfpmath=sse -mmmx -msse -msse2 -msse3
    6162        DEFS += -DCONFIG_FENCES_P4
    6263endif
    6364ifeq ($(MACHINE),pentium4)
    6465        ifeq ($(COMPILER),icc_native)
    65                 CFLAGS += -march=pentium4
     66                GCC_CFLAGS += -march=pentium4
    6667        else
    67                 CFLAGS += -march=pentium4 -mfpmath=sse -mmmx -msse -msse2
     68                GCC_CFLAGS += -march=pentium4 -mfpmath=sse -mmmx -msse -msse2
    6869        endif
    6970        DEFS += -DCONFIG_FENCES_P4
Note: See TracChangeset for help on using the changeset viewer.