With !KBUILD_VERBOSE output, you can't tell whether a CC or LD line is
for a module or for the kernel proper.  Sure, most people probably
don't care, but *I* do.  Hence this patch.  Output:

  CC      vmlinux-object.o
  CC [M]  standalone-module.o
  CC (M)  partial-module.o
  LD      built-in.o
  LD [M]  composite-object.o

Does not support CPP or CC -S ... do those even work?

Peter

--- 2.5.45/scripts/Makefile.build~      2002-11-03 07:44:20.000000000 -0600
+++ 2.5.45/scripts/Makefile.build       2002-11-03 10:53:09.000000000 -0600
@@ -68,6 +68,8 @@
          -DKBUILD_BASENAME=$(subst $(comma),_,$(subst -,_,$(*F))) \
          $(export_flags) 
 
+quiet_modtag = $(if $(findstring $@,$(obj-m)),[M],$(if $(findstring 
+$@,$(real-objs-m)),(M),   ))
+
 quiet_cmd_cc_s_c = CC      $@
 cmd_cc_s_c       = $(CC) $(c_flags) -S -o $@ $< 
 
@@ -80,7 +82,7 @@
 %.i: %.c FORCE
        $(call if_changed_dep,cc_i_c)
 
-quiet_cmd_cc_o_c = CC      $@
+quiet_cmd_cc_o_c = CC $(quiet_modtag)  $@
 cmd_cc_o_c       = $(CC) $(c_flags) -c -o $@ $<
 
 %.o: %.c FORCE
@@ -109,7 +111,7 @@
 %.s: %.S FORCE
        $(call if_changed_dep,as_s_S)
 
-quiet_cmd_as_o_S = AS      $@
+quiet_cmd_as_o_S = AS $(quiet_modtag)  $@
 cmd_as_o_S       = $(CC) $(a_flags) -c -o $@ $<
 
 %.o: %.S FORCE
@@ -156,7 +158,7 @@
 # Rule to link composite objects
 #
 
-quiet_cmd_link_multi = LD      $@
+quiet_cmd_link_multi = LD $(quiet_modtag)  $@
 cmd_link_multi = $(LD) $(LDFLAGS) $(EXTRA_LDFLAGS) -r -o $@ $(filter $(addprefix 
$(obj)/,$($(subst $(obj)/,,$(@:.o=-objs))) $($(subst $(obj)/,,$(@:.o=-y)))),$^)
 
 # We would rather have a list of rules like


-------------------------------------------------------
This SF.net email is sponsored by: ApacheCon, November 18-21 in
Las Vegas (supported by COMDEX), the only Apache event to be
fully supported by the ASF. http://www.apachecon.com
_______________________________________________
kbuild-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/kbuild-devel

Reply via email to