Changeset 41f7564 in mainline for kernel/arch/ia32


Ignore:
Timestamp:
2006-07-17T00:53:53Z (19 years ago)
Author:
Martin Decky <martin@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
231fcb2
Parents:
41c4444
Message:

cleanup and unify the build system

File:
1 edited

Legend:

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

    r41c4444 r41f7564  
    3636TOOLCHAIN_DIR = /usr/local/i686/bin
    3737
    38 ## Make some default assumptions
    39 #
    40 
    41 ifndef IA32_CPU
    42         IA32_CPU = pentium4
    43 endif
    44 
    45 DEFS += -D_CPU=${IA32_CPU} -D__32_BITS__
     38DEFS += -DMACHINE=$(MACHINE) -D__32_BITS__
    4639
    4740## Accepted CPUs
    4841#
    4942
    50 ifeq ($(IA32_CPU),athlon-xp)
     43ifeq ($(MACHINE),athlon-xp)
    5144        CFLAGS += -march=athlon-xp -mmmx -msse -m3dnow
    5245        DEFS += -DCONFIG_FENCES_P3
     
    5447        CONFIG_HT = n
    5548endif
    56 ifeq ($(IA32_CPU),athlon-mp)
     49ifeq ($(MACHINE),athlon-mp)
    5750        CFLAGS += -march=athlon-mp -mmmx -msse -m3dnow
    5851        DEFS += -DCONFIG_FENCES_P3
    5952        CONFIG_HT = n
    6053endif
    61 ifeq ($(IA32_CPU),pentium3)
     54ifeq ($(MACHINE),pentium3)
    6255        CFLAGS += -march=pentium3 -mmmx -msse
    6356        DEFS += -DCONFIG_FENCES_P3
    6457        CONFIG_HT = n
    6558endif
    66 ifeq ($(IA32_CPU),prescott)
     59ifeq ($(MACHINE),prescott)
    6760        CFLAGS += -march=pentium4 -mfpmath=sse -mmmx -msse -msse2 -msse3
    6861        DEFS += -DCONFIG_FENCES_P4
    6962endif
    70 ifeq ($(IA32_CPU),pentium4)
     63ifeq ($(MACHINE),pentium4)
    7164        CFLAGS += -march=pentium4 -mfpmath=sse -mmmx -msse -msse2
    7265        DEFS += -DCONFIG_FENCES_P4
Note: See TracChangeset for help on using the changeset viewer.