diff options
author | 2006-12-19 17:22:29 +0000 | |
---|---|---|
committer | 2006-12-19 17:22:29 +0000 | |
commit | 6d3ae16d727c2e6a244cf839930ad428e8659131 (patch) | |
tree | d328c8959936836853f2d25f1d8aa14b908fac89 /net-wireless/rt2x00/rt2x00-9999.ebuild | |
parent | Punt old versions (diff) | |
download | gentoo-2-6d3ae16d727c2e6a244cf839930ad428e8659131.tar.gz gentoo-2-6d3ae16d727c2e6a244cf839930ad428e8659131.tar.bz2 gentoo-2-6d3ae16d727c2e6a244cf839930ad428e8659131.zip |
debug USE flag now requires CONFIG_DEBUG_FS to be enabled in the kernel.
(Portage version: 2.1.2_rc3-r7)
Diffstat (limited to 'net-wireless/rt2x00/rt2x00-9999.ebuild')
-rw-r--r-- | net-wireless/rt2x00/rt2x00-9999.ebuild | 16 |
1 files changed, 14 insertions, 2 deletions
diff --git a/net-wireless/rt2x00/rt2x00-9999.ebuild b/net-wireless/rt2x00/rt2x00-9999.ebuild index 90894aec0f07..475988c038ab 100644 --- a/net-wireless/rt2x00/rt2x00-9999.ebuild +++ b/net-wireless/rt2x00/rt2x00-9999.ebuild @@ -1,6 +1,6 @@ # Copyright 1999-2006 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/net-wireless/rt2x00/rt2x00-9999.ebuild,v 1.17 2006/11/23 14:53:03 uberlord Exp $ +# $Header: /var/cvsroot/gentoo-x86/net-wireless/rt2x00/rt2x00-9999.ebuild,v 1.18 2006/12/19 17:22:29 uberlord Exp $ inherit linux-mod cvs @@ -52,6 +52,11 @@ pkg_setup() { ERROR_FW_LOADER="${P} requires support for Firmware module loading (CONFIG_FW_LOADER)." fi + if use debug ; then + CONFIG_CHECK="${CONFIG_CHECK} DEBUG_FS" + ERROR_DEBUG_FS="${P} requires Kernel Debug FS support (CONFIG_DEBUG_FS)" + fi + kernel_is lt 2 6 17 && die "${P} requires at least kernel 2.6.17" linux-mod_pkg_setup BUILD_PARAMS="KERNDIR=${KV_DIR} KERNOUT=${KV_OUT_DIR}" @@ -80,8 +85,15 @@ src_compile() { # Generate the config file now echo "# Config file generated by portage" > config - MODULE_NAMES="80211(rt2x00:) rc80211_simple(rt2x00:)" + + # Enable the new DEBUGFS module + if use debug ; then + echo "CONFIG_RT2X00_DEBUGFS=y" >> config + echo "CONFIG_RT2X00_DEBUGFS_ASM=${asm}" >> config + MODULE_NAMES="${MODULE_NAMES} rt2x00debug(rt2x00:)" + fi + # RT61 and RT73 require CONFIG_CRC_ITU_T if [[ ${full} == "y" ]] || \ use rt61pci || use rt73usb ; then |