Merge pull request #5033 from chewitt/dthelper

dthelper: only flag memsize for pi and 512mb boards
This commit is contained in:
CvH 2021-01-26 18:19:40 +01:00 committed by GitHub
commit 5b97b230aa
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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}"