linux-next ARM multi-platform randconfig errors
Arnd Bergmann
arnd at arndb.de
Fri Apr 19 18:08:28 EDT 2013
On Friday 19 April 2013, Tony Lindgren wrote:
> In this case the options within the ifeq have already been tested
> with randconfigs. The reason for these build errors is that no SoC
> has been selected, and there's nothing implementing the the missing
> functions. The other option for fixing the issue would be to add a
> null SoC, which probably does not make sense in this case.
>
> I've been building various omap2+ randconfigs for quite a while,
> and in general they work with a few warnings left. But I've
> been doing that with at least one SoC selected earlier because
> of the historic "must select a target board" that no longer is
> the case with your patch.
I think part of the problem is the way the Makefile is laid
out, e.g.
clockdomain-common += clockdomain.o
obj-$(CONFIG_ARCH_OMAP2) += $(clockdomain-common)
obj-$(CONFIG_ARCH_OMAP3) += $(clockdomain-common)
obj-$(CONFIG_ARCH_OMAP4) += $(clockdomain-common)
obj-$(CONFIG_SOC_AM33XX) += $(clockdomain-common)
obj-$(CONFIG_SOC_OMAP5) += $(clockdomain-common)
This results in building clockdomain.o whenever any of the various
SoCs are enabled, but not when none of them are enabled.
However, according to the error messages, this driver is actually
referenced by code that is enabled unconditionally.
You are right that your patch would fix this scenario, but it does
so by adding extra logic, not by simplifying it. I can see two ways
to make that more logical:
a) use the new Kconfig symbol consistently:
obj-$(CONFIG_SOC_OMAP) += clockdomain.o
b) don't introduce a new symbol but use the Makefile consistently
omap-common += io.o mux.o devices.o fb.o serial.o gpmc.o timer.o pm.o \
common.o gpio.o dma.o wd_timer.o display.o i2c.o hdq1w.o omap_hwmod.o \
omap_device.o sram.o
obj-$(CONFIG_ARCH_OMAP2) += $(omap-common)
obj-$(CONFIG_ARCH_OMAP3) += $(omap-common)
obj-$(CONFIG_ARCH_OMAP4) += $(omap-common)
obj-$(CONFIG_SOC_AM33XX) += $(omap-common)
obj-$(CONFIG_SOC_OMAP5) += $(omap-common)
Arnd
More information about the linux-arm-kernel
mailing list