uboot: (firmwareOdroidC2/C4) don't invoke patch tool, use patches = [] instead
https://github.com/NixOS/nixpkgs/blob/master/pkgs/stdenv/generic/setup.sh#L948 this can do it nicely. Signed-off-by: Anton Arapov <anton@deadbeef.mx>
This commit is contained in:
commit
56de2bcd43
30691 changed files with 3076956 additions and 0 deletions
32
pkgs/build-support/mono-dll-fixer/dll-fixer.pl
Normal file
32
pkgs/build-support/mono-dll-fixer/dll-fixer.pl
Normal file
|
|
@ -0,0 +1,32 @@
|
|||
#! @perl@ -w
|
||||
|
||||
use strict;
|
||||
|
||||
my @paths = split ' ', $ENV{"ALL_INPUTS"};
|
||||
|
||||
open IN, "<$ARGV[0]" or die;
|
||||
open OUT, ">$ARGV[0].tmp" or die;
|
||||
|
||||
while (<IN>) {
|
||||
# !!! should use a real XML library here.
|
||||
if (!/<dllmap dll="(.*)" target="(.*)"\/>/) {
|
||||
print OUT;
|
||||
next;
|
||||
}
|
||||
my $dll = $1;
|
||||
my $target = $2;
|
||||
|
||||
foreach my $path (@paths) {
|
||||
my $fullPath = "$path/lib/$target";
|
||||
if (-e "$fullPath") {
|
||||
$target = $fullPath;
|
||||
last;
|
||||
}
|
||||
}
|
||||
|
||||
print OUT " <dllmap dll=\"$dll\" target=\"$target\"/>\n";
|
||||
}
|
||||
|
||||
close IN;
|
||||
|
||||
rename "$ARGV[0].tmp", "$ARGV[0]" or die "cannot rename $ARGV[0]";
|
||||
Loading…
Add table
Add a link
Reference in a new issue