Build a bigger image if Python is installed
This commit is contained in:
parent
80be73d365
commit
334d31e1d4
2
Makefile
2
Makefile
@ -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
10
util/calc-size.sh
Executable 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
|
||||
|
Loading…
Reference in New Issue
Block a user