1 Add output like in linux kernel for current compiled file
2 Used normaly in combination with make option -s
4 Like in following example:
9 [CC] examples/hello_world.c
13 @@ -234,17 +234,47 @@ export TEXT_BASE PLATFORM_CPPFLAGS PLATF
15 #########################################################################
17 +ifndef KBUILD_VERBOSE
20 +ifeq ("$(origin V)", "command line")
21 + KBUILD_VERBOSE:=$(V)
23 +ifeq (,$(findstring s,$(MAKEFLAGS)))
27 +ifneq ($(KBUILD_VERBOSE),0)
29 + @printf " %s %s/%s\n" $(1) $(2) $(3)
36 # Allow boards to use custom optimize flags on a per dir/file basis
37 BCURDIR := $(notdir $(CURDIR))
40 + $(call MESSAGE, [CPP],$(subst $(SRCTREE)/,,$(CURDIR)),$<)
41 + #echo $(CPP) $(AFLAGS) $(AFLAGS_$(@F)) $(AFLAGS_$(BCURDIR)) -o $@ $<
42 $(CPP) $(AFLAGS) $(AFLAGS_$(@F)) $(AFLAGS_$(BCURDIR)) -o $@ $<
44 + $(call MESSAGE, [AS], $(subst $(SRCTREE)/,,$(CURDIR)),$<)
45 + #echo $(CC) $(AFLAGS) $(AFLAGS_$(@F)) $(AFLAGS_$(BCURDIR)) -o $@ $< -c
46 $(CC) $(AFLAGS) $(AFLAGS_$(@F)) $(AFLAGS_$(BCURDIR)) -o $@ $< -c
48 + $(call MESSAGE, [CC], $(subst $(SRCTREE)/,,$(CURDIR)),$<)
49 + #echo $(CC) $(CFLAGS) $(CFLAGS_$(@F)) $(CFLAGS_$(BCURDIR)) -o $@ $< -c
50 $(CC) $(CFLAGS) $(CFLAGS_$(@F)) $(CFLAGS_$(BCURDIR)) -o $@ $< -c
52 + $(call MESSAGE, [CPP],$(subst $(SRCTREE)/,,$(CURDIR)),$<)
53 + #echo $(CPP) $(CFLAGS) $(CFLAGS_$(@F)) $(CFLAGS_$(BCURDIR)) -o $@ $< -c
54 $(CPP) $(CFLAGS) $(CFLAGS_$(@F)) $(CFLAGS_$(BCURDIR)) -o $@ $< -c
56 + $(call MESSAGE, [CC], $(subst $(SRCTREE)/,,$(CURDIR)),$<)
57 + #echo $(CC) $(CFLAGS) $(CFLAGS_$(@F)) $(CFLAGS_$(BCURDIR)) -o $@ $< -c -S
58 $(CC) $(CFLAGS) $(CFLAGS_$(@F)) $(CFLAGS_$(BCURDIR)) -o $@ $< -c -S
60 #########################################################################