Skip to contentSkip to conversation

Kconfig undefined references (on other platforms)

DISCUSSION Tim Bird 2 participants 2 messages May 7, 2007 – May 16, 2007

lore
Share & tools
lore

Tim Bird

author
#0 lore raw

Hi all,

I'm using patch-2.6.20-omap1, with a kernel that I compile for multiple boards. When I compile the kernel for a MIPS board, I get some Kconfig warnings on OMAP symbols.

Quoted 1 line

From the compile:

scripts/kconfig/conf -s arch/mips/Kconfig
sound/arm/Kconfig:42:warning: 'select' used by config symbol 'SND_OMAP_AIC23' refer to undefined symbol 'OMAP_MCBSP' sound/arm/Kconfig:57:warning: 'select' used by config symbol 'SND_OMAP_TSC2101' refer to undefined symbol 'OMAP_MCBSP' sound/arm/Kconfig:70:warning: 'select' used by config symbol 'SND_SX1' refer to undefined symbol 'OMAP_MCBSP'

It looks like sound/arm/Kconfig is included (unconditionally) in sound/Kconfig. OMAP_MCBSP is defined in arch/arm/plat-omap1/Kconfig, which is not included during my build on MIPS.

Does anyone know what the proper technique is for making either the selects or the includes conditional, or otherwise quieting these types of reference warnings?

Thanks,
-- Tim

=============================
Tim Bird
Architecture Group Chair, CE Linux Forum
Senior Staff Engineer, Sony Electronics
=============================

#1 lore raw
Quoted 12 lines · Tim Bird

Hi all,

I'm using patch-2.6.20-omap1, with a kernel that I compile for multiple boards. When I compile the kernel for a MIPS board, I get some Kconfig warnings on OMAP symbols.

Quoted 1 line

From the compile:

scripts/kconfig/conf -s arch/mips/Kconfig
sound/arm/Kconfig:42:warning: 'select' used by config symbol 'SND_OMAP_AIC23' refer to undefined symbol 'OMAP_MCBSP' sound/arm/Kconfig:57:warning: 'select' used by config symbol 'SND_OMAP_TSC2101' refer to undefined symbol 'OMAP_MCBSP' sound/arm/Kconfig:70:warning: 'select' used by config symbol 'SND_SX1' refer to undefined symbol 'OMAP_MCBSP'

Quoted 7 lines

It looks like sound/arm/Kconfig is included (unconditionally) in sound/Kconfig. OMAP_MCBSP is defined in arch/arm/plat-omap1/Kconfig, which is not included during my build on MIPS.

Does anyone know what the proper technique is for making either the selects or the includes conditional, or otherwise quieting these types of reference warnings?

Sounds like it would be best to have board-*.c functions take care of of the mcbsp read/write for omap.

Tony