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