Changeset 7004747 in mainline


Ignore:
Timestamp:
2009-02-12T20:07:49Z (15 years ago)
Author:
Martin Decky <martin@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
6da1013f
Parents:
912ee7c
Message:

simplify configuration in Makefiles

Location:
kernel/arch
Files:
7 edited

Legend:

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

    r912ee7c r7004747  
    3030#
    3131
    32 ifndef CROSS_PREFIX
    33         CROSS_PREFIX = /usr/local
    34 endif
    35 
    3632BFD_NAME = elf64-x86-64
    3733BFD_ARCH = i386:x86-64
     
    4642SUNCC_CFLAGS += -m64 -xmodel=kernel
    4743
    48 DEFS += -DMACHINE=$(MACHINE) -D__64_BITS__
     44DEFS += -D__64_BITS__
    4945
    5046## Accepted CPUs
     
    5652        ICC_CFLAGS += $(CMN2)
    5753        SUNCC_CFLAGS += -xtarget=opteron
    58         DEFS += -DFENCES=p4
    59 endif
    60 
    61 ## Own configuration directives
    62 #
    63 
    64 CONFIG_ACPI = y
    65 
    66 ## Compile with hierarchical page tables support.
    67 #
    68 
    69 CONFIG_PAGE_PT = y
    70 DEFS += -DCONFIG_PAGE_PT
    71 
    72 ## Compile with i8042 support.
    73 #
    74 
    75 CONFIG_I8042 = y
    76 DEFS += -DCONFIG_I8042
    77 
    78 ## Compile with EGA support
    79 #
    80 
    81 CONFIG_EGA = y
    82 DEFS += -DCONFIG_EGA
    83 
    84 ## Accepted configuration directives
    85 #
    86 
    87 ifeq ($(CONFIG_SMP),y)
    88         DEFS += -DCONFIG_SMP
    89 endif
    90 ifeq ($(CONFIG_HT),y)
    91         DEFS += -DCONFIG_HT
    92 endif
    93 
    94 ifeq ($(CONFIG_SIMICS_FIX),y)
    95         DEFS += -DCONFIG_SIMICS_FIX
    9654endif
    9755
    9856ARCH_SOURCES = \
    99         arch/$(ARCH)/src/fpu_context.c \
    100         arch/$(ARCH)/src/boot/boot.S \
    101         arch/$(ARCH)/src/boot/memmap.c \
    102         arch/$(ARCH)/src/pm.c \
    103         arch/$(ARCH)/src/context.S \
    104         arch/$(ARCH)/src/ddi/ddi.c \
    105         arch/$(ARCH)/src/drivers/vesa.c \
    106         arch/$(ARCH)/src/drivers/i8254.c \
    107         arch/$(ARCH)/src/drivers/i8259.c \
    108         arch/$(ARCH)/src/delay.S \
    109         arch/$(ARCH)/src/amd64.c \
    110         arch/$(ARCH)/src/bios/bios.c \
    111         arch/$(ARCH)/src/interrupt.c \
    112         arch/$(ARCH)/src/mm/as.c \
    113         arch/$(ARCH)/src/mm/frame.c \
    114         arch/$(ARCH)/src/mm/page.c \
    115         arch/$(ARCH)/src/mm/tlb.c \
    116         arch/$(ARCH)/src/asm_utils.S \
    117         arch/$(ARCH)/src/cpu/cpu.c \
    118         arch/$(ARCH)/src/proc/scheduler.c \
    119         arch/$(ARCH)/src/proc/task.c \
    120         arch/$(ARCH)/src/proc/thread.c \
    121         arch/$(ARCH)/src/userspace.c \
    122         arch/$(ARCH)/src/syscall.c \
    123         arch/$(ARCH)/src/debugger.c
     57        arch/$(KARCH)/src/fpu_context.c \
     58        arch/$(KARCH)/src/boot/boot.S \
     59        arch/$(KARCH)/src/boot/memmap.c \
     60        arch/$(KARCH)/src/pm.c \
     61        arch/$(KARCH)/src/context.S \
     62        arch/$(KARCH)/src/ddi/ddi.c \
     63        arch/$(KARCH)/src/drivers/vesa.c \
     64        arch/$(KARCH)/src/drivers/i8254.c \
     65        arch/$(KARCH)/src/drivers/i8259.c \
     66        arch/$(KARCH)/src/delay.S \
     67        arch/$(KARCH)/src/amd64.c \
     68        arch/$(KARCH)/src/bios/bios.c \
     69        arch/$(KARCH)/src/interrupt.c \
     70        arch/$(KARCH)/src/mm/as.c \
     71        arch/$(KARCH)/src/mm/frame.c \
     72        arch/$(KARCH)/src/mm/page.c \
     73        arch/$(KARCH)/src/mm/tlb.c \
     74        arch/$(KARCH)/src/asm_utils.S \
     75        arch/$(KARCH)/src/cpu/cpu.c \
     76        arch/$(KARCH)/src/proc/scheduler.c \
     77        arch/$(KARCH)/src/proc/task.c \
     78        arch/$(KARCH)/src/proc/thread.c \
     79        arch/$(KARCH)/src/userspace.c \
     80        arch/$(KARCH)/src/syscall.c \
     81        arch/$(KARCH)/src/debugger.c
    12482
    12583ifeq ($(CONFIG_SMP),y)
    12684        ARCH_SOURCES += \
    127                 arch/$(ARCH)/src/smp/ap.S \
    128                 arch/$(ARCH)/src/smp/apic.c \
    129                 arch/$(ARCH)/src/smp/ipi.c \
    130                 arch/$(ARCH)/src/smp/mps.c \
    131                 arch/$(ARCH)/src/smp/smp.c
     85                arch/$(KARCH)/src/smp/ap.S \
     86                arch/$(KARCH)/src/smp/apic.c \
     87                arch/$(KARCH)/src/smp/ipi.c \
     88                arch/$(KARCH)/src/smp/mps.c \
     89                arch/$(KARCH)/src/smp/smp.c
    13290endif
  • kernel/arch/arm32/Makefile.inc

    r912ee7c r7004747  
    3030#
    3131
    32 ifndef CROSS_PREFIX
    33         CROSS_PREFIX = /usr/local
    34 endif
    35 
    3632BFD_NAME = elf32-littlearm
    3733BFD_ARCH = arm
     
    4137
    4238KERNEL_LOAD_ADDRESS = 0x80200000
    43 
    44 # ifeq ($(MACHINE), gxemul_testarm)
    45         DMACHINE = MACHINE_GXEMUL_TESTARM
    46 # endif
     39DMACHINE = MACHINE_GXEMUL_TESTARM
    4740
    4841ATSIGN = %
     
    5245DEFS += -D__32_BITS__ -DKERNEL_LOAD_ADDRESS=$(KERNEL_LOAD_ADDRESS) -D$(DMACHINE)
    5346
    54 # Compile with framebuffer support
    55 
    56 ifeq ($(CONFIG_FB), y)
    57         DEFS += -DCONFIG_FB -DFB_INVERT_ENDIAN
    58 endif
    59 
    60 ## Compile with hierarchical page tables support.
    61 #
    62 
    63 CONFIG_PAGE_PT = y
    64 DEFS += -DCONFIG_PAGE_PT
    65 
    66 ## Compile with support for address space identifiers.
    67 #
    68 # no HW support for ASIDs
    69 #CONFIG_ASID = y
    70 #CONFIG_ASID_FIFO = y
    71 
    72 ## Compile with support with software division and multiplication.
    73 #
    74 
    75 CONFIG_SOFTINT = y
    76 
    7747ARCH_SOURCES = \
    78         arch/$(ARCH)/src/start.S \
    79         arch/$(ARCH)/src/asm.S \
    80         arch/$(ARCH)/src/arm32.c \
    81         arch/$(ARCH)/src/context.S \
    82         arch/$(ARCH)/src/dummy.S \
    83         arch/$(ARCH)/src/panic.S \
    84         arch/$(ARCH)/src/cpu/cpu.c \
    85         arch/$(ARCH)/src/ddi/ddi.c \
    86         arch/$(ARCH)/src/interrupt.c \
    87         arch/$(ARCH)/src/debug/print.c \
    88         arch/$(ARCH)/src/console.c \
    89         arch/$(ARCH)/src/exception.c \
    90         arch/$(ARCH)/src/userspace.c \
    91         arch/$(ARCH)/src/mm/as.c \
    92         arch/$(ARCH)/src/mm/frame.c \
    93         arch/$(ARCH)/src/mm/page.c \
    94         arch/$(ARCH)/src/mm/tlb.c \
    95         arch/$(ARCH)/src/mm/page_fault.c
    96 
    97 # ifeq ($(MACHINE), gxemul_testarm)
    98         ARCH_SOURCES += arch/$(ARCH)/src/drivers/gxemul.c
    99 # endif
    100 
     48        arch/$(KARCH)/src/start.S \
     49        arch/$(KARCH)/src/asm.S \
     50        arch/$(KARCH)/src/arm32.c \
     51        arch/$(KARCH)/src/context.S \
     52        arch/$(KARCH)/src/dummy.S \
     53        arch/$(KARCH)/src/panic.S \
     54        arch/$(KARCH)/src/cpu/cpu.c \
     55        arch/$(KARCH)/src/ddi/ddi.c \
     56        arch/$(KARCH)/src/interrupt.c \
     57        arch/$(KARCH)/src/debug/print.c \
     58        arch/$(KARCH)/src/console.c \
     59        arch/$(KARCH)/src/exception.c \
     60        arch/$(KARCH)/src/userspace.c \
     61        arch/$(KARCH)/src/mm/as.c \
     62        arch/$(KARCH)/src/mm/frame.c \
     63        arch/$(KARCH)/src/mm/page.c \
     64        arch/$(KARCH)/src/mm/tlb.c \
     65        arch/$(KARCH)/src/mm/page_fault.c \
     66        arch/$(KARCH)/src/drivers/gxemul.c
  • kernel/arch/ia32/Makefile.inc

    r912ee7c r7004747  
    3030#
    3131
    32 ifndef CROSS_PREFIX
    33         CROSS_PREFIX = /usr/local
    34 endif
    35 
    3632BFD_NAME = elf32-i386
    3733BFD_ARCH = i386
     
    4036TOOLCHAIN_DIR = $(CROSS_PREFIX)/i686
    4137
    42 DEFS += -DMACHINE=$(MACHINE) -D__32_BITS__
     38DEFS += -D__32_BITS__
    4339
    4440CMN1 = -m32
     
    5349        CMN2 = -march=athlon-xp
    5450        SUNCC_CFLAGS += -xarch=ssea
    55         DEFS += -DCONFIG_FENCES_P3
    56         CONFIG_SMP = n
    57         CONFIG_HT = n
    5851endif
    5952ifeq ($(MACHINE),athlon-mp)
    6053        CMN2 = -march=athlon-mp
    6154        SUNCC_CFLAGS += xarch=ssea
    62         DEFS += -DCONFIG_FENCES_P3
    63         CONFIG_HT = n
    6455endif
    6556ifeq ($(MACHINE),pentium3)
    6657        CMN2 = -march=pentium3
    6758        SUNCC_CFLAGS += -xarch=sse
    68         DEFS += -DCONFIG_FENCES_P3
    69         CONFIG_HT = n
    7059endif
    7160ifeq ($(MACHINE),pentium4)
    7261        CMN2 = -march=pentium4
    7362        SUNCC_CFLAGS += -xarch=sse2
    74         DEFS += -DCONFIG_FENCES_P4
    7563endif
    7664ifeq ($(MACHINE),core)
    7765        CMN2 = -march=prescott
    7866        SUNCC_CFLAGS += -xarch=sse3
    79         DEFS += -DCONFIG_FENCES_P4
    8067endif
    8168
     
    8471ICC_CFLAGS += $(CMN2)
    8572
    86 ## Own configuration directives
    87 #
    88 
    89 CONFIG_ACPI = y
    90 
    91 ## Compile with hierarchical page tables support.
    92 #
    93 
    94 CONFIG_PAGE_PT = y
    95 DEFS += -DCONFIG_PAGE_PT
    96 
    97 ## Compile with i8042 controller support
    98 #
    99 
    100 CONFIG_I8042 = y
    101 DEFS += -DCONFIG_I8042
    102 
    103 ## Compile with EGA support
    104 #
    105 
    106 CONFIG_EGA = y
    107 DEFS += -DCONFIG_EGA
    108 
    109 ## Accepted configuration directives
    110 #
    111 
    112 ifeq ($(CONFIG_SMP),y)
    113         DEFS += -DCONFIG_SMP
    114 endif
    115 ifeq ($(CONFIG_HT),y)
    116         DEFS += -DCONFIG_HT
    117 endif
    118 ifeq ($(CONFIG_SIMICS_FIX),y)
    119         DEFS += -DCONFIG_SIMICS_FIX
    120 endif
    121 
    122 ## Compile with support for software integer division.
    123 #
    124 
    125 CONFIG_SOFTINT = y
    126 
    12773ARCH_SOURCES = \
    128         arch/$(ARCH)/src/context.S \
    129         arch/$(ARCH)/src/debug/panic.s \
    130         arch/$(ARCH)/src/delay.s \
    131         arch/$(ARCH)/src/asm.S \
    132         arch/$(ARCH)/src/proc/scheduler.c \
    133         arch/$(ARCH)/src/proc/task.c \
    134         arch/$(ARCH)/src/proc/thread.c \
    135         arch/$(ARCH)/src/bios/bios.c \
    136         arch/$(ARCH)/src/smp/ap.S \
    137         arch/$(ARCH)/src/smp/apic.c \
    138         arch/$(ARCH)/src/smp/mps.c \
    139         arch/$(ARCH)/src/smp/smp.c \
    140         arch/$(ARCH)/src/atomic.S \
    141         arch/$(ARCH)/src/smp/ipi.c \
    142         arch/$(ARCH)/src/ia32.c \
    143         arch/$(ARCH)/src/interrupt.c \
    144         arch/$(ARCH)/src/pm.c \
    145         arch/$(ARCH)/src/userspace.c \
    146         arch/$(ARCH)/src/cpu/cpu.c \
    147         arch/$(ARCH)/src/mm/as.c \
    148         arch/$(ARCH)/src/mm/frame.c \
    149         arch/$(ARCH)/src/mm/page.c \
    150         arch/$(ARCH)/src/mm/tlb.c \
    151         arch/$(ARCH)/src/ddi/ddi.c \
    152         arch/$(ARCH)/src/drivers/i8254.c \
    153         arch/$(ARCH)/src/drivers/i8259.c \
    154         arch/$(ARCH)/src/drivers/vesa.c \
    155         arch/$(ARCH)/src/boot/boot.S \
    156         arch/$(ARCH)/src/boot/memmap.c \
    157         arch/$(ARCH)/src/fpu_context.c \
    158         arch/$(ARCH)/src/debugger.c \
    159         arch/$(ARCH)/src/syscall.c
     74        arch/$(KARCH)/src/context.S \
     75        arch/$(KARCH)/src/debug/panic.s \
     76        arch/$(KARCH)/src/delay.s \
     77        arch/$(KARCH)/src/asm.S \
     78        arch/$(KARCH)/src/proc/scheduler.c \
     79        arch/$(KARCH)/src/proc/task.c \
     80        arch/$(KARCH)/src/proc/thread.c \
     81        arch/$(KARCH)/src/bios/bios.c \
     82        arch/$(KARCH)/src/smp/ap.S \
     83        arch/$(KARCH)/src/smp/apic.c \
     84        arch/$(KARCH)/src/smp/mps.c \
     85        arch/$(KARCH)/src/smp/smp.c \
     86        arch/$(KARCH)/src/atomic.S \
     87        arch/$(KARCH)/src/smp/ipi.c \
     88        arch/$(KARCH)/src/ia32.c \
     89        arch/$(KARCH)/src/interrupt.c \
     90        arch/$(KARCH)/src/pm.c \
     91        arch/$(KARCH)/src/userspace.c \
     92        arch/$(KARCH)/src/cpu/cpu.c \
     93        arch/$(KARCH)/src/mm/as.c \
     94        arch/$(KARCH)/src/mm/frame.c \
     95        arch/$(KARCH)/src/mm/page.c \
     96        arch/$(KARCH)/src/mm/tlb.c \
     97        arch/$(KARCH)/src/ddi/ddi.c \
     98        arch/$(KARCH)/src/drivers/i8254.c \
     99        arch/$(KARCH)/src/drivers/i8259.c \
     100        arch/$(KARCH)/src/drivers/vesa.c \
     101        arch/$(KARCH)/src/boot/boot.S \
     102        arch/$(KARCH)/src/boot/memmap.c \
     103        arch/$(KARCH)/src/fpu_context.c \
     104        arch/$(KARCH)/src/debugger.c \
     105        arch/$(KARCH)/src/syscall.c
  • kernel/arch/ia64/Makefile.inc

    r912ee7c r7004747  
    3030#
    3131
    32 ifndef CROSS_PREFIX
    33         CROSS_PREFIX = /usr/local
    34 endif
    35 
    3632BFD_NAME = elf64-little
    3733BFD_ARCH = ia64-elf64
     
    4642AFLAGS += -mconstant-gp
    4743
    48 DEFS += -D__64_BITS__ -D$(MACHINE)
    49 
    50 ## Compile with page hash table support.
    51 #
    52 
    53 CONFIG_PAGE_HT = y
    54 DEFS += -DCONFIG_PAGE_HT
    55 
    56 ## Compile with support for address space identifiers.
    57 #
    58 
    59 CONFIG_ASID = y
    60 CONFIG_ASID_FIFO = y
    61 
    62 ## Compile with support for software integer division.
    63 #
    64 
    65 CONFIG_SOFTINT = y
     44DEFS += -D__64_BITS__
    6645
    6746ARCH_SOURCES = \
    68         arch/$(ARCH)/src/start.S \
    69         arch/$(ARCH)/src/asm.S \
    70         arch/$(ARCH)/src/dummy.s \
    71         arch/$(ARCH)/src/ia64.c \
    72         arch/$(ARCH)/src/fpu_context.c \
    73         arch/$(ARCH)/src/context.S \
    74         arch/$(ARCH)/src/cpu/cpu.c \
    75         arch/$(ARCH)/src/ivt.S \
    76         arch/$(ARCH)/src/interrupt.c \
    77         arch/$(ARCH)/src/mm/as.c \
    78         arch/$(ARCH)/src/mm/frame.c \
    79         arch/$(ARCH)/src/mm/page.c \
    80         arch/$(ARCH)/src/mm/tlb.c \
    81         arch/$(ARCH)/src/mm/vhpt.c \
    82         arch/$(ARCH)/src/proc/scheduler.c \
    83         arch/$(ARCH)/src/ddi/ddi.c \
    84         arch/$(ARCH)/src/smp/smp.c \
    85         arch/$(ARCH)/src/drivers/it.c
     47        arch/$(KARCH)/src/start.S \
     48        arch/$(KARCH)/src/asm.S \
     49        arch/$(KARCH)/src/dummy.s \
     50        arch/$(KARCH)/src/ia64.c \
     51        arch/$(KARCH)/src/fpu_context.c \
     52        arch/$(KARCH)/src/context.S \
     53        arch/$(KARCH)/src/cpu/cpu.c \
     54        arch/$(KARCH)/src/ivt.S \
     55        arch/$(KARCH)/src/interrupt.c \
     56        arch/$(KARCH)/src/mm/as.c \
     57        arch/$(KARCH)/src/mm/frame.c \
     58        arch/$(KARCH)/src/mm/page.c \
     59        arch/$(KARCH)/src/mm/tlb.c \
     60        arch/$(KARCH)/src/mm/vhpt.c \
     61        arch/$(KARCH)/src/proc/scheduler.c \
     62        arch/$(KARCH)/src/ddi/ddi.c \
     63        arch/$(KARCH)/src/smp/smp.c \
     64        arch/$(KARCH)/src/drivers/it.c
    8665
    8766ifeq ($(MACHINE),ski)
    88         ARCH_SOURCES += arch/$(ARCH)/src/ski/ski.c
     67        ARCH_SOURCES += arch/$(KARCH)/src/ski/ski.c
    8968        DEFS += -DSKI
    9069        BFD = binary
     
    9271
    9372ifeq ($(MACHINE),i460GX)
    94         CONFIG_I8042 = y
    95         CONFIG_EGA = y
    96         DEFS += -DI460GX -DCONFIG_I8042 -DCONFIG_EGA
     73        DEFS += -DI460GX
    9774        BFD = binary
    9875endif
    99 
    100 ifeq ($(CONFIG_SMP),y)
    101         DEFS += -DCONFIG_SMP
    102 endif
    103 
  • kernel/arch/mips32/Makefile.inc

    r912ee7c r7004747  
    3030#
    3131
    32 ifndef CROSS_PREFIX
    33         CROSS_PREFIX = /usr/local
    34 endif
    35 
    3632BFD_ARCH = mips
    3733TARGET = mipsel-linux-gnu
     
    4238GCC_CFLAGS += -mno-abicalls -G 0 -fno-zero-initialized-in-bss
    4339
    44 DEFS += -D__32_BITS__ -DMACHINE=$(MACHINE) -DKERNEL_LOAD_ADDRESS=${KERNEL_LOAD_ADDRESS}
    45 
    46 ## Compile with hierarchical page tables support.
    47 #
    48 
    49 CONFIG_PAGE_PT = y
    50 DEFS += -DCONFIG_PAGE_PT
    51 
    52 ## Compile with support for address space identifiers.
    53 #
    54 
    55 CONFIG_ASID = y
    56 CONFIG_ASID_FIFO = y
     40DEFS += -D__32_BITS__ -D$(MACHINE) -DKERNEL_LOAD_ADDRESS=$(KERNEL_LOAD_ADDRESS)
    5741
    5842## Accepted MACHINEs
     
    6246        BFD_NAME = elf32-tradlittlemips
    6347        BFD = binary
    64         GCC_CFLAGS += -DFB_INVERT_ENDIAN -DARCH_HAS_FPU -mips3
     48        GCC_CFLAGS += -mips3
    6549endif
    6650ifeq ($(MACHINE),bgxemul)
     
    6953        TOOLCHAIN_DIR = $(CROSS_PREFIX)/mips
    7054        TARGET = mips-sgi-irix5
    71         GCC_CFLAGS += -EB -DBIG_ENDIAN -DARCH_HAS_FPU -mips3
     55        GCC_CFLAGS += -EB -DBIG_ENDIAN -mips3
    7256endif
    7357ifeq ($(MACHINE),simics)
     
    8670endif
    8771
    88 ## Compile with support for software integer division.
    89 #
    90 
    91 CONFIG_SOFTINT = y
    92 
    93 
    9472ARCH_SOURCES = \
    95         arch/$(ARCH)/src/start.S \
    96         arch/$(ARCH)/src/context.S \
    97         arch/$(ARCH)/src/panic.S \
    98         arch/$(ARCH)/src/mips32.c \
    99         arch/$(ARCH)/src/dummy.S \
    100         arch/$(ARCH)/src/console.c \
    101         arch/$(ARCH)/src/asm.S \
    102         arch/$(ARCH)/src/exception.c \
    103         arch/$(ARCH)/src/interrupt.c \
    104         arch/$(ARCH)/src/cache.c \
    105         arch/$(ARCH)/src/debugger.c \
    106         arch/$(ARCH)/src/cpu/cpu.c \
    107         arch/$(ARCH)/src/mm/frame.c \
    108         arch/$(ARCH)/src/mm/page.c \
    109         arch/$(ARCH)/src/mm/tlb.c \
    110         arch/$(ARCH)/src/mm/as.c \
    111         arch/$(ARCH)/src/fpu_context.c \
    112         arch/$(ARCH)/src/ddi/ddi.c \
    113         arch/$(ARCH)/src/drivers/msim.c \
    114         arch/$(ARCH)/src/drivers/serial.c \
    115         arch/$(ARCH)/src/smp/order.c
     73        arch/$(KARCH)/src/start.S \
     74        arch/$(KARCH)/src/context.S \
     75        arch/$(KARCH)/src/panic.S \
     76        arch/$(KARCH)/src/mips32.c \
     77        arch/$(KARCH)/src/dummy.S \
     78        arch/$(KARCH)/src/console.c \
     79        arch/$(KARCH)/src/asm.S \
     80        arch/$(KARCH)/src/exception.c \
     81        arch/$(KARCH)/src/interrupt.c \
     82        arch/$(KARCH)/src/cache.c \
     83        arch/$(KARCH)/src/debugger.c \
     84        arch/$(KARCH)/src/cpu/cpu.c \
     85        arch/$(KARCH)/src/mm/frame.c \
     86        arch/$(KARCH)/src/mm/page.c \
     87        arch/$(KARCH)/src/mm/tlb.c \
     88        arch/$(KARCH)/src/mm/as.c \
     89        arch/$(KARCH)/src/fpu_context.c \
     90        arch/$(KARCH)/src/ddi/ddi.c \
     91        arch/$(KARCH)/src/drivers/msim.c \
     92        arch/$(KARCH)/src/drivers/serial.c \
     93        arch/$(KARCH)/src/smp/order.c
  • kernel/arch/ppc32/Makefile.inc

    r912ee7c r7004747  
    3030#
    3131
    32 ifndef CROSS_PREFIX
    33         CROSS_PREFIX = /usr/local
    34 endif
    35 
    3632BFD_NAME = elf32-powerpc
    3733BFD_ARCH = powerpc:common
     
    4642DEFS += -D__32_BITS__
    4743
    48 ## Own configuration directives
    49 #
    50 
    51 CONFIG_FB = y
    52 
    53 ## Compile with hierarchical page tables support.
    54 #
    55 
    56 CONFIG_PAGE_PT = y
    57 DEFS += -DCONFIG_PAGE_PT
    58 
    59 ## Compile with support for address space identifiers.
    60 #
    61 
    62 CONFIG_ASID = y
    63 CONFIG_ASID_FIFO = y
    64 
    65 ## Compile with support for software integer division.
    66 #
    67 
    68 CONFIG_SOFTINT = y
    69 
    7044ARCH_SOURCES = \
    71         arch/$(ARCH)/src/context.S \
    72         arch/$(ARCH)/src/debug/panic.s \
    73         arch/$(ARCH)/src/fpu_context.S \
    74         arch/$(ARCH)/src/boot/boot.S \
    75         arch/$(ARCH)/src/ppc32.c \
    76         arch/$(ARCH)/src/dummy.s \
    77         arch/$(ARCH)/src/exception.S \
    78         arch/$(ARCH)/src/interrupt.c \
    79         arch/$(ARCH)/src/asm.S \
    80         arch/$(ARCH)/src/cpu/cpu.c \
    81         arch/$(ARCH)/src/proc/scheduler.c \
    82         arch/$(ARCH)/src/ddi/ddi.c \
    83         arch/$(ARCH)/src/drivers/cuda.c \
    84         arch/$(ARCH)/src/mm/as.c \
    85         arch/$(ARCH)/src/mm/frame.c \
    86         arch/$(ARCH)/src/mm/page.c \
    87         arch/$(ARCH)/src/mm/tlb.c \
    88         arch/$(ARCH)/src/drivers/pic.c
     45        arch/$(KARCH)/src/context.S \
     46        arch/$(KARCH)/src/debug/panic.s \
     47        arch/$(KARCH)/src/fpu_context.S \
     48        arch/$(KARCH)/src/boot/boot.S \
     49        arch/$(KARCH)/src/ppc32.c \
     50        arch/$(KARCH)/src/dummy.s \
     51        arch/$(KARCH)/src/exception.S \
     52        arch/$(KARCH)/src/interrupt.c \
     53        arch/$(KARCH)/src/asm.S \
     54        arch/$(KARCH)/src/cpu/cpu.c \
     55        arch/$(KARCH)/src/proc/scheduler.c \
     56        arch/$(KARCH)/src/ddi/ddi.c \
     57        arch/$(KARCH)/src/drivers/cuda.c \
     58        arch/$(KARCH)/src/mm/as.c \
     59        arch/$(KARCH)/src/mm/frame.c \
     60        arch/$(KARCH)/src/mm/page.c \
     61        arch/$(KARCH)/src/mm/tlb.c \
     62        arch/$(KARCH)/src/drivers/pic.c
  • kernel/arch/sparc64/Makefile.inc

    r912ee7c r7004747  
    3030#
    3131
    32 ifndef CROSS_PREFIX
    33         CROSS_PREFIX = /usr/local
    34 endif
    35 
    3632BFD_NAME = elf64-sparc
    3733BFD_ARCH = sparc
     
    4743DEFS += -D__64_BITS__
    4844
    49 ## Own configuration directives
    50 #
    51 
    52 ## Compile with page hash table support.
    53 #
    54 
    55 CONFIG_PAGE_HT = y
    56 DEFS += -DCONFIG_PAGE_HT
    57 
    58 ## Compile with support for address space identifiers.
    59 #
    60 
    61 CONFIG_ASID = y
    62 CONFIG_ASID_FIFO = y
    63 
    64 ## Compile with support for framebuffer.
    65 #
    66 
    6745ifeq ($(MACHINE),us)
    68         CONFIG_FB = y
    69 endif
    70 
    71 ## Compile with support for Sun keyboard.
    72 #
    73 
    74 CONFIG_SUN_KBD = y
    75 
    76 ## Compile with support for OpenFirmware device tree.
    77 #
    78 
    79 CONFIG_OFW_TREE = y
    80 
    81 ifeq ($(CONFIG_SMP),y)
    82         DEFS += -DCONFIG_SMP
    83 endif
    84 
    85 ifeq ($(CONFIG_SGCN),y)
    86         DEFS += -DCONFIG_SGCN
    87 endif
    88 
    89 ifeq ($(MACHINE),us)
    90     DEFS += -DUS
     46        DEFS += -DUS
    9147endif
    9248
     
    9652
    9753ARCH_SOURCES = \
    98         arch/$(ARCH)/src/cpu/cpu.c \
    99         arch/$(ARCH)/src/asm.S \
    100         arch/$(ARCH)/src/panic.S \
    101         arch/$(ARCH)/src/console.c \
    102         arch/$(ARCH)/src/context.S \
    103         arch/$(ARCH)/src/fpu_context.c \
    104         arch/$(ARCH)/src/dummy.s \
    105         arch/$(ARCH)/src/mm/as.c \
    106         arch/$(ARCH)/src/mm/cache.S \
    107         arch/$(ARCH)/src/mm/frame.c \
    108         arch/$(ARCH)/src/mm/page.c \
    109         arch/$(ARCH)/src/mm/tlb.c \
    110         arch/$(ARCH)/src/sparc64.c \
    111         arch/$(ARCH)/src/start.S \
    112         arch/$(ARCH)/src/proc/scheduler.c \
    113         arch/$(ARCH)/src/proc/thread.c \
    114         arch/$(ARCH)/src/trap/mmu.S \
    115         arch/$(ARCH)/src/trap/trap_table.S \
    116         arch/$(ARCH)/src/trap/trap.c \
    117         arch/$(ARCH)/src/trap/exception.c \
    118         arch/$(ARCH)/src/trap/interrupt.c \
    119         arch/$(ARCH)/src/ddi/ddi.c \
    120         arch/$(ARCH)/src/drivers/tick.c \
    121         arch/$(ARCH)/src/drivers/kbd.c \
    122         arch/$(ARCH)/src/drivers/sgcn.c \
    123         arch/$(ARCH)/src/drivers/pci.c
     54        arch/$(KARCH)/src/cpu/cpu.c \
     55        arch/$(KARCH)/src/asm.S \
     56        arch/$(KARCH)/src/panic.S \
     57        arch/$(KARCH)/src/console.c \
     58        arch/$(KARCH)/src/context.S \
     59        arch/$(KARCH)/src/fpu_context.c \
     60        arch/$(KARCH)/src/dummy.s \
     61        arch/$(KARCH)/src/mm/as.c \
     62        arch/$(KARCH)/src/mm/cache.S \
     63        arch/$(KARCH)/src/mm/frame.c \
     64        arch/$(KARCH)/src/mm/page.c \
     65        arch/$(KARCH)/src/mm/tlb.c \
     66        arch/$(KARCH)/src/sparc64.c \
     67        arch/$(KARCH)/src/start.S \
     68        arch/$(KARCH)/src/proc/scheduler.c \
     69        arch/$(KARCH)/src/proc/thread.c \
     70        arch/$(KARCH)/src/trap/mmu.S \
     71        arch/$(KARCH)/src/trap/trap_table.S \
     72        arch/$(KARCH)/src/trap/trap.c \
     73        arch/$(KARCH)/src/trap/exception.c \
     74        arch/$(KARCH)/src/trap/interrupt.c \
     75        arch/$(KARCH)/src/ddi/ddi.c \
     76        arch/$(KARCH)/src/drivers/tick.c \
     77        arch/$(KARCH)/src/drivers/kbd.c \
     78        arch/$(KARCH)/src/drivers/sgcn.c \
     79        arch/$(KARCH)/src/drivers/pci.c
    12480
    12581ifeq ($(CONFIG_FB),y)
    12682        ARCH_SOURCES += \
    127                 arch/$(ARCH)/src/drivers/scr.c
     83                arch/$(KARCH)/src/drivers/scr.c
    12884endif
    12985
    13086ifeq ($(CONFIG_SMP),y)
    131 ARCH_SOURCES += \
    132         arch/$(ARCH)/src/smp/ipi.c \
    133         arch/$(ARCH)/src/smp/smp.c
     87        ARCH_SOURCES += \
     88                arch/$(KARCH)/src/smp/ipi.c \
     89                arch/$(KARCH)/src/smp/smp.c
    13490endif
    13591
    13692ifeq ($(CONFIG_TSB),y)
    137 ARCH_SOURCES += \
    138         arch/$(ARCH)/src/mm/tsb.c
     93        ARCH_SOURCES += \
     94                arch/$(KARCH)/src/mm/tsb.c
    13995endif
    14096
    14197ifdef CONFIG_Z8530
    142 ARCH_SOURCES += \
    143         arch/$(ARCH)/src/drivers/fhc.c
     98        ARCH_SOURCES += \
     99                arch/$(KARCH)/src/drivers/fhc.c
    144100endif
Note: See TracChangeset for help on using the changeset viewer.