Lines 152-164
Link Here
|
152 |
addwrite "/usr/src/${FK}" |
152 |
addwrite "/usr/src/${FK}" |
153 |
cp 2.6.x/Makefile . |
153 |
cp 2.6.x/Makefile . |
154 |
export _POSIX2_VERSION="199209" |
154 |
export _POSIX2_VERSION="199209" |
|
|
155 |
local modflags="-DMODULE -DATI_AGP_HOOK -DATI -DFGL -DFGL_RX -DFGL_CU -DFGL_CUSTOM_MODULE -DPAGE_ATTR_FIX=0" |
156 |
linux_chkconfig_present SMP && modflags="${modflags} -D__SMP__" |
157 |
linux_chkconfig_present MODVERSIONS && modflags="${modflags} -DMODVERSIONS" |
158 |
# PAGE_ATTR_FIX is 1 iff !SMP and kernel syms has "change_page_attr" |
159 |
einfo MODFLAGS=\"${modflags}\" |
160 |
|
155 |
if use_m ; |
161 |
if use_m ; |
156 |
then |
162 |
then |
157 |
make -C ${KV_DIR} M="`pwd`" GCC_VER_MAJ=$(gcc-major-version) \ |
163 |
make -C ${KV_DIR} M="`pwd`" GCC_VER_MAJ=$(gcc-major-version) V=0 PAGE_ATTR_FIX=0 \ |
158 |
modules || ewarn "DRM module not built" |
164 |
MODFLAGS="${modflags}" modules || ewarn "DRM module not built" |
159 |
else |
165 |
else |
160 |
make -C ${KV_DIR} SUBDIRS="`pwd`" GCC_VER_MAJ=$(gcc-major-version) \ |
166 |
make -C ${KV_DIR} SUBDIRS="`pwd`" GCC_VER_MAJ=$(gcc-major-version) V=0 PAGE_ATTR_FIX=0 \ |
161 |
modules || ewarn "DRM module not built" |
167 |
MODFLAGS="${modflags}" modules || ewarn "DRM module not built" |
162 |
fi |
168 |
fi |
163 |
set_arch_to_portage |
169 |
set_arch_to_portage |
164 |
else |
170 |
else |