mirror of
https://github.com/openwrt/openwrt.git
synced 2024-12-29 10:08:59 +00:00
a1058204d0
Rework board detection, separate board specific code into its own file. As a result we also change the way rdc images are generated. Support for board which required binary tools, like AMIT are dropped. Patch by Bernhard Loos. SVN-Revision: 20294
12 lines
225 B
Perl
Executable File
12 lines
225 B
Perl
Executable File
#!/usr/bin/perl
|
|
|
|
open (bzimg, @ARGV[0]);
|
|
while (<bzimg>) { $i .= $_; }
|
|
$i .= pack "v", -(unpack "%v*", $i);
|
|
print "CSYS";
|
|
print pack("V", length($i));
|
|
print pack("V", 0);
|
|
print "WRRM";
|
|
print pack("V", length($i));
|
|
print $i;
|