Changeset 9371c30 in mainline for arch


Ignore:
Timestamp:
2005-12-06T20:53:03Z (20 years ago)
Author:
Ondrej Palkovsky <ondrap@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
36e7b6c3
Parents:
090e7ea1
Message:

Completely reworked configuration system.

Location:
arch
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • arch/ia32/Makefile.inc

    r090e7ea1 r9371c30  
    3939#
    4040
    41 ifndef CPU
    42         CPU = pentium4
     41ifndef IA32_CPU
     42        IA32_CPU = pentium4
    4343endif
    4444
    45 DEFS += -D_CPU=${CPU}
     45DEFS += -D_CPU=${IA32_CPU}
    4646
    4747## Accepted CPUs
    4848#
    4949
    50 ifeq ($(CPU),athlon-xp)
     50ifeq ($(IA32_CPU),athlon-xp)
    5151        CFLAGS += -march=athlon-xp -mmmx -msse -m3dnow
    5252        DEFS += -DCONFIG_FENCES_P3
     
    5454        CONFIG_HT = n
    5555endif
    56 ifeq ($(CPU),athlon-mp)
     56ifeq ($(IA32_CPU),athlon-mp)
    5757        CFLAGS += -march=athlon-mp -mmmx -msse -m3dnow
    5858        DEFS += -DCONFIG_FENCES_P3
    5959        CONFIG_HT = n
    6060endif
    61 ifeq ($(CPU),pentium3)
     61ifeq ($(IA32_CPU),pentium3)
    6262        CFLAGS += -march=pentium3 -mmmx -msse
    6363        DEFS += -DCONFIG_FENCES_P3
    6464        CONFIG_HT = n
    6565endif
    66 ifeq ($(CPU),prescott)
     66ifeq ($(IA32_CPU),prescott)
    6767        CFLAGS += -march=pentium4 -mfpmath=sse -mmmx -msse -msse2 -msse3
    6868        DEFS += -DCONFIG_FENCES_P4
    6969endif
    70 ifeq ($(CPU),pentium4)
     70ifeq ($(IA32_CPU),pentium4)
    7171        CFLAGS += -march=pentium4 -mfpmath=sse -mmmx -msse -msse2
    7272        DEFS += -DCONFIG_FENCES_P4
  • arch/mips32/Makefile.inc

    r090e7ea1 r9371c30  
    3737#
    3838
    39 ifndef MACHINE
    40         MACHINE = msim
     39ifndef MIPS_MACHINE
     40        MIPS_MACHINE = msim
    4141endif
    4242
     
    4545INIT_SIZE = 65536
    4646CFLAGS += -mno-abicalls -G 0 -fno-zero-initialized-in-bss
    47 DEFS += -DMACHINE=${MACHINE} -DKERNEL_LOAD_ADDRESS=${KERNEL_LOAD_ADDRESS} -DINIT_ADDRESS=${INIT_ADDRESS} -DINIT_SIZE=${INIT_SIZE}
     47DEFS += -DMACHINE=${MIPS_MACHINE} -DKERNEL_LOAD_ADDRESS=${KERNEL_LOAD_ADDRESS} -DINIT_ADDRESS=${INIT_ADDRESS} -DINIT_SIZE=${INIT_SIZE}
    4848
    4949## Accepted MACHINEs
    5050#
    5151
    52 ifeq ($(MACHINE),indy)
     52ifeq ($(MIPS_MACHINE),indy)
    5353        # GCC 4.0.1 compiled for mipsEL has problems compiling in
    5454        # BigEndian mode with the swl/swr/lwl/lwr instructions.
     
    6262        CFLAGS += -EB -DBIG_ENDIAN -DHAVE_FPU -march=r4600
    6363endif
    64 ifeq ($(MACHINE),lgxemul)
     64ifeq ($(MIPS_MACHINE),lgxemul)
    6565        BFD_NAME=elf32-tradlittlemips
    6666        BFD = ecoff-littlemips
    6767        CFLAGS += -DHAVE_FPU -mips3
    6868endif
    69 ifeq ($(MACHINE),bgxemul)
     69ifeq ($(MIPS_MACHINE),bgxemul)
    7070        BFD_NAME=elf32-bigmips
    7171        BFD = ecoff-bigmips
     
    7474        CFLAGS += -EB -DBIG_ENDIAN -DHAVE_FPU -mips3
    7575endif
    76 ifeq ($(MACHINE),msim4kc)
     76ifeq ($(MIPS_MACHINE),msim4kc)
    7777        # MSIM needs lwl/swl patch & 4kc instruction patch to work
    7878        # otherwise add -mmemcpy -mips3
     
    8282        CFLAGS += -mhard-float -march=4kc
    8383endif
    84 ifeq ($(MACHINE),simics)
     84ifeq ($(MIPS_MACHINE),simics)
    8585        # SIMICS 4kc emulation is broken, although for instructions
    8686        # that do not bother us
     
    9090        CFLAGS += -mhard-float -mips3
    9191endif
    92 ifeq ($(MACHINE),msim)
     92ifeq ($(MIPS_MACHINE),msim)
    9393        BFD_NAME = elf32-tradlittlemips
    9494        BFD = binary
    9595        CFLAGS += -mhard-float -mips3
    9696endif
    97 
    98 ## Own configuration directives
    99 #
    100 
    101 CONFIG_OFW = y
    10297
    10398## Accepted configuration directives
Note: See TracChangeset for help on using the changeset viewer.