tools build: Add CFLAGS_REMOVE_* support
authorJiri Olsa <jolsa@kernel.org>
Wed, 2 Nov 2016 13:35:47 +0000 (14:35 +0100)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Mon, 14 Nov 2016 14:37:25 +0000 (11:37 -0300)
commit2ec8107d8e0d1d285b2bbf1999e7f4e46b6b535b
treea16750cef61a1b5449b1814c95e76aab88b2aeb5
parent699c12a7cca376d16f75672f9047faa37b184eda
tools build: Add CFLAGS_REMOVE_* support

Adding support to remove options from final CFLAGS for both object file
and build target. It's now possible to remove CFLAGS options like:

  CFLAGS_REMOVE_krava.o += -Wstrict-prototypes

Committer notes:

This comes from the kernel's kbuild infrastructure, the subset that is
supported in tools/ is being documented at tools/build/Documentation/Build.txt.

Signed-off-by: Jiri Olsa <jolsa@kernel.org>
Tested-by: Stephane Eranian <eranian@google.com>
Cc: Andi Kleen <andi@firstfloor.org>
Cc: David Ahern <dsahern@gmail.com>
Cc: Namhyung Kim <namhyung@kernel.org>
Cc: Peter Zijlstra <a.p.zijlstra@chello.nl>
Cc: William Cohen <wcohen@redhat.com>
Link: http://lkml.kernel.org/r/1478093749-5602-2-git-send-email-jolsa@kernel.org
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
tools/build/Build.include
tools/build/Documentation/Build.txt