diff options
author | James Tunnicliffe <james.tunnicliffe@linaro.org> | 2012-08-24 14:42:39 +0100 |
---|---|---|
committer | James Tunnicliffe <james.tunnicliffe@linaro.org> | 2012-08-24 14:42:39 +0100 |
commit | 23162f5f6c0c1816df8b0afc1d6f142459e0eca3 (patch) | |
tree | 46f739cc357f7641f88d9b5677e2930a399d9794 /node | |
parent | 98a2f181e60ac221020bb863e97610bc9dc4f010 (diff) |
ramdisk_size defaults to 0
Diffstat (limited to 'node')
-rwxr-xr-x | node/build | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -63,6 +63,10 @@ mkdir build ramdisk_size=$(get_ramdisk_size $2) +if [ -z "$ramdisk_size" ]; then + ramdisk_size=0 +fi + # Put build/* on a ramdisk to speed up build if [ -z "$ramdisk_size" -o "$ramdisk_size" != "0" ]; then mem_total=`cat /proc/meminfo | grep MemTotal | sed -s 's/[^0-9]*\([0-9]*\) kB/\1/'` |