Code:
/usr/ports/graphics/gpu-firmware-amd-kmod$ doas make install clean
===> Building for gpu-firmware-amd-kmod-banks-20220511
make[1]: "/usr/ports/graphics/gpu-firmware-amd-kmod/work-banks/drm-kmod-firmware-20220511/Makefile" line 4: Cannot open /usr/src/sys/conf/kern.opts.mk
make[1]: Fatal errors encountered -- cannot continue
make[1]: stopped in /usr/ports/graphics/gpu-firmware-amd-kmod/work-banks/drm-kmod-firmware-20220511
===> Compilation failed unexpectedly.
Try to set MAKE_JOBS_UNSAFE=yes and rebuild before reporting the failure to
the maintainer.
*** Error code 1
This is the relevant section of the Makefile:
Code:
# $FreeBSD$
SYSDIR?=/usr/src/sys
.include "${SYSDIR}/conf/kern.opts.mk"
_VALID_KMODS= amdgpukmsfw i915kmsfw radeonkmsfw
DEFAULT_KMODS= amdgpukmsfw radeonkmsfw
.if ${MACHINE_ARCH} == "amd64" || ${MACHINE_ARCH} == "i386"
DEFAULT_KMODS+= i915kmsfw
.endif
My firmware works fine, but I had to run
portmaster -af
because I had encountered errors while installing new applications. Portmaster finds 1300+ packages to update, but stopped every time with an error related to kmod.