From 3cd77f54168a5cb4b6f65fb685360b51c5b9ae40 Mon Sep 17 00:00:00 2001 From: Ruslan Bukin Date: Wed, 10 Aug 2016 13:49:17 +0000 Subject: [PATCH] Consider CROSS_BINUTILS_PREFIX environment variable so we use correct objdump. Sponsored by: DARPA, AFRL Sponsored by: HEIF5 --- sys/tools/embed_mfs.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys/tools/embed_mfs.sh b/sys/tools/embed_mfs.sh index 3f20257b7a58..66c50c2da111 100644 --- a/sys/tools/embed_mfs.sh +++ b/sys/tools/embed_mfs.sh @@ -36,7 +36,7 @@ mfs_size=`stat -f '%z' $2 2> /dev/null` # If we can't determine MFS image size - bail. [ -z ${mfs_size} ] && echo "Can't determine MFS image size" && exit 1 -sec_info=`objdump -h $1 2> /dev/null | grep " oldmfs "` +sec_info=`${CROSS_BINUTILS_PREFIX}objdump -h $1 2> /dev/null | grep " oldmfs "` # If we can't find the mfs section within the given kernel - bail. [ -z "${sec_info}" ] && echo "Can't locate mfs section within kernel" && exit 1