]> www.infradead.org Git - users/jedix/linux-maple.git/commit
platform/arm64: build drivers even on non-ARM64 platforms
authorDmitry Baryshkov <dmitry.baryshkov@linaro.org>
Mon, 24 Jun 2024 15:08:12 +0000 (18:08 +0300)
committerIlpo Järvinen <ilpo.jarvinen@linux.intel.com>
Mon, 24 Jun 2024 15:22:15 +0000 (18:22 +0300)
commit13bbe1c83bc401c2538c758228d27b4042b08341
treeb5bb8eaaaf5546e1734b57e432d7ce46a1472db2
parent5e5f2f92cccc29f356422d3cbc104f7f42430f22
platform/arm64: build drivers even on non-ARM64 platforms

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 <gregkh@linuxfoundation.org>
Fixes: 363c8aea2572 ("platform: Add ARM64 platform directory")
Signed-off-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org>
Link: https://lore.kernel.org/r/20240624-ucsi-yoga-ec-driver-v9-1-53af411a9bd6@linaro.org
Reviewed-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com>
Signed-off-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com>
drivers/platform/Makefile