Build bigger images if we have freetype

This commit is contained in:
K. Lange 2018-09-21 13:19:40 +09:00
parent 601c927f0c
commit fd6a513614
3 changed files with 18 additions and 2 deletions

6
.gitignore vendored
View File

@ -27,3 +27,9 @@
/base/usr/python
/base/usr/bin/*
/base/usr/lib/*
# Freetype
/base/usr/include/freetype2
/base/usr/include/ft2build.h
/base/usr/share/aclocal
/base/usr/share/fonts

View File

@ -2,7 +2,9 @@
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
if [ -e "$DIR/../base/usr/python" ]; then
if [ -e "$DIR/../base/usr/share/fonts" ]; then
echo 20000
elif [ -e "$DIR/../base/usr/python" ]; then
echo 11000
else
echo 4096

View File

@ -1,13 +1,21 @@
#!/bin/bash
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
OUT=$1
IN=$2
OUTDIR=`dirname $1`
if [ -e "$DIR/../base/usr/share/fonts" ]; then
SIZE=128
else
SIZE=64
fi
rm -f $OUT
mkdir -p cdrom
fallocate -l 64M $OUT || dd if=/dev/zero bs=1M count=64 of=$OUT
fallocate -l ${SIZE}M $OUT || dd if=/dev/zero bs=1M count=${SIZE} of=$OUT
mkfs.fat -s 1 -S 2048 $OUT
#echo "Turning $IN into $OUT"