代码: 全选
if ! kernel_is 2 6; then
eerror "Need a 2.6 kernel to compile against!"
die "Need a 2.6 kernel to compile against!"
fi
if kernel_is ge 2 6 25 && linux_chkconfig_present PREEMPT_RCU; then
die "${P} is not compatible with RCU Preemption (bug #223281), please disable it"
fi
if kernel_is ge 2 6 26 && ! linux_chkconfig_present UNUSED_SYMBOLS; then
ewarn "You have to Enable unused/obsolete exported symbols in Kernel hacking section of kernel config for fglrx to load"
fi
if kernel_is ge 2 6 24 && ! linux_chkconfig_present PCI_LEGACY; then
eerror "${P} requires support for pci_find_slot."
die "${P} requires support for pci_find_slot."
fi
if ! linux_chkconfig_present MTRR; then
ewarn "You don't have MTRR support enabled, the direct rendering will not work."
fi
if linux_chkconfig_builtin DRM; then
ewarn "You have DRM support enabled builtin, the direct rendering will not work."
fi
if ! linux_chkconfig_present AGP && \
! linux_chkconfig_present PCIEPORTBUS; then
ewarn "You need AGP and/or PCI Express support for direct rendering to work."
fi
if linux_chkconfig_present PARAVIRT; then
eerror "The current ati-drivers don't compile when having"
eerror "paravirtualization active due to GPL symbol export"
eerror "restrictions."
eerror "Please disable it:"
eerror " CONFIG_PARAVIRT=n"
eerror "in /usr/src/linux/.config or"
eerror " Processor type and features -->"
eerror " [ ] Paravirtualization support (EXPERIMENTAL)"
eerror "in 'menuconfig'"
die "CONFIG_PARAVIRT enabled"
fi
if ! linux_chkconfig_present MAGIC_SYSRQ; then
eerror "You need MAGIC_SYSRQ enabled in order to build ati-drivers"
die "CONFIG_MAGIC_SYSRQ disabled"
fi
# Only support xorg-server >=1.5
BASE_DIR="${S}/x740"
if ! linux_chkconfig_present PCI_MSI; then
eerror "You need PCI_MSI enabled in order to build ati-drivers"
die "CONFIG_PCI_MSI disabled"
fi