Build a bigger image if Python is installed

This commit is contained in:
K. Lange 2018-06-25 21:49:06 +09:00
parent 80be73d365
commit 334d31e1d4
2 changed files with 11 additions and 1 deletions

View File

@ -163,7 +163,7 @@ endif
# Ramdisk
cdrom/ramdisk.img: ${APPS_X} ${LIBS_X} base/lib/ld.so $(shell find base) Makefile | dirs
genext2fs -B 4096 -d base -D util/devtable -U -b 4096 -N 2048 cdrom/ramdisk.img
genext2fs -B 4096 -d base -D util/devtable -U -b `util/calc-size.sh` -N 2048 cdrom/ramdisk.img
# CD image

10
util/calc-size.sh Executable file
View File

@ -0,0 +1,10 @@
#!/bin/bash
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
if [ -e "$DIR/../base/usr/python" ]; then
echo 22000
else
echo 4096
fi