explicitely use ${SETENV} KMODDIR="${KMODDIR}" before calling sub-make. [1] - Use 700015 as __FreeBSD_version to detect if ipw(4) is using firmware(9). Reported by: Benjamin Close [1]