← Commit list

9a990aaba

Rob Landley
Rob Landley
2006-06-02
SOURCE BUG Duration: 48s

Subject

Patch from Atsushi Nemoto: This patch make depmod.pl more robust in cross environment.  If native nm did not recognize target's object, you can override it with NM environment variable.

SOURCE BUG

This commit was genuinely broken at the time (not related to our build system): scripts/config/mkconfigs.c (2005-08-01 - 2006-10-05 arasi) uretilen bbconfigopts.h icine .config satirlarini kacissiz, ham newline'larla gömüyordu - gecerli C degildi, busybox'un kendi bb_mkdep araci bile parse edemiyordu (7d219aab7 ile duzeltildi, mkconfigs shell scripte cevrildi)

→ Bu hatanin tam hikayesini ve duzeltme diffini gor

Binary

No binary (build failed)

Architecture & Compiler Flags

Architecture: x86_64-linux-gnu Compiler: gcc (Ubuntu 11.4.0-1ubuntu1~22.04.3) 11.4.0

—

Build Log

(log yok)

Commit Diff GitHub →

examples/depmod.pl+3 -2
@@ -25,6 +25,7 @@ my $kernelsyms="";
my $stdout=0;
my $verbose=0;
my $help=0;
+my $nm = $ENV{'NM'} || "nm";
# more globals
my (@liblist) = ();
@@ -104,7 +105,7 @@ foreach my $obj ( @liblist ){
warn "\nMODULE = $tgtname\n" if $verbose;
# get a list of symbols
- my @output=`nm $obj`;
+ my @output=`$nm $obj`;
build_ref_tables($tgtname, \@output, $exp, $dep);
}
@@ -112,7 +113,7 @@ foreach my $obj ( @liblist ){
# vmlinux is a special name that is only used to resolve symbols
my $tgtname = 'vmlinux';
-my @output = $kernelsyms ? `cat $kernelsyms` : `nm $kernel`;
+my @output = $kernelsyms ? `cat $kernelsyms` : `$nm $kernel`;
warn "\nMODULE = $tgtname\n" if $verbose;
build_ref_tables($tgtname, \@output, $exp, $dep);