Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 94844
Collapse All | Expand All

(-)/usr/portage/eclass/kernel-mod.eclass (-7 / +8 lines)
Lines 15-20 Link Here
15
15
16
SRC_URI="${SRC_URI:-unknown - please fix me!!}"
16
SRC_URI="${SRC_URI:-unknown - please fix me!!}"
17
KERNEL_DIR="${KERNEL_DIR:-/usr/src/linux}"
17
KERNEL_DIR="${KERNEL_DIR:-/usr/src/linux}"
18
KBUILD_OUTPUT="${KBUILD_OUTPUT:-/usr/src/linux}"
18
19
19
kernel-mod_getmakefilevar ()
20
kernel-mod_getmakefilevar ()
20
{
21
{
Lines 87-95 Link Here
87
88
88
kernel-mod_configoption_present ()
89
kernel-mod_configoption_present ()
89
{
90
{
90
        [ -e "${KERNEL_DIR}/.config" ] || die "kernel has not been configured yet"
91
        [ -e "${KBUILD_OUTPUT}/.config" ] || die "kernel has not been configured yet"
91
92
92
	if egrep "^CONFIG_${1}=[ym]" ${ROOT}/usr/src/linux/.config >/dev/null
93
	if egrep "^CONFIG_${1}=[ym]" ${KBUILD_OUTPUT}/.config >/dev/null
93
	then
94
	then
94
		return 0
95
		return 0
95
	else
96
	else
Lines 99-107 Link Here
99
100
100
kernel-mod_configoption_module ()
101
kernel-mod_configoption_module ()
101
{
102
{
102
	[ -e "${KERNEL_DIR}/.config" ] || die "kernel has not been configured yet"
103
	[ -e "${KBUILD_OUTPUT}/.config" ] || die "kernel has not been configured yet"
103
104
104
	if egrep "^CONFIG_${1}=[m]" ${ROOT}/usr/src/linux/.config >/dev/null
105
	if egrep "^CONFIG_${1}=[m]" ${KBUILD_OUTPUT}/.config >/dev/null
105
	then
106
	then
106
		return 0
107
		return 0
107
	else
108
	else
Lines 111-119 Link Here
111
112
112
kernel-mod_configoption_builtin ()
113
kernel-mod_configoption_builtin ()
113
{
114
{
114
	[ -e "${KERNEL_DIR}/.config" ] || die "kernel has not been configured yet"
115
	[ -e "${KBUILD_OUTPUT}/.config" ] || die "kernel has not been configured yet"
115
116
116
	if egrep "^CONFIG_${1}=[y]" ${ROOT}/usr/src/linux/.config >/dev/null
117
	if egrep "^CONFIG_${1}=[y]" ${KBUILD_OUTPUT}/.config >/dev/null
117
	then
118
	then
118
		return 0
119
		return 0
119
	else
120
	else
Lines 140-146 Link Here
140
{
141
{
141
	einfo "Checking for status of CONFIG_ZLIB_INFLATE support in your kernel"
142
	einfo "Checking for status of CONFIG_ZLIB_INFLATE support in your kernel"
142
143
143
	. ${KERNEL_DIR}/.config || die "kernel has not been configured yet"
144
	. ${KBUILD_OUTPUT}/.config || die "kernel has not been configured yet"
144
	[ "$CONFIG_ZLIB_INFLATE" != "y" ] && kernel-mod_badconfig_zlib
145
	[ "$CONFIG_ZLIB_INFLATE" != "y" ] && kernel-mod_badconfig_zlib
145
	[ "$CONFIG_ZLIB_DEFLATE" != "y" ] && kernel-mod_badconfig_zlib
146
	[ "$CONFIG_ZLIB_DEFLATE" != "y" ] && kernel-mod_badconfig_zlib
146
147

Return to bug 94844