| 1 | # Copyright 1999-2006 Gentoo Foundation |
1 | # Copyright 1999-2006 Gentoo Foundation |
| 2 | # Distributed under the terms of the GNU General Public License v2 |
2 | # Distributed under the terms of the GNU General Public License v2 |
| 3 | # $Header: /var/cvsroot/gentoo-x86/eclass/linux-info.eclass,v 1.71 2009/09/08 12:34:21 robbat2 Exp $ |
3 | # $Header: /var/cvsroot/gentoo-x86/eclass/linux-info.eclass,v 1.72 2009/09/13 20:44:11 robbat2 Exp $ |
| 4 | # |
4 | # |
| 5 | # Original author: John Mylchreest <johnm@gentoo.org> |
5 | # Original author: John Mylchreest <johnm@gentoo.org> |
| 6 | # Maintainer: kernel-misc@gentoo.org |
6 | # Maintainer: kernel-misc@gentoo.org |
| 7 | # |
7 | # |
| 8 | # Please direct your bugs to the current eclass maintainer :) |
8 | # Please direct your bugs to the current eclass maintainer :) |
| … | |
… | |
| 636 | config_required=1 |
636 | config_required=1 |
| 637 | break |
637 | break |
| 638 | fi |
638 | fi |
| 639 | done |
639 | done |
| 640 | |
640 | |
|
|
641 | # TODO: After we enable the new code for /proc/config.gz, we need to |
|
|
642 | # change this back to linux_config_exists. |
| 641 | if [[ ${config_required} == 0 ]]; then |
643 | if [[ ${config_required} == 0 ]]; then |
| 642 | # In the case where we don't require a .config, we can now bail out |
644 | # In the case where we don't require a .config, we can now bail out |
| 643 | # if the user has no .config as there is nothing to do. Otherwise |
645 | # if the user has no .config as there is nothing to do. Otherwise |
| 644 | # code later will cause a failure due to missing .config. |
646 | # code later will cause a failure due to missing .config. |
| 645 | if ! linux_config_exists; then |
647 | if ! linux_config_src_exists; then |
| 646 | ewarn "Unable to check for the following kernel config options due" |
648 | ewarn "Unable to check for the following kernel config options due" |
| 647 | ewarn "to absence of any configured kernel sources or compiled" |
649 | ewarn "to absence of any configured kernel sources or compiled" |
| 648 | ewarn "config:" |
650 | ewarn "config:" |
| 649 | for config in ${CONFIG_CHECK}; do |
651 | for config in ${CONFIG_CHECK}; do |
| 650 | ewarn " - ${config#\~}" |
652 | ewarn " - ${config#\~}" |