diff options
author | Roy Marples <uberlord@gentoo.org> | 2006-11-23 14:53:03 +0000 |
---|---|---|
committer | Roy Marples <uberlord@gentoo.org> | 2006-11-23 14:53:03 +0000 |
commit | 468f59842c29382329bbb3bd65fac29b065e3062 (patch) | |
tree | 6ef2f7ccf185850cf3f293c1df15532d3ca9cf56 /net-wireless/rt2x00/rt2x00-9999.ebuild | |
parent | Added app-cdr/k3b:emovix which applies to version 1.0_beta1 of k3b. (diff) | |
download | gentoo-2-468f59842c29382329bbb3bd65fac29b065e3062.tar.gz gentoo-2-468f59842c29382329bbb3bd65fac29b065e3062.tar.bz2 gentoo-2-468f59842c29382329bbb3bd65fac29b065e3062.zip |
Drop the eeprom USE flag and build the module when any pci devices are built.
(Portage version: 2.1.2_rc2-r1)
Diffstat (limited to 'net-wireless/rt2x00/rt2x00-9999.ebuild')
-rw-r--r-- | net-wireless/rt2x00/rt2x00-9999.ebuild | 15 |
1 files changed, 9 insertions, 6 deletions
diff --git a/net-wireless/rt2x00/rt2x00-9999.ebuild b/net-wireless/rt2x00/rt2x00-9999.ebuild index 7eb413d4a705..90894aec0f07 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.16 2006/11/17 20:08:46 uberlord Exp $ +# $Header: /var/cvsroot/gentoo-x86/net-wireless/rt2x00/rt2x00-9999.ebuild,v 1.17 2006/11/23 14:53:03 uberlord Exp $ inherit linux-mod cvs @@ -16,7 +16,7 @@ KEYWORDS="-* ~amd64 ~x86" RDEPEND="net-wireless/wireless-tools" IUSE_RT2X00_DEVICES="rt2400pci rt2500pci rt2500usb rt61pci rt73usb" -IUSE_RT2X00_EXTRA="eeprom rfkill" +IUSE_RT2X00_EXTRA="rfkill" IUSE="asm debug" for x in ${IUSE_RT2X00_DEVICES} ${IUSE_RT2X00_EXTRA} ; do @@ -89,16 +89,19 @@ src_compile() { MODULE_NAMES="${MODULE_NAMES} crc-itu-t(rt2x00:)" fi + # rt2400pci, rt2500pci and rt61pci require the EEPROM module + if use rt2400pci || use rt2500pci || use rt61pci ; then + echo "CONFIG_EEPROM_93CX6=y" >> config + echo "CONFIG_EEPROM_93CX6_ASM=${asm}" >> config + MODULE_NAMES="${MODULE_NAMES} eeprom_93cx6(rt2x00:)" + fi + for m in d80211 ${IUSE_RT2X00_EXTRA} ${IUSE_RT2X00_DEVICES} ; do local yn="n" M=$(echo "${m}" | tr '[:lower:]' '[:upper:]') if [[ ${m} == "d80211" || ${full} == "y" ]] || use "${m}" ; then yn="y" fi - if [[ ${m} == "eeprom" ]] ; then - m="eeprom_93cx6" - M="EEPROM_93CX6" - fi echo "CONFIG_${M}=${yn}" >> config echo "CONFIG_${M}_ASM=${asm}" >> config echo "CONFIG_${M}_DEBUG=${debug}" >> config |