[package] busybox: update to v1.16.1 (based on v1.16.0 update patch from Peter Wagner)
[openwrt.git] / package / uboot-lantiq / patches / 000-build-infos.patch
1 Add output like in linux kernel for current compiled file
2 Used normaly in combination with make option -s
3
4 Like in following example:
5
6 $ make -s V=1
7 [CC] tools/img2srec.c
8 [CC] tools/bmp_logo.c
9 [CC] examples/hello_world.c
10 --- a/config.mk
11 +++ b/config.mk
12 @@ -206,17 +206,42 @@ export TEXT_BASE PLATFORM_CPPFLAGS PLATF
13
14 #########################################################################
15
16 +ifndef KBUILD_VERBOSE
17 + KBUILD_VERBOSE:=0
18 +endif
19 +ifeq ("$(origin V)", "command line")
20 + KBUILD_VERBOSE:=$(V)
21 +endif
22 +ifeq (,$(findstring s,$(MAKEFLAGS)))
23 + KBUILD_VERBOSE:=0
24 +endif
25 +
26 +ifneq ($(KBUILD_VERBOSE),0)
27 + define MESSAGE
28 + @printf " %s %s/%s\n" $(1) $(2) $(3)
29 + endef
30 +else
31 + define MESSAGE
32 + endef
33 +endif
34 +
35 # Allow boards to use custom optimize flags on a per dir/file basis
36 BCURDIR := $(notdir $(CURDIR))
37 +
38 $(obj)%.s: %.S
39 + $(call MESSAGE, [CPP],$(subst $(SRCTREE)/,,$(CURDIR)),$<)
40 $(CPP) $(AFLAGS) $(AFLAGS_$(@F)) $(AFLAGS_$(BCURDIR)) -o $@ $<
41 $(obj)%.o: %.S
42 + $(call MESSAGE, [AS], $(subst $(SRCTREE)/,,$(CURDIR)),$<)
43 $(CC) $(AFLAGS) $(AFLAGS_$(@F)) $(AFLAGS_$(BCURDIR)) -o $@ $< -c
44 $(obj)%.o: %.c
45 + $(call MESSAGE, [CC], $(subst $(SRCTREE)/,,$(CURDIR)),$<)
46 $(CC) $(CFLAGS) $(CFLAGS_$(@F)) $(CFLAGS_$(BCURDIR)) -o $@ $< -c
47 $(obj)%.i: %.c
48 + $(call MESSAGE, [CPP],$(subst $(SRCTREE)/,,$(CURDIR)),$<)
49 $(CPP) $(CFLAGS) $(CFLAGS_$(@F)) $(CFLAGS_$(BCURDIR)) -o $@ $< -c
50 $(obj)%.s: %.c
51 + $(call MESSAGE, [CC], $(subst $(SRCTREE)/,,$(CURDIR)),$<)
52 $(CC) $(CFLAGS) $(CFLAGS_$(@F)) $(CFLAGS_$(BCURDIR)) -o $@ $< -c -S
53
54 #########################################################################
This page took 0.061272 seconds and 5 git commands to generate.