CFLS2 fixes: groff and file are optional in the cross-tools phase. No need to build if recent version on the host
This commit is contained in:
parent
623643ef9e
commit
0e97a6abe3
1 changed files with 11 additions and 2 deletions
|
@ -129,7 +129,6 @@ EOF
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
#-----------------------------#
|
#-----------------------------#
|
||||||
cross_tools_Makefiles() { #
|
cross_tools_Makefiles() { #
|
||||||
#-----------------------------#
|
#-----------------------------#
|
||||||
|
@ -140,11 +139,21 @@ cross_tools_Makefiles() { #
|
||||||
this_script=`basename $file`
|
this_script=`basename $file`
|
||||||
#
|
#
|
||||||
# Skip this script...
|
# Skip this script...
|
||||||
|
# NOTE.. the book indicated you only needed to install groff or file if the host
|
||||||
|
# had older versions. The packages would be installed in the target directory
|
||||||
|
# and not the host.
|
||||||
case $this_script in
|
case $this_script in
|
||||||
*cflags* | *variables* ) # work done in host_prep_Makefiles
|
*cflags* | *variables* ) # work done in host_prep_Makefiles
|
||||||
continue; ;;
|
;;
|
||||||
|
*file ) FileVer=`file --version | head -n1 | cut -d " " -f1`
|
||||||
|
[[ "$FileVer" = "file-4.17" ]] && continue
|
||||||
|
;;
|
||||||
|
*groff) GroffVer=`groff --version | head -n1 | cut -d " " -f4`
|
||||||
|
[[ "$GroffVer" = "1.19.2" ]] && continue
|
||||||
|
;;
|
||||||
*) ;;
|
*) ;;
|
||||||
esac
|
esac
|
||||||
|
|
||||||
#
|
#
|
||||||
# Set the dependency for the first target.
|
# Set the dependency for the first target.
|
||||||
if [ -z $PREV ] ; then PREV=028-creating-sysfile ; fi
|
if [ -z $PREV ] ; then PREV=028-creating-sysfile ; fi
|
||||||
|
|
Reference in a new issue