Index: head/sys/modules/drm2/Makefile =================================================================== --- head/sys/modules/drm2/Makefile (revision 254898) +++ head/sys/modules/drm2/Makefile (revision 254899) @@ -1,15 +1,27 @@ # $FreeBSD$ .include -.if ${MK_SOURCELESS_UCODE} != "no" +.if ${MACHINE_CPUARCH} == "amd64" +_radeonkms= radeonkms +. if ${MK_SOURCELESS_UCODE} != "no" _radeonkmsfw= radeonkmsfw +. endif .endif +.if ${MACHINE_CPUARCH} == "i386" +. if ${MACHINE} != "pc98" +_radeonkms= radeonkms +. if ${MK_SOURCELESS_UCODE} != "no" +_radeonkmsfw= radeonkmsfw +. endif +. endif +.endif + SUBDIR = \ drm2 \ i915kms \ - radeonkms \ + ${_radeonkms} \ ${_radeonkmsfw} .include