dthelper: only flag memsize for pi and 512mb boards

This commit is contained in:
Christian Hewitt 2021-01-25 04:23:48 +00:00
parent 5a27620535
commit e5cb1ade46

View File

@ -51,8 +51,7 @@ do_dtflag(){
if [ "${MEMSIZE}" -lt "524288" ]; then
MEMSIZE="-512"
else
MEMSIZE=$(( $MEMSIZE / ( 1024 * 1024 ) + 1 ))
MEMSIZE="-${MEMSIZE}g"
MEMSIZE=""
fi
fi
echo "${DTFLAG}${MEMSIZE}"