Changes in kernel/Makefile [263bda2:510bc07] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/Makefile
r263bda2 r510bc07 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 … … 206 201 generic/src/debug/symtab.c \ 207 202 generic/src/debug/stacktrace.c \ 208 generic/src/debug/panic.c \209 generic/src/debug/debug.c \210 203 generic/src/interrupt/interrupt.c \ 211 204 generic/src/main/main.c \ … … 248 241 generic/src/synch/spinlock.c \ 249 242 generic/src/synch/condvar.c \ 243 generic/src/synch/rwlock.c \ 250 244 generic/src/synch/mutex.c \ 251 245 generic/src/synch/semaphore.c \ … … 300 294 test/mm/slab1.c \ 301 295 test/mm/slab2.c \ 296 test/synch/rwlock1.c \ 297 test/synch/rwlock2.c \ 298 test/synch/rwlock3.c \ 299 test/synch/rwlock4.c \ 300 test/synch/rwlock5.c \ 302 301 test/synch/semaphore1.c \ 303 302 test/synch/semaphore2.c \ … … 361 360 endif 362 361 363 ## Sources where instrumentation is enabled364 #365 366 ifeq ($(CONFIG_LOG),y)367 INSTRUMENTED_SOURCES = \368 generic/src/cpu/cpu.c \369 generic/src/main/kinit.c370 endif371 372 362 GENERIC_OBJECTS := $(addsuffix .o,$(basename $(GENERIC_SOURCES))) 373 363 ARCH_OBJECTS := $(addsuffix .o,$(basename $(ARCH_SOURCES))) … … 429 419 430 420 %.o: %.c $(DEPEND) 431 $(CC) $(DEFS) $(CFLAGS) $(EXTRA_FLAGS) $(FPU_NO_CFLAGS) $(if $(findstring $<,$(INSTRUMENTED_SOURCES)),$(INSTRUMENTATION))-c -o $@ $<421 $(CC) $(DEFS) $(CFLAGS) $(EXTRA_FLAGS) $(FPU_NO_CFLAGS) -c -o $@ $< 432 422 ifeq ($(PRECHECK),y) 433 423 $(JOBFILE) $(JOB) $< $@ cc core $(DEFS) $(CFLAGS) $(EXTRA_FLAGS) $(FPU_NO_CFLAGS)
Note:
See TracChangeset
for help on using the changeset viewer.