From 6d485b61ff9d627ea28fb142c2c21c83d783764c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jean-S=C3=A9bastien=20P=C3=A9dron?= Date: Mon, 26 Aug 2013 09:17:21 +0000 Subject: [PATCH] drm/radeon: Disable build on i386/pc98 --- sys/modules/drm2/Makefile | 16 ++++++++++++++-- 1 file changed, 14 insertions(+), 2 deletions(-) diff --git a/sys/modules/drm2/Makefile b/sys/modules/drm2/Makefile index 02e35eaad4d..62414dbd978 100644 --- a/sys/modules/drm2/Makefile +++ b/sys/modules/drm2/Makefile @@ -2,14 +2,26 @@ .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