Skip to content

Commit

Permalink
Reactivate the tracing feature
Browse files Browse the repository at this point in the history
This was lost sometime in the Kbuild conversion. Add it back.

Check that the trace test now passes:

$ ./test/trace/test-trace.sh
Simple trace test / sanity check using sandbox

/tmp/filemHKPGw
Build sandbox
O=sandbox FTRACE=1
  GEN     /home/sjg/c/src/third_party/u-boot/files/sandbox/Makefile
Configuring for sandbox board...
Check results
Test passed

Signed-off-by: Simon Glass <[email protected]>
  • Loading branch information
sjg20 authored and trini committed Sep 24, 2014
1 parent 214b3f3 commit b845052
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions config.mk
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,10 @@ ifdef BOARD
sinclude $(srctree)/board/$(BOARDDIR)/config.mk # include board specific rules
endif

ifdef FTRACE
PLATFORM_CPPFLAGS += -finstrument-functions -DFTRACE
endif

#########################################################################

RELFLAGS := $(PLATFORM_RELFLAGS)
Expand Down

0 comments on commit b845052

Please sign in to comment.