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,42 @@ 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 $(CPP) $(AFLAGS) $(AFLAGS_$(@F)) $(AFLAGS_$(BCURDIR)) -o $@ $<
43 + $(call MESSAGE, [AS], $(subst $(SRCTREE)/,,$(CURDIR)),$<)
44 $(CC) $(AFLAGS) $(AFLAGS_$(@F)) $(AFLAGS_$(BCURDIR)) -o $@ $< -c
46 + $(call MESSAGE, [CC], $(subst $(SRCTREE)/,,$(CURDIR)),$<)
47 $(CC) $(CFLAGS) $(CFLAGS_$(@F)) $(CFLAGS_$(BCURDIR)) -o $@ $< -c
49 + $(call MESSAGE, [CPP],$(subst $(SRCTREE)/,,$(CURDIR)),$<)
50 $(CPP) $(CFLAGS) $(CFLAGS_$(@F)) $(CFLAGS_$(BCURDIR)) -o $@ $< -c
52 + $(call MESSAGE, [CC], $(subst $(SRCTREE)/,,$(CURDIR)),$<)
53 $(CC) $(CFLAGS) $(CFLAGS_$(@F)) $(CFLAGS_$(BCURDIR)) -o $@ $< -c -S
55 #########################################################################