Changeset 44bec47 in mainline
- Timestamp:
- 2007-06-06T20:00:13Z (18 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 3ee8a075
- Parents:
- 99373fe
- Location:
- kernel
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/Makefile
r99373fe r44bec47 34 34 -include Makefile.config 35 35 36 INCLUDES = generic/include 37 OPTIMIZATION = 3 38 36 39 ## Common compiler flags 37 40 # … … 40 43 -DKERNEL 41 44 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 \ 45 GCC_CFLAGS = -I$(INCLUDES) -O$(OPTIMIZATION) \ 46 -fno-builtin -fomit-frame-pointer -Wall -Wmissing-prototypes -Werror \ 47 -nostdlib -nostdinc 48 49 ICC_CFLAGS = -I$(INCLUDES) -O$(OPTIMIZATION) \ 50 -fno-builtin -fomit-frame-pointer -Wall -Wmissing-prototypes -Werror \ 51 -nostdlib -nostdinc \ 52 -wd170 53 54 SUNCC_CFLAGS = -I$(INCLUDES) -xO$(OPTIMIZATION) \ 55 -xnolib -xc99=all -xregs=no%float \ 46 56 -D__FUNCTION__=__func__ -features=extensions \ 47 57 -erroff=E_ZERO_SIZED_STRUCT_UNION 48 49 58 50 59 LFLAGS = -M … … 147 156 OBJDUMP = objdump 148 157 LIBDIR = /usr/lib 149 CFLAGS = $( GCC_CFLAGS)158 CFLAGS = $(ICC_CFLAGS) 150 159 endif 151 160 -
kernel/arch/amd64/Makefile.inc
r99373fe r44bec47 36 36 TOOLCHAIN_DIR = /usr/local/amd64 37 37 38 GCC_CFLAGS += -fno-unwind-tables -m64 -mcmodel=kernel -mno-red-zone 38 CMN1 = -m64 -mcmodel=kernel -mno-red-zone -fno-unwind-tables 39 GCC_CFLAGS += $(CMN1) 40 ICC_CFLAGS += $(CMN1) 39 41 SUNCC_CFLAGS += -m64 -xmodel=kernel 40 42 … … 45 47 46 48 ifeq ($(MACHINE),opteron) 47 GCC_CFLAGS += -march=opteron 49 CMN2 := -march=opteron 50 GCC_CFLAGS += $(CMN2) 51 ICC_CFLAGS += $(CMN2) 52 SUNCC_CFLAGS += -xtarget=opteron 48 53 DEFS += -DFENCES=p4 49 54 endif -
kernel/arch/ia32/Makefile.inc
r99373fe r44bec47 37 37 38 38 DEFS += -DMACHINE=$(MACHINE) -D__32_BITS__ 39 SUNCC_CFLAGS += -m32 39 40 CMN1 = -m32 41 GCC_CFLAGS += $(CMN1) 42 ICC_CFLAGS += $(CMN1) 43 SUNCC_CFLAGS += $(CMN1) 40 44 41 45 ## Accepted CPUs … … 43 47 44 48 ifeq ($(MACHINE),athlon-xp) 45 GCC_CFLAGS += -march=athlon-xp -mmmx -msse -m3dnow 49 CMN2 = -march=athlon-xp -mmmx -msse -m3dnow 50 GCC_CFLAGS += $(CMN2) 51 ICC_CFLAGS += $(CMN2) 52 SUNCC_CFLAGS += -xarch=ssea 46 53 DEFS += -DCONFIG_FENCES_P3 47 54 CONFIG_SMP = n … … 49 56 endif 50 57 ifeq ($(MACHINE),athlon-mp) 51 GCC_CFLAGS += -march=athlon-mp -mmmx -msse -m3dnow 58 CMN2 = -march=athlon-mp -mmmx -msse -m3dnow 59 GCC_CFLAGS += $(CMN2) 60 ICC_CFLAGS += $(CMN2) 61 SUNCC_CFLAGS += xarch=ssea 52 62 DEFS += -DCONFIG_FENCES_P3 53 63 CONFIG_HT = n 54 64 endif 55 65 ifeq ($(MACHINE),pentium3) 56 GCC_CFLAGS += -march=pentium3 -mmmx -msse 66 CMN2 = -march=pentium3 -mmmx -msse 67 GCC_CFLAGS += $(CMN2) 68 ICC_CFLAGS += $(CMN2) 69 SUNCC_CFLAGS += -xarch=sse 57 70 DEFS += -DCONFIG_FENCES_P3 58 71 CONFIG_HT = n 59 72 endif 60 73 ifeq ($(MACHINE),prescott) 61 GCC_CFLAGS += -march=pentium4 -mfpmath=sse -mmmx -msse -msse2 -msse3 74 CMN2 = -march=pentium4 -mfpmath=sse -mmmx -msse -msse2 -msse3 75 GCC_CFLAGS += $(CMN2) 76 ICC_CFLAGS += $(CMN2) 77 SUNCC_CFLAGS += -xarch=sse3 62 78 DEFS += -DCONFIG_FENCES_P4 63 79 endif 64 80 ifeq ($(MACHINE),pentium4) 65 ifeq ($(COMPILER),icc_native) 66 GCC_CFLAGS += -march=pentium4 67 else 68 GCC_CFLAGS += -march=pentium4 -mfpmath=sse -mmmx -msse -msse2 69 endif 81 GCC_CFLAGS += -march=pentium4 -mfpmath=sse -mmmx -msse -msse2 82 ICC_CFLAGS += -march=pentium4 83 SUNCC_CFLAGS += -xarch=sse2 70 84 DEFS += -DCONFIG_FENCES_P4 71 85 endif -
kernel/arch/ia32xen/Makefile.inc
r99373fe r44bec47 38 38 DEFS += -DMACHINE=$(MACHINE) -D__32_BITS__ 39 39 40 SUNCC_CFLAGS += -m32 40 CMN1 = -m32 41 GCC_CFLAGS += $(CMN1) 42 ICC_CFLAGS += $(CMN1) 43 SUNCC_CFLAGS += $(CMN1) 41 44 42 45 ## Accepted CPUs … … 44 47 45 48 ifeq ($(MACHINE),athlon-xp) 46 GCC_CFLAGS += -march=athlon-xp -mmmx -msse -m3dnow 49 CMN2 = -march=athlon-xp -mmmx -msse -m3dnow 50 GCC_CFLAGS += $(CMN2) 51 ICC_CFLAGS += $(CMN2) 52 SUNCC_CFLAGS += -xarch=ssea 47 53 DEFS += -DCONFIG_FENCES_P3 48 54 CONFIG_SMP = n … … 50 56 endif 51 57 ifeq ($(MACHINE),athlon-mp) 52 GCC_CFLAGS += -march=athlon-mp -mmmx -msse -m3dnow 58 CMN2 = -march=athlon-mp -mmmx -msse -m3dnow 59 GCC_CFLAGS += $(CMN2) 60 ICC_CFLAGS += $(CMN2) 61 SUNCC_CFLAGS += -xarch=ssea 53 62 DEFS += -DCONFIG_FENCES_P3 54 63 CONFIG_HT = n 55 64 endif 56 65 ifeq ($(MACHINE),pentium3) 57 GCC_CFLAGS += -march=pentium3 -mmmx -msse 66 CMN2 = -march=pentium3 -mmmx -msse 67 GCC_CFLAGS += $(CMN2) 68 ICC_CFLAGS += $(CMN2) 69 SUNCC_CFLAGS += -xarch=sse 58 70 DEFS += -DCONFIG_FENCES_P3 59 71 CONFIG_HT = n 60 72 endif 61 73 ifeq ($(MACHINE),prescott) 62 GCC_CFLAGS += -march=pentium4 -mfpmath=sse -mmmx -msse -msse2 -msse3 74 CMN2 = -march=pentium4 -mfpmath=sse -mmmx -msse -msse2 -msse3 75 GCC_CFLAGS += $(CMN2) 76 ICC_CFLAGS += $(CMN2) 77 SUNCC_CFLAGS += -xarch=sse3 63 78 DEFS += -DCONFIG_FENCES_P4 64 79 endif 65 80 ifeq ($(MACHINE),pentium4) 66 81 GCC_CFLAGS += -march=pentium4 -mfpmath=sse -mmmx -msse -msse2 82 ICC_CFLAGS += -march=pentium4 83 SUNCC_CFLAGS += -xarch=sse2 67 84 DEFS += -DCONFIG_FENCES_P4 68 85 endif -
kernel/arch/ia64/Makefile.inc
r99373fe r44bec47 39 39 INIT0_SIZE = 0x100000 40 40 41 GCC_CFLAGS += -mconstant-gp -fno-unwind-tables -mfixed-range=f32-f127 41 CMN1 = -mconstant-gp -fno-unwind-tables -mfixed-range=f32-f127 42 GCC_CFLAGS += $(CMN1) 43 ICC_CFLAGS += $(CMN1) 44 42 45 LFLAGS += -EL 43 46 AFLAGS += -mconstant-gp 44 47 45 48 DEFS += -D__64_BITS__ -DINIT0_ADDRESS=$(INIT0_ADDRESS) -DINIT0_SIZE=$(INIT0_SIZE) -D$(MACHINE) 46 47 49 48 50 -
kernel/arch/sparc64/Makefile.inc
r99373fe r44bec47 36 36 TOOLCHAIN_DIR = /usr/local/sparc64 37 37 38 GCC_CFLAGS += -mcpu=ultrasparc -m64 39 SUNCC_CFLAGS += 38 GCC_CFLAGS += -m64 -mcpu=ultrasparc 39 SUNCC_CFLAGS += -m64 -xarch=sparc -xregs=appl 40 40 41 LFLAGS += -no-check-sections -N 41 42
Note:
See TracChangeset
for help on using the changeset viewer.