Staging
v0.5.2
https://github.com/torvalds/linux
Revision f20f258603ebc5da91e76884cf0c0d7ac9804b1c authored by Borislav Petkov on 05 October 2008, 16:23:27 UTC, committed by Bartlomiej Zolnierkiewicz on 05 October 2008, 16:23:27 UTC
This one fixes http://bugzilla.kernel.org/show_bug.cgi?id=11602.

A more generic fix for drives which cannot autoclose tray will follow.

Signed-off-by: Borislav Petkov <petkovbb@gmail.com>
Cc: Jens Axboe <jens.axboe@oracle.com>
[bart: add an extra parentheses for consistency with the rest of kernel code]
Signed-off-by: Bartlomiej Zolnierkiewicz <bzolnier@gmail.com>
1 parent fec6ed1
Raw File
Tip revision: f20f258603ebc5da91e76884cf0c0d7ac9804b1c authored by Borislav Petkov on 05 October 2008, 16:23:27 UTC
ide-cd: temporary tray close fix
Tip revision: f20f258
mkuboot.sh
#!/bin/bash

#
# Build U-Boot image when `mkimage' tool is available.
#

MKIMAGE=$(type -path "${CROSS_COMPILE}mkimage")

if [ -z "${MKIMAGE}" ]; then
	MKIMAGE=$(type -path mkimage)
	if [ -z "${MKIMAGE}" ]; then
		# Doesn't exist
		echo '"mkimage" command not found - U-Boot images will not be built' >&2
		exit 0;
	fi
fi

# Call "mkimage" to create U-Boot image
${MKIMAGE} "$@"
back to top