Skip to content

Create a CFLAGS_REMOVE for ftrace

Steven Rostedt linux-kbuild lkml 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest4 patches 1 replyIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/4kbuild: Create new CFLAGS_REMOVE_(basename).o optionscripts/Makefile.lib+2 -10 replies
2/4ftrace: use the new kbuild CFLAGS_REMOVE for kernel directorykernel/Makefile+9 -50 replies
3/4ftrace: use the new kbuild CFLAGS_REMOVE for lib directorylib/Makefile+4 -40 replies
4/4ftrace: use the new kbuild CFLAGS_REMOVE for x86/kernel directoryarch/x86/kernel/Makefile+3 -40 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 0/4] Create a CFLAGS_REMOVE for ftrace

Recently David Miller ported ftrace over to the sparc64. When I mentioned to him a way to remove the "notrace" from all the functions in some files done by using a dirty little hack, David (correctly) called it "Makefile turd" and told us to stop doing that.

I then asked if a CFLAGS_REMOVE_foo.o = -pg would be more pleasing, and he agreed.

This patch series starts out by creating a CFLAGS_REMOVE_(basetarget).o that removes options from CFLAGS to compile a target file.

The rest of the patches clean up the Makefile turd with this variant.

Note, I left the turd in the trace directory itself, just because (almost) all the files there should not be traced. But that's a special directory, and this patch series keeps the sewage in one place.

-- Steve