From: Peter O. <obe...@us...> - 2009-01-22 17:12:08
|
Update of /cvsroot/ltp/utils/analysis/gcov-kernel In directory ddv4jf1.ch3.sourceforge.com:/tmp/cvs-serv7706 Modified Files: linux-2.6.28-gcov.patch Log Message: gcov-kernel: fixed problem when compiling without O= parameter - coverage measurement was not available when kernel was compiled without O= parameter - files where not found by gcov - solution: change kbuild to always use absolute paths Index: linux-2.6.28-gcov.patch =================================================================== RCS file: /cvsroot/ltp/utils/analysis/gcov-kernel/linux-2.6.28-gcov.patch,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** linux-2.6.28-gcov.patch 12 Jan 2009 13:54:17 -0000 1.1 --- linux-2.6.28-gcov.patch 22 Jan 2009 17:11:58 -0000 1.2 *************** *** 1,4 **** # ! # gcov-kernel-2.6.28-1 (2009-01-12) # Provides GCOV code coverage infrastructure for Linux kernel 2.6.28. # See http://ltp.sourceforge.net/coverage/gcov.php for details. --- 1,4 ---- # ! # gcov-kernel-2.6.28-2 (2009-01-22) # Provides GCOV code coverage infrastructure for Linux kernel 2.6.28. # See http://ltp.sourceforge.net/coverage/gcov.php for details. *************** *** 25,31 **** # lib/Kconfig.debug | 1 # scripts/Kbuild.include | 1 ! # scripts/Makefile.build | 3 # scripts/Makefile.lib | 6 ! # 17 files changed, 2829 insertions(+), 8 deletions(-) # --- 25,31 ---- # lib/Kconfig.debug | 1 # scripts/Kbuild.include | 1 ! # scripts/Makefile.build | 7 # scripts/Makefile.lib | 6 ! # 17 files changed, 2832 insertions(+), 9 deletions(-) # *************** *** 3033,3042 **** --- linux-2.6.28.orig/scripts/Makefile.build +++ linux-2.6.28/scripts/Makefile.build ! @@ -182,7 +182,8 @@ else # replace the unresolved symbols __crc_exported_symbol with # the actual value of the checksum generated by genksyms -cmd_cc_o_c = $(CC) $(c_flags) -c -o $(@D)/.tmp_$(@F) $< ! +cmd_cc_o_c = $(CC) $(c_flags) -c -o $(@D)/$(@F) $< ; \ + mv -f $(@D)/$(@F) $(@D)/.tmp_$(@F) cmd_modversions = \ --- 3033,3053 ---- --- linux-2.6.28.orig/scripts/Makefile.build +++ linux-2.6.28/scripts/Makefile.build ! @@ -167,7 +167,8 @@ $(obj)/%.symtypes : $(src)/%.c FORCE ! quiet_cmd_cc_o_c = CC $(quiet_modtag) $@ ! ! ifndef CONFIG_MODVERSIONS ! -cmd_cc_o_c = $(CC) $(c_flags) -c -o $@ $< ! +cmd_cc_o_c = $(CC) $(c_flags) -c -o $@ \ ! + $(if $(filter-out /%,$<),$(objtree)/$<,$<) ! ! else ! # When module versioning is enabled the following steps are executed: ! @@ -182,7 +183,9 @@ else # replace the unresolved symbols __crc_exported_symbol with # the actual value of the checksum generated by genksyms -cmd_cc_o_c = $(CC) $(c_flags) -c -o $(@D)/.tmp_$(@F) $< ! +cmd_cc_o_c = $(CC) $(c_flags) -c -o $(@D)/$(@F) \ ! + $(if $(filter-out /%,$<),$(objtree)/$<,$<) ; \ + mv -f $(@D)/$(@F) $(@D)/.tmp_$(@F) cmd_modversions = \ |