- Timestamp:
- 2006-07-17T00:53:53Z (19 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 231fcb2
- Parents:
- 41c4444
- Location:
- kernel
- Files:
-
- 1 deleted
- 9 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/Makefile
r41c4444 r41f7564 27 27 # 28 28 29 ## Kernel release30 #31 32 VERSION = 033 PATCHLEVEL = 234 SUBLEVEL = 035 EXTRAVERSION = 236 NAME = Daylight37 ifdef EXTRAVERSION38 RELEASE = $(VERSION).$(PATCHLEVEL).$(SUBLEVEL).$(EXTRAVERSION)39 else40 RELEASE = $(VERSION).$(PATCHLEVEL).$(SUBLEVEL)41 endif42 29 43 30 ## Include configuration 44 31 # 45 32 33 -include ../version 46 34 -include Makefile.config 47 35 … … 50 38 51 39 DEFS = -D$(ARCH) -DARCH=\"$(ARCH)\" -DRELEASE=\"$(RELEASE)\" "-DNAME=\"$(NAME)\"" -DKERNEL 52 CFLAGS = -fno-builtin -fomit-frame-pointer -Wall -Werror-implicit-function-declaration -Wmissing-prototypes -Werror -O3 -nostdlib -nostdinc -Igeneric/include/ 40 CFLAGS = -fno-builtin -fomit-frame-pointer -Wall -Werror-implicit-function-declaration -Wmissing-prototypes -Werror -O3 -nostdlib -nostdinc -Igeneric/include/ 53 41 LFLAGS = -M 54 42 AFLAGS = … … 71 59 DEFS += -DCONFIG_DEBUG 72 60 endif 61 73 62 ifeq ($(CONFIG_DEBUG_SPINLOCK),y) 74 63 DEFS += -DCONFIG_DEBUG_SPINLOCK 75 64 endif 65 76 66 ifeq ($(CONFIG_DEBUG_AS_WATCHPOINT),y) 77 67 DEFS += -DCONFIG_DEBUG_AS_WATCHPOINT 78 68 endif 69 79 70 ifeq ($(CONFIG_FPU_LAZY),y) 80 71 DEFS += -DCONFIG_FPU_LAZY 81 72 endif 73 82 74 ifeq ($(CONFIG_DEBUG_ALLREGS),y) 83 75 DEFS += -DCONFIG_DEBUG_ALLREGS 84 76 endif 77 85 78 ifeq ($(CONFIG_VHPT),y) 86 79 DEFS += -DCONFIG_VHPT 87 80 endif 81 88 82 ifeq ($(CONFIG_POWEROFF),y) 89 83 DEFS += -DCONFIG_POWEROFF 90 84 endif 85 91 86 ifeq ($(CONFIG_FB),y) 92 ifeq ($(ARCH),ia32) 93 DEFS += -DCONFIG_VESA_WIDTH=$(CONFIG_VESA_WIDTH) 94 DEFS += -DCONFIG_VESA_HEIGHT=$(CONFIG_VESA_HEIGHT) 95 DEFS += -DCONFIG_VESA_BPP=$(CONFIG_VESA_BPP) 96 endif 97 ifeq ($(ARCH),amd64) 98 DEFS += -DCONFIG_VESA_WIDTH=$(CONFIG_VESA_WIDTH) 99 DEFS += -DCONFIG_VESA_HEIGHT=$(CONFIG_VESA_HEIGHT) 100 DEFS += -DCONFIG_VESA_BPP=$(CONFIG_VESA_BPP) 101 endif 102 ifeq ($(ARCH),xen32) 103 DEFS += -DCONFIG_VESA_WIDTH=$(CONFIG_VESA_WIDTH) 104 DEFS += -DCONFIG_VESA_HEIGHT=$(CONFIG_VESA_HEIGHT) 105 DEFS += -DCONFIG_VESA_BPP=$(CONFIG_VESA_BPP) 106 endif 87 ifeq ($(ARCH),ia32) 88 DEFS += -DCONFIG_VESA_WIDTH=$(CONFIG_VESA_WIDTH) 89 DEFS += -DCONFIG_VESA_HEIGHT=$(CONFIG_VESA_HEIGHT) 90 DEFS += -DCONFIG_VESA_BPP=$(CONFIG_VESA_BPP) 91 endif 92 93 ifeq ($(ARCH),amd64) 94 DEFS += -DCONFIG_VESA_WIDTH=$(CONFIG_VESA_WIDTH) 95 DEFS += -DCONFIG_VESA_HEIGHT=$(CONFIG_VESA_HEIGHT) 96 DEFS += -DCONFIG_VESA_BPP=$(CONFIG_VESA_BPP) 97 endif 98 99 ifeq ($(ARCH),xen32) 100 DEFS += -DCONFIG_VESA_WIDTH=$(CONFIG_VESA_WIDTH) 101 DEFS += -DCONFIG_VESA_HEIGHT=$(CONFIG_VESA_HEIGHT) 102 DEFS += -DCONFIG_VESA_BPP=$(CONFIG_VESA_BPP) 103 endif 107 104 endif 108 105 … … 205 202 206 203 all: 207 tools/config.py default $(NARCH) 208 ifdef NARCH 209 ifneq ($(ARCH), $(NARCH)) 210 $(MAKE) -C . clean 211 endif 212 endif 204 ../tools/config.py kernel.config default $(ARCH) $(COMPILER) $(CONFIG_DEBUG) $(MACHINE) 213 205 $(MAKE) -C . build 214 206 … … 217 209 config: 218 210 -rm Makefile.depend 219 tools/config.py 211 tools/config.py kernel.config 220 212 221 213 -include Makefile.depend … … 227 219 -rm -f kernel.bin kernel.raw kernel.map kernel.map.pre kernel.objdump kernel.disasm generic/src/debug/real_map.bin Makefile.depend* generic/include/arch generic/include/genarch arch/$(ARCH)/_link.ld 228 220 find generic/src/ arch/*/src/ genarch/src/ test/ -name '*.o' -follow -exec rm \{\} \; 229 for arch in arch/* ; do \230 [ -e $$arch/_link.ld ] && rm $$arch/_link.ld 2>/dev/null ;\231 done ;exit 0221 for arch in arch/* ; do \ 222 [ -e $$arch/_link.ld ] && rm $$arch/_link.ld 2>/dev/null ; \ 223 done ; exit 0 232 224 233 225 archlinks: -
kernel/arch/amd64/Makefile.inc
r41c4444 r41f7564 36 36 TOOLCHAIN_DIR = /usr/local/amd64/bin 37 37 38 ## Make some default assumptions39 #40 41 ifndef CPU42 CPU = opteron43 endif44 45 38 CFLAGS += -fno-unwind-tables -m64 -mcmodel=kernel -mno-red-zone 46 DEFS += -D _CPU=${CPU}-D__64_BITS__39 DEFS += -DMACHINE=$(MACHINE) -D__64_BITS__ 47 40 48 41 ## Accepted CPUs 49 42 # 50 43 51 ifeq ($( CPU),opteron)44 ifeq ($(MACHINE),opteron) 52 45 CFLAGS += -march=opteron 53 46 DEFS += -DFENCES=p4 -
kernel/arch/ia32/Makefile.inc
r41c4444 r41f7564 36 36 TOOLCHAIN_DIR = /usr/local/i686/bin 37 37 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__ 38 DEFS += -DMACHINE=$(MACHINE) -D__32_BITS__ 46 39 47 40 ## Accepted CPUs 48 41 # 49 42 50 ifeq ($( IA32_CPU),athlon-xp)43 ifeq ($(MACHINE),athlon-xp) 51 44 CFLAGS += -march=athlon-xp -mmmx -msse -m3dnow 52 45 DEFS += -DCONFIG_FENCES_P3 … … 54 47 CONFIG_HT = n 55 48 endif 56 ifeq ($( IA32_CPU),athlon-mp)49 ifeq ($(MACHINE),athlon-mp) 57 50 CFLAGS += -march=athlon-mp -mmmx -msse -m3dnow 58 51 DEFS += -DCONFIG_FENCES_P3 59 52 CONFIG_HT = n 60 53 endif 61 ifeq ($( IA32_CPU),pentium3)54 ifeq ($(MACHINE),pentium3) 62 55 CFLAGS += -march=pentium3 -mmmx -msse 63 56 DEFS += -DCONFIG_FENCES_P3 64 57 CONFIG_HT = n 65 58 endif 66 ifeq ($( IA32_CPU),prescott)59 ifeq ($(MACHINE),prescott) 67 60 CFLAGS += -march=pentium4 -mfpmath=sse -mmmx -msse -msse2 -msse3 68 61 DEFS += -DCONFIG_FENCES_P4 69 62 endif 70 ifeq ($( IA32_CPU),pentium4)63 ifeq ($(MACHINE),pentium4) 71 64 CFLAGS += -march=pentium4 -mfpmath=sse -mmmx -msse -msse2 72 65 DEFS += -DCONFIG_FENCES_P4 -
kernel/arch/ia64/Makefile.inc
r41c4444 r41f7564 35 35 TARGET = ia64-pc-linux-gnu 36 36 TOOLCHAIN_DIR = /usr/local/ia64/bin 37 38 ## Make some default assumptions39 #40 37 41 38 INIT0_ADDRESS = 0xe000000000400000 -
kernel/arch/mips32/Makefile.inc
r41c4444 r41f7564 34 34 TOOLCHAIN_DIR = /usr/local/mipsel/bin 35 35 36 ## Make some default assumptions37 #38 39 ifndef MIPS_MACHINE40 MIPS_MACHINE = msim41 endif42 43 36 KERNEL_LOAD_ADDRESS = 0x80100000 44 37 INIT_ADDRESS = 0x81000000 … … 47 40 CFLAGS += -mno-abicalls -G 0 -fno-zero-initialized-in-bss 48 41 49 DEFS += -D__32_BITS__ -DMACHINE=$ {MIPS_MACHINE}-DKERNEL_LOAD_ADDRESS=${KERNEL_LOAD_ADDRESS} -DINIT_ADDRESS=${INIT_ADDRESS} -DINIT_SIZE=${INIT_SIZE}42 DEFS += -D__32_BITS__ -DMACHINE=$(MACHINE) -DKERNEL_LOAD_ADDRESS=${KERNEL_LOAD_ADDRESS} -DINIT_ADDRESS=${INIT_ADDRESS} -DINIT_SIZE=${INIT_SIZE} 50 43 51 44 ## Compile with hierarchical page tables support. … … 64 57 # 65 58 66 ifeq ($(M IPS_MACHINE),indy)59 ifeq ($(MACHINE),indy) 67 60 # GCC 4.0.1 compiled for mipsEL has problems compiling in 68 61 # BigEndian mode with the swl/swr/lwl/lwr instructions. … … 78 71 INIT_SIZE = 0 79 72 endif 80 ifeq ($(M IPS_MACHINE),lgxemul)73 ifeq ($(MACHINE),lgxemul) 81 74 BFD_NAME = elf32-tradlittlemips 82 75 BFD = binary 83 76 CFLAGS += -DFB_BIG_ENDIAN -DARCH_HAS_FPU -mips3 84 77 endif 85 ifeq ($(M IPS_MACHINE),bgxemul)78 ifeq ($(MACHINE),bgxemul) 86 79 BFD_NAME = elf32-bigmips 87 80 BFD = ecoff-bigmips … … 91 84 INIT_ADDRESS = 0x81800000 92 85 endif 93 ifeq ($(M IPS_MACHINE),simics)86 ifeq ($(MACHINE),simics) 94 87 # SIMICS 4kc emulation is broken, although for instructions 95 88 # that do not bother us … … 100 93 TLBCNT = 16 101 94 endif 102 ifeq ($(M IPS_MACHINE),msim)95 ifeq ($(MACHINE),msim) 103 96 BFD_NAME = elf32-tradlittlemips 104 97 BFD = binary -
kernel/arch/ppc32/Makefile.inc
r41c4444 r41f7564 35 35 TARGET = ppc-linux-gnu 36 36 TOOLCHAIN_DIR = /usr/local/ppc/bin 37 38 ## Make some default assumptions39 #40 37 41 38 CFLAGS += -mcpu=powerpc -msoft-float -m32 -
kernel/arch/ppc64/Makefile.inc
r41c4444 r41f7564 36 36 TOOLCHAIN_DIR = /usr/local/ppc64/bin 37 37 38 ## Make some default assumptions39 #40 41 38 CFLAGS += -mcpu=powerpc64 -msoft-float -m64 42 39 AFLAGS += -a64 -
kernel/arch/sparc64/Makefile.inc
r41c4444 r41f7564 35 35 TARGET = sparc64-linux-gnu 36 36 TOOLCHAIN_DIR = /usr/local/sparc64/bin 37 38 ## Make some default assumptions39 #40 37 41 38 CFLAGS += -mcpu=ultrasparc -m64 -
kernel/kernel.config
r41c4444 r41f7564 8 8 @ "ppc32" PowerPC 32-bit 9 9 @ "ppc64" PowerPC 64-bit 10 @ "sparc64" Sun UltraSPARC 10 @ "sparc64" Sun UltraSPARC 64-bit 11 11 @ "xen32" Xen 32-bit 12 12 ! ARCH (choice) 13 14 # IA32 Compiler15 @ "cross" Cross-compiler16 @ "native" Native17 ! [ARCH=ia32] IA32_COMPILER (choice)18 % [ARCH=ia32] SAVEAS IA32_COMPILER COMPILER19 20 # AMD64 Compiler21 @ "cross" Cross-compiler22 @ "native" Native23 ! [ARCH=amd64] AMD64_COMPILER (choice)24 % [ARCH=amd64] SAVEAS AMD64_COMPILER COMPILER25 13 26 14 # Compiler 27 15 @ "cross" Cross-compiler 28 16 @ "native" Native 29 ! [(ARCH!=amd64)&(ARCH!=ia32)] OTHER_COMPILER (choice) 30 % [(ARCH!=amd64)&(ARCH!=ia32)] SAVEAS OTHER_COMPILER COMPILER 31 17 ! COMPILER (choice) 32 18 33 19 # CPU type … … 37 23 @ "athlon-mp" Athlon MP 38 24 @ "prescott" Prescott 39 ! [ARCH=ia32|ARCH=xen32] IA32_CPU(choice)25 ! [ARCH=ia32|ARCH=xen32] MACHINE (choice) 40 26 41 # MIPS Machine type 27 # CPU type 28 @ "opteron" Opteron 29 ! [ARCH=amd64] MACHINE (choice) 30 31 # Machine type 42 32 @ "msim" MSIM Simulator 43 33 @ "simics" Virtutech Simics simulator … … 45 35 @ "bgxemul" GXEmul Big Endian 46 36 @ "indy" SGI Indy 47 ! [ARCH=mips32] M IPS_MACHINE (choice)37 ! [ARCH=mips32] MACHINE (choice) 48 38 49 39 # Framebuffer support 50 ! [(ARCH=mips32&M IPS_MACHINE=lgxemul)|(ARCH=mips32&MIPS_MACHINE=bgxemul)|(ARCH=ia32)|(ARCH=amd64)|(ARCH=xen32)] CONFIG_FB (y/n)40 ! [(ARCH=mips32&MACHINE=lgxemul)|(ARCH=mips32&MACHINE=bgxemul)|(ARCH=ia32)|(ARCH=amd64)|(ARCH=xen32)] CONFIG_FB (y/n) 51 41 52 42 # Framebuffer width 53 @ "320"54 43 @ "640" 55 44 @ "800" … … 64 53 65 54 # Framebuffer height 66 @ "200"67 @ "240"68 @ "400"69 55 @ "480" 70 56 @ "600" … … 85 71 ! [(ARCH=ia32|ARCH=amd64|ARCH=xen32)&CONFIG_FB=y] CONFIG_VESA_BPP (choice) 86 72 87 88 89 73 # Support for SMP 90 74 ! [ARCH=ia32|ARCH=amd64|ARCH=xen32] CONFIG_SMP (y/n) … … 97 81 98 82 # Lazy FPU context switching 99 ! [(ARCH=mips32&M IPS_MACHINE!=msim&MIPS_MACHINE!=simics)|ARCH=amd64|ARCH=ia32|ARCH=ia64|ARCH=xen32] CONFIG_FPU_LAZY (y/n)83 ! [(ARCH=mips32&MACHINE!=msim&MACHINE!=simics)|ARCH=amd64|ARCH=ia32|ARCH=ia64|ARCH=xen32] CONFIG_FPU_LAZY (y/n) 100 84 101 85 # Power off on halt … … 117 101 118 102 # Use VHPT 119 ! [ARCH=ia64] CONFIG_VHPT ( y/n)103 ! [ARCH=ia64] CONFIG_VHPT (n/y) 120 104 121 105 ## Run-time configuration directives … … 134 118 @ [ARCH=ia32|ARCH=amd64|ARCH=ia64|ARCH=xen32] "fpu/fpu1" Intel fpu test 1 135 119 @ [ARCH=ia32|ARCH=amd64|ARCH=xen32] "fpu/sse1" Intel Sse test 1 136 @ [ARCH=mips32&M IPS_MACHINE!=msim&MIPS_MACHINE!=simics] "fpu/mips1" MipsFPU test 1120 @ [ARCH=mips32&MACHINE!=msim&MACHINE!=simics] "fpu/mips1" MIPS FPU test 1 137 121 @ "print/print1" Printf test 1 138 122 @ "thread/thread1" Thread test 1 … … 140 124 @ "mm/falloc1" Frame Allocation test 1 141 125 @ "mm/falloc2" Frame Allocation test 2 142 @ "mm/slab1" SLAB test1 - No CPU -cache126 @ "mm/slab1" SLAB test1 - No CPU cache 143 127 @ "mm/slab2" SLAB test2 - SMP CPU cache 144 128 @ "fault/fault1" Write to NULL (maybe page fault) 145 129 @ "sysinfo" Sysinfo fill and dump test 146 130 @ [ARCH=ia64] "mm/purge1" Itanium TLB purge test 147 @ [ARCH=mips32] "debug/mips1" M ipsbreakpoint-debug test131 @ [ARCH=mips32] "debug/mips1" MIPS breakpoint-debug test 148 132 ! CONFIG_TEST (choice)
Note:
See TracChangeset
for help on using the changeset viewer.