--- orig/toolchain-funcs.eclass 2012-09-27 20:01:14.000000000 +0000 +++ toolchain-funcs.eclass 2012-09-28 09:33:31.784739859 +0000 @@ -357,8 +357,10 @@ ninj() { [[ ${type} == "kern" ]] && echo local host=$2 [[ -z ${host} ]] && host=${CTARGET:-${CHOST}} - local KV=${KV:-${KV_FULL}} - [[ -z ${KV} ]] && die "toolchain-funcs.eclass: Kernel version could not be determined, please inherit kernel-2 or linux-info" + if [[ ${type} == "kern" ]]; then + local KV=${KV:-${KV_FULL}} + [[ -z ${KV} ]] && die "toolchain-funcs.eclass: Kernel version could not be determined, please inherit kernel-2 or linux-info" + fi case ${host} in aarch64*) ninj aarch64 arm;;