Changeset bd48f4c in mainline for kernel/Makefile
- Timestamp:
- 2010-07-12T10:53:30Z (15 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- bd11d3e
- Parents:
- c40e6ef (diff), bee2d4c (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
rc40e6ef rbd48f4c 160 160 CFLAGS = $(GCC_CFLAGS) 161 161 DEPEND_DEFS = $(DEFS) $(CONFIG_DEFS) 162 INSTRUMENTATION = -finstrument-functions 162 163 endif 163 164 … … 165 166 CFLAGS = $(GCC_CFLAGS) 166 167 DEPEND_DEFS = $(DEFS) $(CONFIG_DEFS) 168 INSTRUMENTATION = -finstrument-functions 167 169 endif 168 170 … … 170 172 CFLAGS = $(ICC_CFLAGS) 171 173 DEPEND_DEFS = $(DEFS) $(CONFIG_DEFS) 174 INSTRUMENTATION = 172 175 endif 173 176 … … 176 179 DEFS += $(CONFIG_DEFS) 177 180 DEPEND_DEFS = $(DEFS) 181 INSTRUMENTATION = 178 182 endif 179 183 … … 181 185 CFLAGS = $(CLANG_CFLAGS) 182 186 DEPEND_DEFS = $(DEFS) $(CONFIG_DEFS) 187 INSTRUMENTATION = 183 188 endif 184 189 … … 201 206 generic/src/debug/symtab.c \ 202 207 generic/src/debug/stacktrace.c \ 208 generic/src/debug/panic.c \ 209 generic/src/debug/debug.c \ 203 210 generic/src/interrupt/interrupt.c \ 204 211 generic/src/main/main.c \ … … 241 248 generic/src/synch/spinlock.c \ 242 249 generic/src/synch/condvar.c \ 243 generic/src/synch/rwlock.c \244 250 generic/src/synch/mutex.c \ 245 251 generic/src/synch/semaphore.c \ … … 294 300 test/mm/slab1.c \ 295 301 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 \301 302 test/synch/semaphore1.c \ 302 303 test/synch/semaphore2.c \ … … 360 361 endif 361 362 363 ## Sources where instrumentation is enabled 364 # 365 366 ifeq ($(CONFIG_TRACE),y) 367 INSTRUMENTED_SOURCES = \ 368 generic/src/adt/btree.c \ 369 generic/src/cpu/cpu.c \ 370 generic/src/ddi/ddi.c \ 371 generic/src/interrupt/interrupt.c \ 372 generic/src/main/main.c \ 373 generic/src/main/kinit.c \ 374 generic/src/proc/the.c \ 375 generic/src/proc/tasklet.c \ 376 generic/src/mm/frame.c \ 377 generic/src/mm/page.c \ 378 generic/src/mm/tlb.c \ 379 generic/src/mm/as.c \ 380 generic/src/mm/slab.c \ 381 generic/src/sysinfo/sysinfo.c \ 382 generic/src/console/kconsole.c 383 else 384 INSTRUMENTED_SOURCES = 385 endif 386 362 387 GENERIC_OBJECTS := $(addsuffix .o,$(basename $(GENERIC_SOURCES))) 363 388 ARCH_OBJECTS := $(addsuffix .o,$(basename $(ARCH_SOURCES))) … … 419 444 420 445 %.o: %.c $(DEPEND) 421 $(CC) $(DEFS) $(CFLAGS) $(EXTRA_FLAGS) $(FPU_NO_CFLAGS) -c -o $@ $<446 $(CC) $(DEFS) $(CFLAGS) $(EXTRA_FLAGS) $(FPU_NO_CFLAGS) $(if $(findstring $<,$(INSTRUMENTED_SOURCES)),$(INSTRUMENTATION)) -c -o $@ $< 422 447 ifeq ($(PRECHECK),y) 423 448 $(JOBFILE) $(JOB) $< $@ cc core $(DEFS) $(CFLAGS) $(EXTRA_FLAGS) $(FPU_NO_CFLAGS)
Note:
See TracChangeset
for help on using the changeset viewer.