On 2015-08-20 04:03, RaphaelWu@xxxxxxxxxxxxxx wrote: > Hi, > Recently I wrote a test module, within my module I need remove -pg flag > which is defined by host Makefile (which enable -pg, ftrace function). > I used a trick in my module makefile KBUILD_CFLAGS := $(subst -pg,,$(KBUILD_CFLAGS)), You are probably looking for CLFAGS_REMOVE_<file.o>. Michal -- To unsubscribe from this list: send the line "unsubscribe linux-kbuild" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html