tools/firmware-utils/ptgen option to use MB rounding

SVN-Revision: 33218
This commit is contained in:
John Crispin
2012-08-22 09:22:38 +00:00
parent 60e6fcd31b
commit 6c9d20d6e7
2 changed files with 19 additions and 5 deletions

View File

@@ -15,7 +15,7 @@ ROOTFSSIZE="$5"
head=4
sect=63
set `ptgen -o $OUTPUT -h $head -s $sect -t c -p ${BOOTFSSIZE}M -t 83 -p ${ROOTFSSIZE}M`
set `ptgen -o $OUTPUT -h $head -s $sect -l 4096 -t c -p ${BOOTFSSIZE}M -t 83 -p ${ROOTFSSIZE}M`
BOOTOFFSET="$(($1 / 512))"
BOOTSIZE="$(($2 / 512))"