Consider CROSS_BINUTILS_PREFIX environment variable so we use correct

objdump.

Sponsored by:	DARPA, AFRL
Sponsored by:	HEIF5
This commit is contained in:
Ruslan Bukin 2016-08-10 13:49:17 +00:00
parent 49c394a970
commit 3cd77f5416
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=303915

View File

@ -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