1 | # Copyright 1999-2011 Gentoo Foundation |
1 | # Copyright 1999-2011 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-mod.eclass,v 1.100 2011/04/24 18:55:20 ulm Exp $ |
3 | # $Header: /var/cvsroot/gentoo-x86/eclass/linux-mod.eclass,v 1.101 2011/05/27 09:46:14 ferringb Exp $ |
4 | |
4 | |
5 | # Author(s): John Mylchreest <johnm@gentoo.org>, |
5 | # Author(s): John Mylchreest <johnm@gentoo.org>, |
6 | # Stefan Schweizer <genstef@gentoo.org> |
6 | # Stefan Schweizer <genstef@gentoo.org> |
7 | # Maintainer: kernel-misc@gentoo.org |
7 | # Maintainer: kernel-misc@gentoo.org |
8 | # |
8 | # |
… | |
… | |
574 | # configured, verifies that the sources are prepared, verifies that the modules support is builtin |
574 | # configured, verifies that the sources are prepared, verifies that the modules support is builtin |
575 | # in the kernel and sets the object extension KV_OBJ. |
575 | # in the kernel and sets the object extension KV_OBJ. |
576 | linux-mod_pkg_setup() { |
576 | linux-mod_pkg_setup() { |
577 | debug-print-function ${FUNCNAME} $* |
577 | debug-print-function ${FUNCNAME} $* |
578 | |
578 | |
|
|
579 | local is_bin="${MERGE_TYPE}" |
|
|
580 | |
579 | # If we are installing a binpkg, take a different path. |
581 | # If we are installing a binpkg, take a different path. |
|
|
582 | # use MERGE_TYPE if available (eapi>=4); else use non-PMS EMERGE_FROM (eapi<4) |
|
|
583 | if has ${EAPI} 0 1 2 3; then |
|
|
584 | is_bin=${EMERGE_FROM} |
|
|
585 | fi |
|
|
586 | |
580 | if [[ $EMERGE_FROM == binary ]]; then |
587 | if [[ ${is_bin} == binary ]]; then |
581 | linux-mod_pkg_setup_binary |
588 | linux-mod_pkg_setup_binary |
582 | return |
589 | return |
583 | fi |
590 | fi |
584 | |
591 | |
585 | linux-info_pkg_setup; |
592 | linux-info_pkg_setup; |