Changes in kernel/Makefile [da52547:06737a0] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/Makefile
rda52547 r06737a0 160 160 CFLAGS = $(GCC_CFLAGS) 161 161 DEPEND_DEFS = $(DEFS) $(CONFIG_DEFS) 162 INSTRUMENTATION = -finstrument-functions163 162 endif 164 163 … … 166 165 CFLAGS = $(GCC_CFLAGS) 167 166 DEPEND_DEFS = $(DEFS) $(CONFIG_DEFS) 168 INSTRUMENTATION = -finstrument-functions169 167 endif 170 168 … … 172 170 CFLAGS = $(ICC_CFLAGS) 173 171 DEPEND_DEFS = $(DEFS) $(CONFIG_DEFS) 174 INSTRUMENTATION =175 172 endif 176 173 … … 179 176 DEFS += $(CONFIG_DEFS) 180 177 DEPEND_DEFS = $(DEFS) 181 INSTRUMENTATION =182 178 endif 183 179 … … 185 181 CFLAGS = $(CLANG_CFLAGS) 186 182 DEPEND_DEFS = $(DEFS) $(CONFIG_DEFS) 187 INSTRUMENTATION =188 183 endif 189 184 … … 207 202 generic/src/debug/stacktrace.c \ 208 203 generic/src/debug/panic.c \ 209 generic/src/debug/debug.c \210 204 generic/src/interrupt/interrupt.c \ 211 205 generic/src/main/main.c \ … … 361 355 endif 362 356 363 ## Sources where instrumentation is enabled364 #365 366 ifeq ($(CONFIG_TRACE),y)367 INSTRUMENTED_SOURCES = \368 generic/src/cpu/cpu.c \369 generic/src/main/main.c \370 generic/src/main/kinit.c \371 generic/src/proc/the.c372 endif373 374 357 GENERIC_OBJECTS := $(addsuffix .o,$(basename $(GENERIC_SOURCES))) 375 358 ARCH_OBJECTS := $(addsuffix .o,$(basename $(ARCH_SOURCES))) … … 431 414 432 415 %.o: %.c $(DEPEND) 433 $(CC) $(DEFS) $(CFLAGS) $(EXTRA_FLAGS) $(FPU_NO_CFLAGS) $(if $(findstring $<,$(INSTRUMENTED_SOURCES)),$(INSTRUMENTATION))-c -o $@ $<416 $(CC) $(DEFS) $(CFLAGS) $(EXTRA_FLAGS) $(FPU_NO_CFLAGS) -c -o $@ $< 434 417 ifeq ($(PRECHECK),y) 435 418 $(JOBFILE) $(JOB) $< $@ cc core $(DEFS) $(CFLAGS) $(EXTRA_FLAGS) $(FPU_NO_CFLAGS)
Note:
See TracChangeset
for help on using the changeset viewer.