Index: Ltibutils.pm =================================================================== RCS file: /sources/ltib/ltib/bin/Ltibutils.pm,v retrieving revision 1.9 diff -u -u -r1.9 Ltibutils.pm --- Ltibutils.pm 2 Feb 2007 17:15:57 -0000 1.9 +++ Ltibutils.pm 1 Aug 2007 15:08:13 -0000 @@ -786,6 +786,11 @@ $endian = "-b" if $pcf->{ENDIAN} =~ /b/i; warn "ENDIAN=$pcf->{ENDIAN}, endian=$endian\n" if $main::cf->{verbose}; + # calculate the size to pad out the jffs2 fs. If padding was asked + # for then use the actual FS size, otherwise leave it blank. + my $pad_opt = '-p'; + $pad_opt = '--pad=' . ($fs_size * 1024) if $pcf->{DEPLOYMENT_PADDING_KB}; + system_nb(<{DEPLOYMENT_JFFS2}" = "y" ] then - mkfs.jffs2 -n -p -D $dev_tab -U $endian -e $pcf->{DEPLOYMENT_ERASE_BLOCK_SIZE} -d $stage -o $tdir/rootfs.jffs2 + mkfs.jffs2 -n $pad_opt -D $dev_tab -U $endian -e $pcf->{DEPLOYMENT_ERASE_BLOCK_SIZE} -d $stage -o $tdir/rootfs.jffs2 fi if [ "$pcf->{DEPLOYMENT_CRAMFS}" = "y" ] then