Changeset 4c53333 in mainline for kernel/Makefile
- Timestamp:
- 2013-07-11T08:21:10Z (11 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 64e63ce1
- Parents:
- 80445cf (diff), c8bb1633 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the(diff)
links above to see all the changes relative to each parent. - File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/Makefile
r80445cf r4c53333 36 36 COMMON_MAKEFILE = $(ROOT_PATH)/Makefile.common 37 37 COMMON_HEADER = $(ROOT_PATH)/common.h 38 COMMON_HEADER_ARCH = arch/$(KARCH)/include/ common.h38 COMMON_HEADER_ARCH = arch/$(KARCH)/include/arch/common.h 39 39 40 40 CONFIG_MAKEFILE = $(ROOT_PATH)/Makefile.config … … 59 59 REAL_MAP = generic/src/debug/real_map 60 60 61 ABI_INCLUDE = generic/include/abi62 ARCH_INCLUDE = generic/include/arch63 GENARCH_INCLUDE = generic/include/genarch64 65 61 GENMAP = tools/genmap.py 66 62 JOBFILE = $(ROOT_PATH)/tools/jobfile.py … … 76 72 77 73 clean: 78 rm -f $(DEPEND) $(DEPEND_PREV) $(RAW) $(BIN) $(MAP) $(JOB) $(MAP_PREV) $(DISASM) $(DUMP) $(REAL_MAP).* $(ABI_INCLUDE) $(ARCH_INCLUDE) $(GENARCH_INCLUDE) arch/*/_link.ld arch/*/include/common.h74 rm -f $(DEPEND) $(DEPEND_PREV) $(RAW) $(BIN) $(MAP) $(JOB) $(MAP_PREV) $(DISASM) $(DUMP) $(REAL_MAP).* arch/*/_link.ld arch/*/include/arch/common.h 79 75 find generic/src/ arch/*/src/ genarch/src/ test/ -name '*.o' -follow -exec rm \{\} \; 80 76 … … 82 78 # 83 79 84 INCLUDES = generic/include 80 INCLUDES = generic/include genarch/include arch/$(KARCH)/include ../abi/include 81 INCLUDES_FLAGS = $(addprefix -I,$(INCLUDES)) 85 82 86 83 ifeq ($(CONFIG_OPTIMIZE_FOR_SIZE),y) … … 92 89 DEFS = -DKERNEL -DRELEASE=$(RELEASE) "-DCOPYRIGHT=$(COPYRIGHT)" "-DNAME=$(NAME)" -D__$(BITS)_BITS__ -D__$(ENDIANESS)__ 93 90 94 GCC_CFLAGS = -I$(INCLUDES) -O$(OPTIMIZATION) -imacros $(CONFIG_HEADER) \91 GCC_CFLAGS = $(INCLUDES_FLAGS) -O$(OPTIMIZATION) -imacros $(CONFIG_HEADER) \ 95 92 -fexec-charset=UTF-8 -fwide-exec-charset=UTF-32$(ENDIANESS) \ 96 93 -finput-charset=UTF-8 -ffreestanding -fno-builtin -nostdlib -nostdinc \ … … 99 96 -pipe 100 97 101 ICC_CFLAGS = -I$(INCLUDES) -O$(OPTIMIZATION) -imacros $(CONFIG_HEADER) \98 ICC_CFLAGS = $(INCLUDES_FLAGS) -O$(OPTIMIZATION) -imacros $(CONFIG_HEADER) \ 102 99 -ffreestanding -fno-builtin -nostdlib -nostdinc -Wall -Wmissing-prototypes \ 103 100 -Werror-implicit-function-declaration -wd170 104 101 105 SUNCC_CFLAGS = -I$(INCLUDES) -xO$(OPTIMIZATION) \ 106 -xnolib -xc99=all -features=extensions \ 107 -erroff=E_ZERO_SIZED_STRUCT_UNION 108 109 CLANG_CFLAGS = -I$(INCLUDES) -O$(OPTIMIZATION) -imacros $(CONFIG_HEADER) \ 110 -fexec-charset=UTF-8 -fwide-exec-charset=UTF-32$(ENDIANESS) \ 111 -finput-charset=UTF-8 -ffreestanding -fno-builtin -nostdlib -nostdinc \ 112 -Wall -Wextra -Wno-unused-parameter -Wmissing-prototypes \ 102 # clang does not support following options but I am not sure whether 103 # something won't break because of that: 104 # -fexec-charset=UTF-8 -fwide-exec-charset=UTF-32$(ENDIANESS) -finput-charset=UTF-8 105 CLANG_CFLAGS = $(INCLUDES_FLAGS) -O$(OPTIMIZATION) -imacros $(CONFIG_HEADER) \ 106 -ffreestanding -fno-builtin -nostdlib -nostdinc \ 107 -Wall -Werror -Wextra -Wno-unused-parameter -Wmissing-prototypes \ 113 108 -Werror-implicit-function-declaration -Wwrite-strings \ 114 -pipe -arch $(CLANG_ARCH) 109 -integrated-as \ 110 -pipe -target $(CLANG_TARGET) 115 111 116 112 ifeq ($(CONFIG_DEBUG),y) … … 126 122 GCC_CFLAGS += -g 127 123 ICC_CFLAGS += -g 128 SUNCC_CFLAGS += -g129 124 CLANG_CFLAGS += -g 130 125 endif … … 180 175 CFLAGS = $(ICC_CFLAGS) 181 176 DEPEND_DEFS = $(DEFS) $(CONFIG_DEFS) 182 INSTRUMENTATION =183 endif184 185 ifeq ($(COMPILER),suncc)186 CFLAGS = $(SUNCC_CFLAGS)187 DEFS += $(CONFIG_DEFS)188 DEPEND_DEFS = $(DEFS)189 177 INSTRUMENTATION = 190 178 endif … … 208 196 generic/src/console/chardev.c \ 209 197 generic/src/console/console.c \ 198 generic/src/console/prompt.c \ 210 199 generic/src/cpu/cpu.c \ 211 200 generic/src/ddi/ddi.c \ … … 268 257 generic/src/ipc/ipc.c \ 269 258 generic/src/ipc/sysipc.c \ 259 generic/src/ipc/sysipc_ops.c \ 260 generic/src/ipc/ops/clnestab.c \ 261 generic/src/ipc/ops/conctmeto.c \ 262 generic/src/ipc/ops/concttome.c \ 263 generic/src/ipc/ops/connclone.c \ 264 generic/src/ipc/ops/dataread.c \ 265 generic/src/ipc/ops/datawrite.c \ 266 generic/src/ipc/ops/debug.c \ 267 generic/src/ipc/ops/sharein.c \ 268 generic/src/ipc/ops/shareout.c \ 269 generic/src/ipc/ops/stchngath.c \ 270 270 generic/src/ipc/ipcrsc.c \ 271 271 generic/src/ipc/irq.c \ … … 390 390 391 391 $(LINK): $(LINK).in $(DEPEND) 392 $( GCC) $(DEFS) $(GCC_CFLAGS) -D__ASM__ -D__LINKER__ -E -x c $< | grep -v "^\#" > $@392 $(CC) $(DEFS) $(CFLAGS) -D__ASM__ -D__LINKER__ -E -x c $< | grep -v "^\#" > $@ 393 393 394 394 %.o: %.S $(DEPEND) … … 435 435 $(GENMAP) $(MAP_PREV) $(DUMP) $@ 436 436 437 $(DEPEND): $( ABI_INCLUDE) $(ARCH_INCLUDE) $(GENARCH_INCLUDE) $(COMMON_HEADER_ARCH)437 $(DEPEND): $(COMMON_HEADER_ARCH) 438 438 makedepend -f - -- $(DEPEND_DEFS) $(CFLAGS) -- $(ARCH_SOURCES) $(GENARCH_SOURCES) $(GENERIC_SOURCES) > $@ 2> /dev/null 439 439 -[ -f $(DEPEND_PREV) ] && diff -q $(DEPEND_PREV) $@ && mv -f $(DEPEND_PREV) $@ 440 440 441 $(ABI_INCLUDE): ../abi/include/442 ln -sfn ../../$< $@443 444 $(ARCH_INCLUDE): arch/$(KARCH)/include/445 ln -sfn ../../$< $@446 447 $(GENARCH_INCLUDE): genarch/include/448 ln -sfn ../../$< $@449 450 441 $(COMMON_HEADER_ARCH): $(COMMON_HEADER) 451 ln -sfn ../../../ $< $@442 ln -sfn ../../../../$< $@
Note:
See TracChangeset
for help on using the changeset viewer.