diff options
author | Felix Fietkau <nbd@openwrt.org> | 2008-06-28 17:54:44 +0000 |
---|---|---|
committer | Felix Fietkau <nbd@openwrt.org> | 2008-06-28 17:54:44 +0000 |
commit | 2b5ce63303d50dc635aa8a7aa0953a546104c549 (patch) | |
tree | 9b5dfece6eeb36a0169bab035f005ed18b2bc682 /target/linux/x86/image/gen_image.sh | |
parent | 04453591af91b500fb1d7bcec9720942ad0eca81 (diff) | |
download | upstream-2b5ce63303d50dc635aa8a7aa0953a546104c549.tar.gz upstream-2b5ce63303d50dc635aa8a7aa0953a546104c549.tar.bz2 upstream-2b5ce63303d50dc635aa8a7aa0953a546104c549.zip |
x86: don't attempt to compile grub on darwin
SVN-Revision: 11599
Diffstat (limited to 'target/linux/x86/image/gen_image.sh')
-rwxr-xr-x | target/linux/x86/image/gen_image.sh | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/target/linux/x86/image/gen_image.sh b/target/linux/x86/image/gen_image.sh index d48e3720dc..5d4c0dd34c 100755 --- a/target/linux/x86/image/gen_image.sh +++ b/target/linux/x86/image/gen_image.sh @@ -28,10 +28,13 @@ ROOTFSSIZE="$(($4 / 512))" BLOCKS="$((($KERNELSIZE / 2) - 1))" -genext2fs -d "$KERNELDIR" -b "$BLOCKS" "$OUTPUT.kernel" -dd if="$OUTPUT.kernel" of="$OUTPUT" bs=512 seek="$KERNELOFFSET" conv=notrunc [ -n "$PADDING" ] && dd if=/dev/zero of="$OUTPUT" bs=512 seek="$ROOTFSOFFSET" conv=notrunc count="$ROOTFSSIZE" dd if="$ROOTFSIMAGE" of="$OUTPUT" bs=512 seek="$ROOTFSOFFSET" conv=notrunc + +[ -n "$NOGRUB" ] && exit 0 + +genext2fs -d "$KERNELDIR" -b "$BLOCKS" "$OUTPUT.kernel" +dd if="$OUTPUT.kernel" of="$OUTPUT" bs=512 seek="$KERNELOFFSET" conv=notrunc #rm -f "$OUTPUT.kernel" which chpax >/dev/null && chpax -zp $(which grub) |