]> git.wh0rd.org - patches.git/blob - check-cross-compile-mkimage.patch
more random patches. who knows.
[patches.git] / check-cross-compile-mkimage.patch
1 diff --git a/scripts/mkuboot.sh b/scripts/mkuboot.sh
2 index 52a17ab..4b06c5e 100755
3 --- a/scripts/mkuboot.sh
4 +++ b/scripts/mkuboot.sh
5 @@ -4,12 +4,15 @@
6 # Build U-Boot image when `mkimage' tool is available.
7 #
8
9 -MKIMAGE=$(type -path mkimage)
10 +MKIMAGE=$(type -path ${CROSS_COMPILE}mkimage)
11
12 if [ -z "${MKIMAGE}" ]; then
13 - # Doesn't exist
14 - echo '"mkimage" command not found - U-Boot images will not be built' >&2
15 - exit 0;
16 + MKIMAGE=$(type -path mkimage)
17 + if [ -z "${MKIMAGE}" ]; then
18 + # Doesn't exist
19 + echo '"mkimage" command not found - U-Boot images will not be built' >&2
20 + exit 0;
21 + fi
22 fi
23
24 # Call "mkimage" to create U-Boot image