From: Dmitry Baryshkov Date: Mon, 24 Jun 2024 15:08:12 +0000 (+0300) Subject: platform/arm64: build drivers even on non-ARM64 platforms X-Git-Tag: v6.10.3~468 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=eb049d63ba11f2c9c3b5a26feb98141319e69aa5;p=thirdparty%2Fkernel%2Fstable.git platform/arm64: build drivers even on non-ARM64 platforms [ Upstream commit 13bbe1c83bc401c2538c758228d27b4042b08341 ] The Kconfig for platforms/arm64 has 'depends on ARM64 || COMPILE_TEST'. However due to Makefile having just obj-$(CONFIG_ARM64) the subdir will not be descended for !ARM64 platforms and thus the drivers won't get built. This breaks modular builds of other driver drivers which depend on arm64 platform drivers. Reported-by: Greg Kroah-Hartman Fixes: 363c8aea2572 ("platform: Add ARM64 platform directory") Signed-off-by: Dmitry Baryshkov Link: https://lore.kernel.org/r/20240624-ucsi-yoga-ec-driver-v9-1-53af411a9bd6@linaro.org Reviewed-by: Ilpo Järvinen Signed-off-by: Ilpo Järvinen Signed-off-by: Sasha Levin --- diff --git a/drivers/platform/Makefile b/drivers/platform/Makefile index fbbe4f77aa5d7..837202842a6f6 100644 --- a/drivers/platform/Makefile +++ b/drivers/platform/Makefile @@ -11,4 +11,4 @@ obj-$(CONFIG_OLPC_EC) += olpc/ obj-$(CONFIG_GOLDFISH) += goldfish/ obj-$(CONFIG_CHROME_PLATFORMS) += chrome/ obj-$(CONFIG_SURFACE_PLATFORMS) += surface/ -obj-$(CONFIG_ARM64) += arm64/ +obj-$(CONFIG_ARM64_PLATFORM_DEVICES) += arm64/