Kconfig undefined references (on other platforms)
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
=============================
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
Kconfigwarnings on OMAP symbols.Quoted 1 line
From the compile:
scripts/kconfig/conf-sarch/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/Kconfigis included (unconditionally) insound/Kconfig.OMAP_MCBSPis defined inarch/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