aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/rdc/image/mkimg_sitecom.pl
diff options
context:
space:
mode:
authorFlorian Fainelli <florian@openwrt.org>2010-03-18 23:35:21 +0000
committerFlorian Fainelli <florian@openwrt.org>2010-03-18 23:35:21 +0000
commita1058204d0ad9e3cd5f46c6adcf6a0cf7b408176 (patch)
treebaa9919e6eaaa00c545b1b80100512b483267ab5 /target/linux/rdc/image/mkimg_sitecom.pl
parent66dc3ee0c9a8eae18cd7baf13add8fe73ea217d6 (diff)
downloadupstream-a1058204d0ad9e3cd5f46c6adcf6a0cf7b408176.tar.gz
upstream-a1058204d0ad9e3cd5f46c6adcf6a0cf7b408176.tar.bz2
upstream-a1058204d0ad9e3cd5f46c6adcf6a0cf7b408176.zip
rework board detection
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
Diffstat (limited to 'target/linux/rdc/image/mkimg_sitecom.pl')
-rwxr-xr-xtarget/linux/rdc/image/mkimg_sitecom.pl6
1 files changed, 0 insertions, 6 deletions
diff --git a/target/linux/rdc/image/mkimg_sitecom.pl b/target/linux/rdc/image/mkimg_sitecom.pl
index 4dd4a398cd..cfd5e652f0 100755
--- a/target/linux/rdc/image/mkimg_sitecom.pl
+++ b/target/linux/rdc/image/mkimg_sitecom.pl
@@ -1,17 +1,11 @@
#!/usr/bin/perl
-$bzimgsize = -s @ARGV[0];
-$padding = 4 - ($bzimgsize + 2) % 4;
-if ($padding == 4) {
- $padding = 0; }
open (bzimg, @ARGV[0]);
while (<bzimg>) { $i .= $_; }
-$i .= "\0"x$padding;
$i .= pack "v", -(unpack "%v*", $i);
print "CSYS";
print pack("V", length($i));
print pack("V", 0);
-#-s @ARGV[1]
print "WRRM";
print pack("V", length($i));
print $i;