Changes in kernel/Makefile [263bda2:510bc07] in mainline


Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • kernel/Makefile

    r263bda2 r510bc07  
    160160        CFLAGS = $(GCC_CFLAGS)
    161161        DEPEND_DEFS = $(DEFS) $(CONFIG_DEFS)
    162         INSTRUMENTATION = -finstrument-functions
    163162endif
    164163
     
    166165        CFLAGS = $(GCC_CFLAGS)
    167166        DEPEND_DEFS = $(DEFS) $(CONFIG_DEFS)
    168         INSTRUMENTATION = -finstrument-functions
    169167endif
    170168
     
    172170        CFLAGS = $(ICC_CFLAGS)
    173171        DEPEND_DEFS = $(DEFS) $(CONFIG_DEFS)
    174         INSTRUMENTATION =
    175172endif
    176173
     
    179176        DEFS += $(CONFIG_DEFS)
    180177        DEPEND_DEFS = $(DEFS)
    181         INSTRUMENTATION =
    182178endif
    183179
     
    185181        CFLAGS = $(CLANG_CFLAGS)
    186182        DEPEND_DEFS = $(DEFS) $(CONFIG_DEFS)
    187         INSTRUMENTATION =
    188183endif
    189184
     
    206201        generic/src/debug/symtab.c \
    207202        generic/src/debug/stacktrace.c \
    208         generic/src/debug/panic.c \
    209         generic/src/debug/debug.c \
    210203        generic/src/interrupt/interrupt.c \
    211204        generic/src/main/main.c \
     
    248241        generic/src/synch/spinlock.c \
    249242        generic/src/synch/condvar.c \
     243        generic/src/synch/rwlock.c \
    250244        generic/src/synch/mutex.c \
    251245        generic/src/synch/semaphore.c \
     
    300294                test/mm/slab1.c \
    301295                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 \
    302301                test/synch/semaphore1.c \
    303302                test/synch/semaphore2.c \
     
    361360endif
    362361
    363 ## Sources where instrumentation is enabled
    364 #
    365 
    366 ifeq ($(CONFIG_LOG),y)
    367 INSTRUMENTED_SOURCES = \
    368         generic/src/cpu/cpu.c \
    369         generic/src/main/kinit.c
    370 endif
    371 
    372362GENERIC_OBJECTS := $(addsuffix .o,$(basename $(GENERIC_SOURCES)))
    373363ARCH_OBJECTS := $(addsuffix .o,$(basename $(ARCH_SOURCES)))
     
    429419
    430420%.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 $@ $<
    432422ifeq ($(PRECHECK),y)
    433423        $(JOBFILE) $(JOB) $< $@ cc core $(DEFS) $(CFLAGS) $(EXTRA_FLAGS) $(FPU_NO_CFLAGS)
Note: See TracChangeset for help on using the changeset viewer.