Skip to content
Snippets Groups Projects
Commit 516816b1 authored by Eduardo Piva's avatar Eduardo Piva Committed by Pekka Enberg
Browse files

check-image-size: check if enough space exists for kernel decompression


This script is called from build.mk to check if enough space exists for kernel
decompression. If not, break the build.

Signed-off-by: default avatarEduardo Piva <efpiva@gmail.com>
Signed-off-by: default avatarPekka Enberg <penberg@cloudius-systems.com>
parent c5057d56
No related branches found
No related tags found
No related merge requests found
#!/bin/bash
#
# Copyright (C) 2014 Eduardo Piva
#
# This work is open source software, licensed under the terms of the
# BSD license as described in the LICENSE file in the top-level directory.
#
if [ "$#" -ne 2 ]; then
echo "usage: $0 file maxsize"
exit 1
fi
if [ $(ls -l "$1" | cut -d " " -f 5) -ge "$2" ]; then
echo "$1 is greater than $2, needed to uncompress kernel"
echo "Change arch/x64/boot16.S and arch/x65/lzloader.ld "
echo " in order to have more available space for the kernel. "
exit 1
else
exit 0
fi
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment