Changes in kernel/Makefile [fe171357:4761f54] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/Makefile
rfe171357 r4761f54 59 59 60 60 GENMAP = tools/genmap.py 61 JOBFILE = $(ROOT_PATH)/tools/jobfile.py 61 62 62 63 LINK = arch/$(KARCH)/_link.ld 63 64 EMPTY_MAP = generic/src/debug/empty_map.o 64 65 SIZEOK_MAP = generic/src/debug/sizeok_map.o 65 66 ifeq ($(PRECHECK),y)67 JOBFILE = $(ROOT_PATH)/tools/jobfile.py68 # XXX: Do not change the order of arguments.69 CC_JOB = $(JOBFILE) $(JOB) $(CC) $< -o $@70 else71 CC_JOB = $(CC) $< -o $@72 endif73 66 74 67 .PHONY: all clean autogen_clean depend … … 91 84 COMMON_CFLAGS = $(INCLUDES_FLAGS) -O$(OPTIMIZATION) -imacros $(CONFIG_HEADER) \ 92 85 -ffreestanding -fno-builtin -nostdlib -nostdinc \ 93 -fexec-charset=UTF-8 -finput-charset=UTF-8 -fno-common \ 94 -fdebug-prefix-map=$(realpath $(ROOT_PATH))=. 86 -fexec-charset=UTF-8 -finput-charset=UTF-8 95 87 96 88 GCC_CFLAGS = -std=gnu99 -Wall -Wextra -Wno-unused-parameter \ … … 119 111 # AFLAGS and LFLAGS must be initialized before the inclusion. 120 112 # 121 AFLAGS = --fatal-warnings 122 LFLAGS = -n -T $(LINK) -M --fatal-warnings --warn-common 123 124 ifeq ($(CONFIG_STRIP_BINARIES),y) 125 LFLAGS += --strip-all 113 AFLAGS = 114 LFLAGS = -n -T $(LINK) -M --fatal-warnings 115 116 # FIXME: This condition is a workaround for issues #693 and #694. 117 ifneq ($(KARCH),sparc64) 118 ifneq ($(KARCH),mips32) 119 AFLAGS += --fatal-warnings 120 endif 126 121 endif 127 122 … … 397 392 $(LD) $(LFLAGS) -Map $(MAP) -o $@ $(ARCH_OBJECTS) $(GENARCH_OBJECTS) $(GENERIC_OBJECTS) $(EXTRA_OBJECTS) $(SYMTAB_OBJECTS) 398 393 endif 394 ifeq ($(CONFIG_STRIP_BINARIES),y) 395 $(STRIP) $(RAW) 396 endif 399 397 400 398 $(LINK): $(LINK).in | depend … … 407 405 408 406 %.o: %.S | depend 409 $(CC_JOB) -c -MD -MP $(DEFS) $(CFLAGS) $(AS_CFLAGS) -D__ASM__ 407 $(CC) -MD $(DEFS) $(CFLAGS) $(AS_CFLAGS) -D__ASM__ -c -o $@ $< 408 ifeq ($(PRECHECK),y) 409 $(JOBFILE) $(JOB) $< $@ as asm/preproc $(DEFS) $(CFLAGS) -D__ASM__ 410 endif 410 411 411 412 %.o: %.s | depend 412 $(CC_JOB) -c -MD -MP $(DEFS) $(CFLAGS) $(AS_CFLAGS) -D__ASM__ 413 $(CC) -MD $(DEFS) $(CFLAGS) $(AS_CFLAGS) -D__ASM__ -c -o $@ $< 414 ifeq ($(PRECHECK),y) 415 $(JOBFILE) $(JOB) $< $@ as asm $(DEFS) $(CFLAGS) $(EXTRA_FLAGS) 416 endif 413 417 414 418 %.o: %.c | depend 415 $(CC_JOB) -c -MD -MP $(DEFS) $(CFLAGS) $(EXTRA_FLAGS) $(FPU_NO_CFLAGS) $(if $(findstring $<,$(INSTRUMENTED_SOURCES)),$(INSTRUMENTATION)) 419 $(CC) -MD $(DEFS) $(CFLAGS) $(EXTRA_FLAGS) $(FPU_NO_CFLAGS) $(if $(findstring $<,$(INSTRUMENTED_SOURCES)),$(INSTRUMENTATION)) -c -o $@ $< 420 ifeq ($(PRECHECK),y) 421 $(JOBFILE) $(JOB) $< $@ cc core $(DEFS) $(CFLAGS) $(EXTRA_FLAGS) $(FPU_NO_CFLAGS) 422 endif 416 423 417 424 $(REAL_MAP).o: $(REAL_MAP).bin … … 451 458 done 452 459 453 depend: $(AUTOGENS_H) 460 depend: $(COMMON_HEADER_ARCH) $(AUTOGENS_H) 461 462 $(COMMON_HEADER_ARCH): $(COMMON_HEADER) 463 ln -sfn ../../../../$< $@ 454 464 455 465 autogen_clean:
Note:
See TracChangeset
for help on using the changeset viewer.