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
12 @@ -206,17 +206,42 @@ export TEXT_BASE PLATFORM_CPPFLAGS PLATF
14 #########################################################################
16 +ifndef KBUILD_VERBOSE
19 +ifeq ("$(origin V)", "command line")
20 + KBUILD_VERBOSE:=$(V)
22 +ifeq (,$(findstring s,$(MAKEFLAGS)))
26 +ifneq ($(KBUILD_VERBOSE),0)
28 + @printf " %s %s/%s\n" $(1) $(2) $(3)
35 # Allow boards to use custom optimize flags on a per dir/file basis
36 BCURDIR := $(notdir $(CURDIR))
39 + $(call MESSAGE, [CPP],$(subst $(SRCTREE)/,,$(CURDIR)),$<)
40 $(CPP) $(AFLAGS) $(AFLAGS_$(@F)) $(AFLAGS_$(BCURDIR)) -o $@ $<
42 + $(call MESSAGE, [AS], $(subst $(SRCTREE)/,,$(CURDIR)),$<)
43 $(CC) $(AFLAGS) $(AFLAGS_$(@F)) $(AFLAGS_$(BCURDIR)) -o $@ $< -c
45 + $(call MESSAGE, [CC], $(subst $(SRCTREE)/,,$(CURDIR)),$<)
46 $(CC) $(CFLAGS) $(CFLAGS_$(@F)) $(CFLAGS_$(BCURDIR)) -o $@ $< -c
48 + $(call MESSAGE, [CPP],$(subst $(SRCTREE)/,,$(CURDIR)),$<)
49 $(CPP) $(CFLAGS) $(CFLAGS_$(@F)) $(CFLAGS_$(BCURDIR)) -o $@ $< -c
51 + $(call MESSAGE, [CC], $(subst $(SRCTREE)/,,$(CURDIR)),$<)
52 $(CC) $(CFLAGS) $(CFLAGS_$(@F)) $(CFLAGS_$(BCURDIR)) -o $@ $< -c -S
54 #########################################################################