soc: rockchip: Fix compile-testing SoC drivers
Guenter Roeck
Tested-byQuoted 14 lines · Brian Norris
Similar to commit
7f94b69ece51("ARM: ixp4xx: fix compile-testing soc drivers").
drivers/soc/rockchip/Kconfigmakes plenty of provision for configuring drivers either forARCH_ROCKCHIPor forCOMPILE_TEST. Butdrivers/soc/Makefilepulls the rug out from under us, by refusing to build anything if we specifiedCOMPILE_TESTbut notARCH_ROCKCHIP.Currently, I'm not aware of anything that breaks without this patch, but it certainly makes for confusing builds (
CONFIG_ROCKCHIP_PM_DOMAINS=y, but we didn't actually compile the driver?) and leaves room for future error (I have pending patches that break confusingly with COMPILE_TEST=y even though theirKconfigdependencies seem correct [1]).
Quoted 7 lines
Defer to
drivers/soc/rockchip/{Makefile,Kconfig}to do the right thing.[1] e.g.,
https://lore.kernel.org/linux-rockchip/20220405184816.RFC.2.I2d73b403944f0b8b5871a77585b73f31ccc62999@changeid/
[RFC PATCH 2/2] PM / devfreq:rk3399_dmc: Block PMU during transitionsSigned-off-by Brian Norris <[email protected]>
Quoted 21 lines
---
drivers/soc/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)drivers/soc/Makefile +1
-1@@ -23,7 +23,7 @@ obj-y += pxa/ obj-y += amlogic/ obj-y += qcom/ obj-y += renesas/ -obj-$(CONFIG_ARCH_ROCKCHIP) += rockchip/ +obj-y += rockchip/ obj-$(CONFIG_SOC_SAMSUNG) += samsung/ obj-$(CONFIG_SOC_SIFIVE) += sifive/ obj-y += sunxi/Signature · 1 line
2.36.0.rc2.479.g8af0fa9b8e-goog