Changeset 52d30c4 in mainline
- Timestamp:
- 2007-06-05T21:24:40Z (17 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 4a8635b
- Parents:
- 92d349c8
- Location:
- kernel
- Files:
-
- 10 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/Makefile
r92d349c8 r52d30c4 37 37 # 38 38 39 DEFS = -D$(ARCH) -DARCH=\"$(ARCH)\" -DRELEASE=\"$(RELEASE)\" "-DNAME=\"$(NAME)\"" -DKERNEL 40 CFLAGS = -fno-builtin -fomit-frame-pointer -Wall -Wmissing-prototypes -Werror -O3 -nostdlib -nostdinc -Igeneric/include/ 41 42 #SUNCC_CFLAGS = -xO3 -Igeneric/include/ -xnolib -xc99=all \ 43 #-D__FUNCTION__=__func__ -features=extensions \ 44 #-erroff=E_ZERO_SIZED_STRUCT_UNION 39 DEFS = -D$(ARCH) -DARCH=\"$(ARCH)\" -DRELEASE=\"$(RELEASE)\" "-DNAME=\"$(NAME)\"" \ 40 -DKERNEL 41 42 GCC_CFLAGS = -fno-builtin -fomit-frame-pointer -Wall -Wmissing-prototypes \ 43 -Werror -O3 -nostdlib -nostdinc -Igeneric/include/ 44 45 SUNCC_CFLAGS = -xO3 -Igeneric/include/ -xnolib -xc99=all \ 46 -D__FUNCTION__=__func__ -features=extensions \ 47 -erroff=E_ZERO_SIZED_STRUCT_UNION 48 45 49 46 50 LFLAGS = -M … … 132 136 OBJDUMP = objdump 133 137 LIBDIR = /usr/lib 138 CFLAGS = $(GCC_CFLAGS) 134 139 endif 135 140 … … 142 147 OBJDUMP = objdump 143 148 LIBDIR = /usr/lib 149 CFLAGS = $(GCC_CFLAGS) 144 150 endif 145 151 … … 152 158 OBJDUMP = objdump 153 159 LIBDIR = /usr/lib 160 CFLAGS = $(SUNCC_CFLAGS) 154 161 endif 155 162 … … 162 169 OBJDUMP = $(TOOLCHAIN_DIR)/bin/$(TARGET)-objdump 163 170 LIBDIR = $(TOOLCHAIN_DIR)/lib 171 CFLAGS = $(GCC_CFLAGS) 164 172 endif 165 173 -
kernel/arch/amd64/Makefile.inc
r92d349c8 r52d30c4 36 36 TOOLCHAIN_DIR = /usr/local/amd64 37 37 38 CFLAGS += -fno-unwind-tables -m64 -mcmodel=kernel -mno-red-zone 38 GCC_CFLAGS += -fno-unwind-tables -m64 -mcmodel=kernel -mno-red-zone 39 SUNCC_CFLAGS += -m64 -xmodel=kernel 40 39 41 DEFS += -DMACHINE=$(MACHINE) -D__64_BITS__ 40 42 … … 43 45 44 46 ifeq ($(MACHINE),opteron) 45 CFLAGS += -march=opteron47 GCC_CFLAGS += -march=opteron 46 48 DEFS += -DFENCES=p4 47 49 endif -
kernel/arch/arm32/Makefile.inc
r92d349c8 r52d30c4 37 37 TOOLCHAIN_DIR = /usr/local/arm 38 38 39 CFLAGS +=39 GCC_CFLAGS += 40 40 41 41 DEFS += -D__32_BITS__ -DMACHINE=$(MACHINE) -
kernel/arch/ia32/Makefile.inc
r92d349c8 r52d30c4 37 37 38 38 DEFS += -DMACHINE=$(MACHINE) -D__32_BITS__ 39 SUNCC_CFLAGS = -m32 39 40 40 41 ## Accepted CPUs … … 42 43 43 44 ifeq ($(MACHINE),athlon-xp) 44 CFLAGS += -march=athlon-xp -mmmx -msse -m3dnow45 GCC_CFLAGS += -march=athlon-xp -mmmx -msse -m3dnow 45 46 DEFS += -DCONFIG_FENCES_P3 46 47 CONFIG_SMP = n … … 48 49 endif 49 50 ifeq ($(MACHINE),athlon-mp) 50 CFLAGS += -march=athlon-mp -mmmx -msse -m3dnow51 GCC_CFLAGS += -march=athlon-mp -mmmx -msse -m3dnow 51 52 DEFS += -DCONFIG_FENCES_P3 52 53 CONFIG_HT = n 53 54 endif 54 55 ifeq ($(MACHINE),pentium3) 55 CFLAGS += -march=pentium3 -mmmx -msse56 GCC_CFLAGS += -march=pentium3 -mmmx -msse 56 57 DEFS += -DCONFIG_FENCES_P3 57 58 CONFIG_HT = n 58 59 endif 59 60 ifeq ($(MACHINE),prescott) 60 CFLAGS += -march=pentium4 -mfpmath=sse -mmmx -msse -msse2 -msse361 GCC_CFLAGS += -march=pentium4 -mfpmath=sse -mmmx -msse -msse2 -msse3 61 62 DEFS += -DCONFIG_FENCES_P4 62 63 endif 63 64 ifeq ($(MACHINE),pentium4) 64 65 ifeq ($(COMPILER),icc_native) 65 CFLAGS += -march=pentium466 GCC_CFLAGS += -march=pentium4 66 67 else 67 CFLAGS += -march=pentium4 -mfpmath=sse -mmmx -msse -msse268 GCC_CFLAGS += -march=pentium4 -mfpmath=sse -mmmx -msse -msse2 68 69 endif 69 70 DEFS += -DCONFIG_FENCES_P4 -
kernel/arch/ia32xen/Makefile.inc
r92d349c8 r52d30c4 38 38 DEFS += -DMACHINE=$(MACHINE) -D__32_BITS__ 39 39 40 SUNCC_CFLAGS = -m32 41 40 42 ## Accepted CPUs 41 43 # 42 44 43 45 ifeq ($(MACHINE),athlon-xp) 44 CFLAGS += -march=athlon-xp -mmmx -msse -m3dnow46 GCC_CFLAGS += -march=athlon-xp -mmmx -msse -m3dnow 45 47 DEFS += -DCONFIG_FENCES_P3 46 48 CONFIG_SMP = n … … 48 50 endif 49 51 ifeq ($(MACHINE),athlon-mp) 50 CFLAGS += -march=athlon-mp -mmmx -msse -m3dnow52 GCC_CFLAGS += -march=athlon-mp -mmmx -msse -m3dnow 51 53 DEFS += -DCONFIG_FENCES_P3 52 54 CONFIG_HT = n 53 55 endif 54 56 ifeq ($(MACHINE),pentium3) 55 CFLAGS += -march=pentium3 -mmmx -msse57 GCC_CFLAGS += -march=pentium3 -mmmx -msse 56 58 DEFS += -DCONFIG_FENCES_P3 57 59 CONFIG_HT = n 58 60 endif 59 61 ifeq ($(MACHINE),prescott) 60 CFLAGS += -march=pentium4 -mfpmath=sse -mmmx -msse -msse2 -msse362 GCC_CFLAGS += -march=pentium4 -mfpmath=sse -mmmx -msse -msse2 -msse3 61 63 DEFS += -DCONFIG_FENCES_P4 62 64 endif 63 65 ifeq ($(MACHINE),pentium4) 64 CFLAGS += -march=pentium4 -mfpmath=sse -mmmx -msse -msse266 GCC_CFLAGS += -march=pentium4 -mfpmath=sse -mmmx -msse -msse2 65 67 DEFS += -DCONFIG_FENCES_P4 66 68 endif -
kernel/arch/ia64/Makefile.inc
r92d349c8 r52d30c4 39 39 INIT0_SIZE = 0x100000 40 40 41 CFLAGS += -mconstant-gp -fno-unwind-tables -mfixed-range=f32-f12741 GCC_CFLAGS += -mconstant-gp -fno-unwind-tables -mfixed-range=f32-f127 42 42 LFLAGS += -EL 43 43 AFLAGS += -mconstant-gp -
kernel/arch/mips32/Makefile.inc
r92d349c8 r52d30c4 38 38 INIT_SIZE = 262144 39 39 40 CFLAGS += -mno-abicalls -G 0 -fno-zero-initialized-in-bss40 GCC_CFLAGS += -mno-abicalls -G 0 -fno-zero-initialized-in-bss 41 41 42 42 DEFS += -D__32_BITS__ -DMACHINE=$(MACHINE) -DKERNEL_LOAD_ADDRESS=${KERNEL_LOAD_ADDRESS} -DINIT_ADDRESS=${INIT_ADDRESS} -DINIT_SIZE=${INIT_SIZE} … … 67 67 TOOLCHAIN_DIR = /usr/local/mips/bin 68 68 KERNEL_LOAD_ADDRESS = 0x88002000 69 CFLAGS += -EB -DBIG_ENDIAN -DARCH_HAS_FPU -march=r460069 GCC_CFLAGS += -EB -DBIG_ENDIAN -DARCH_HAS_FPU -march=r4600 70 70 INIT_ADDRESS = 0 71 71 INIT_SIZE = 0 … … 81 81 TARGET = mips-sgi-irix5 82 82 TOOLCHAIN_DIR = /usr/local/mips/bin 83 CFLAGS += -EB -DBIG_ENDIAN -DARCH_HAS_FPU -mips383 GCC_CFLAGS += -EB -DBIG_ENDIAN -DARCH_HAS_FPU -mips3 84 84 INIT_ADDRESS = 0x81800000 85 85 endif … … 90 90 BFD_NAME = elf32-tradlittlemips 91 91 BFD = elf32-tradlittlemips 92 CFLAGS += -mhard-float -mips3 -DTLBCNT=1692 GCC_CFLAGS += -mhard-float -mips3 -DTLBCNT=16 93 93 TLBCNT = 16 94 94 endif … … 96 96 BFD_NAME = elf32-tradlittlemips 97 97 BFD = binary 98 CFLAGS += -mhard-float -mips398 GCC_CFLAGS += -mhard-float -mips3 99 99 endif 100 100 -
kernel/arch/ppc32/Makefile.inc
r92d349c8 r52d30c4 36 36 TOOLCHAIN_DIR = /usr/local/ppc 37 37 38 CFLAGS += -mcpu=powerpc -msoft-float -m3238 GCC_CFLAGS += -mcpu=powerpc -msoft-float -m32 39 39 AFLAGS += -a32 40 40 LFLAGS += -no-check-sections -N -
kernel/arch/ppc64/Makefile.inc
r92d349c8 r52d30c4 36 36 TOOLCHAIN_DIR = /usr/local/ppc64 37 37 38 CFLAGS += -mcpu=powerpc64 -msoft-float -m6438 GCC_CFLAGS += -mcpu=powerpc64 -msoft-float -m64 39 39 AFLAGS += -a64 40 40 LFLAGS += -no-check-sections -N -
kernel/arch/sparc64/Makefile.inc
r92d349c8 r52d30c4 36 36 TOOLCHAIN_DIR = /usr/local/sparc64 37 37 38 CFLAGS += -mcpu=ultrasparc -m64 38 GCC_CFLAGS += -mcpu=ultrasparc -m64 39 SUNCC_CFLAGS += 39 40 LFLAGS += -no-check-sections -N 40 41
Note:
See TracChangeset
for help on using the changeset viewer.