--- /usr/portage/x11-drivers/ati-drivers/ati-drivers-8.25.18.ebuild 2006-06-03 01:36:30.000000000 -0500 +++ ati-drivers-8.25.18-r1.ebuild 2006-06-26 08:11:47.000000000 -0500 @@ -152,13 +152,19 @@ addwrite "/usr/src/${FK}" cp 2.6.x/Makefile . export _POSIX2_VERSION="199209" + local modflags="-DMODULE -DATI_AGP_HOOK -DATI -DFGL -DFGL_RX -DFGL_CU -DFGL_CUSTOM_MODULE -DPAGE_ATTR_FIX=0" + linux_chkconfig_present SMP && modflags="${modflags} -D__SMP__" + linux_chkconfig_present MODVERSIONS && modflags="${modflags} -DMODVERSIONS" + # PAGE_ATTR_FIX is 1 iff !SMP and kernel syms has "change_page_attr" + einfo MODFLAGS=\"${modflags}\" + if use_m ; then - make -C ${KV_DIR} M="`pwd`" GCC_VER_MAJ=$(gcc-major-version) \ - modules || ewarn "DRM module not built" + make -C ${KV_DIR} M="`pwd`" GCC_VER_MAJ=$(gcc-major-version) V=0 PAGE_ATTR_FIX=0 \ + MODFLAGS="${modflags}" modules || ewarn "DRM module not built" else - make -C ${KV_DIR} SUBDIRS="`pwd`" GCC_VER_MAJ=$(gcc-major-version) \ - modules || ewarn "DRM module not built" + make -C ${KV_DIR} SUBDIRS="`pwd`" GCC_VER_MAJ=$(gcc-major-version) V=0 PAGE_ATTR_FIX=0 \ + MODFLAGS="${modflags}" modules || ewarn "DRM module not built" fi set_arch_to_portage else