Changeset 41f7564 in mainline for kernel/Makefile
- Timestamp:
- 2006-07-17T00:53:53Z (18 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 231fcb2
- Parents:
- 41c4444
- File:
-
- 1 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:
Note:
See TracChangeset
for help on using the changeset viewer.