Changeset 52d30c4 in mainline for kernel/arch/ia32xen/Makefile.inc


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/ia32xen/Makefile.inc

    r92d349c8 r52d30c4  
    3838DEFS += -DMACHINE=$(MACHINE) -D__32_BITS__
    3939
     40SUNCC_CFLAGS = -m32
     41
    4042## Accepted CPUs
    4143#
    4244
    4345ifeq ($(MACHINE),athlon-xp)
    44         CFLAGS += -march=athlon-xp -mmmx -msse -m3dnow
     46        GCC_CFLAGS += -march=athlon-xp -mmmx -msse -m3dnow
    4547        DEFS += -DCONFIG_FENCES_P3
    4648        CONFIG_SMP = n
     
    4850endif
    4951ifeq ($(MACHINE),athlon-mp)
    50         CFLAGS += -march=athlon-mp -mmmx -msse -m3dnow
     52        GCC_CFLAGS += -march=athlon-mp -mmmx -msse -m3dnow
    5153        DEFS += -DCONFIG_FENCES_P3
    5254        CONFIG_HT = n
    5355endif
    5456ifeq ($(MACHINE),pentium3)
    55         CFLAGS += -march=pentium3 -mmmx -msse
     57        GCC_CFLAGS += -march=pentium3 -mmmx -msse
    5658        DEFS += -DCONFIG_FENCES_P3
    5759        CONFIG_HT = n
    5860endif
    5961ifeq ($(MACHINE),prescott)
    60         CFLAGS += -march=pentium4 -mfpmath=sse -mmmx -msse -msse2 -msse3
     62        GCC_CFLAGS += -march=pentium4 -mfpmath=sse -mmmx -msse -msse2 -msse3
    6163        DEFS += -DCONFIG_FENCES_P4
    6264endif
    6365ifeq ($(MACHINE),pentium4)
    64         CFLAGS += -march=pentium4 -mfpmath=sse -mmmx -msse -msse2
     66        GCC_CFLAGS += -march=pentium4 -mfpmath=sse -mmmx -msse -msse2
    6567        DEFS += -DCONFIG_FENCES_P4
    6668endif
Note: See TracChangeset for help on using the changeset viewer.