diff options
| -rw-r--r-- | Makefile | 1 | ||||
| -rwxr-xr-x | scripts/recordmcount.pl | 12 |
2 files changed, 11 insertions, 2 deletions
| @@ -379,6 +379,7 @@ export RCS_TAR_IGNORE := --exclude SCCS --exclude BitKeeper --exclude .svn --exc | |||
| 379 | PHONY += scripts_basic | 379 | PHONY += scripts_basic |
| 380 | scripts_basic: | 380 | scripts_basic: |
| 381 | $(Q)$(MAKE) $(build)=scripts/basic | 381 | $(Q)$(MAKE) $(build)=scripts/basic |
| 382 | $(Q)rm -f .tmp_quiet_recordmcount | ||
| 382 | 383 | ||
| 383 | # To avoid any implicit rule to kick in, define an empty command. | 384 | # To avoid any implicit rule to kick in, define an empty command. |
| 384 | scripts/basic/%: scripts_basic ; | 385 | scripts/basic/%: scripts_basic ; |
diff --git a/scripts/recordmcount.pl b/scripts/recordmcount.pl index a4e2435d4821..f0d14452632b 100755 --- a/scripts/recordmcount.pl +++ b/scripts/recordmcount.pl | |||
| @@ -162,6 +162,11 @@ my $alignment; # The .align value to use for $mcount_section | |||
| 162 | my $section_type; # Section header plus possible alignment command | 162 | my $section_type; # Section header plus possible alignment command |
| 163 | my $can_use_local = 0; # If we can use local function references | 163 | my $can_use_local = 0; # If we can use local function references |
| 164 | 164 | ||
| 165 | # Shut up recordmcount if user has older objcopy | ||
| 166 | my $quiet_recordmcount = ".tmp_quiet_recordmcount"; | ||
| 167 | my $print_warning = 1; | ||
| 168 | $print_warning = 0 if ( -f $quiet_recordmcount); | ||
| 169 | |||
| 165 | ## | 170 | ## |
| 166 | # check_objcopy - whether objcopy supports --globalize-symbols | 171 | # check_objcopy - whether objcopy supports --globalize-symbols |
| 167 | # | 172 | # |
| @@ -179,10 +184,13 @@ sub check_objcopy | |||
| 179 | } | 184 | } |
| 180 | close (IN); | 185 | close (IN); |
| 181 | 186 | ||
| 182 | if (!$can_use_local) { | 187 | if (!$can_use_local && $print_warning) { |
| 183 | print STDERR "WARNING: could not find objcopy version or version " . | 188 | print STDERR "WARNING: could not find objcopy version or version " . |
| 184 | "is less than 2.17.\n" . | 189 | "is less than 2.17.\n" . |
| 185 | "\tLocal function references is disabled.\n"; | 190 | "\tLocal function references are disabled.\n"; |
| 191 | open (QUIET, ">$quiet_recordmcount"); | ||
| 192 | printf QUIET "Disables the warning from recordmcount.pl\n"; | ||
| 193 | close QUIET; | ||
| 186 | } | 194 | } |
| 187 | } | 195 | } |
| 188 | 196 | ||
