clk: thead: allow COMPILE_TEST builds
PATCH v2 1/1 clk: thead: allow COMPILE_TEST builds
Follow the pattern of many other directories in this Makefile (sunxi-ng, tenstorrent, ti, etc.) by using obj-y. This allows COMPILE_TEST to select the driver without having CONFIG_ARCH_THEAD enabled
Tested with:
make LLVM=1 ARCH=loongarch drivers/clk/thead/
---
v2: use obj-y
drivers/clk/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/clk/Makefile +1 -1
@@ -157,7 +157,7 @@ obj-$(CONFIG_ARCH_SUNXI) += sunxi/ obj-y += sunxi-ng/ obj-$(CONFIG_CLK_TEGRA) += tegra/ obj-y += tenstorrent/ -obj-$(CONFIG_ARCH_THEAD) += thead/ +obj-y += thead/ obj-y += ti/ obj-$(CONFIG_CLK_UNIPHIER) += uniphier/ obj-$(CONFIG_ARCH_U8500) += ux500/
Signature · 1 line
2.55.0
Quoted 9 lines · Rosen Penev
Follow the pattern of many other directories in this
Makefile(sunxi-ng, tenstorrent, ti, etc.) by using obj-y. This allowsCOMPILE_TESTto select the driver without havingCONFIG_ARCH_THEADenabledTested with:
make LLVM=1 ARCH=loongarchdrivers/clk/thead/Assisted-by Codex:GPT-5.5Signed-off-by Rosen Penev <[email protected]>
Drew Fustini
Acked-byQuoted 5 lines · Brian Masney
Quoted 4 lines · Rosen Penev
Follow the pattern of many other directories in this
Makefile(sunxi-ng, tenstorrent, ti, etc.) by using obj-y. This allowsCOMPILE_TESTto select the driver without havingCONFIG_ARCH_THEADenabled
Quoted 7 lines
Quoted 5 lines
Tested with:
make LLVM=1 ARCH=loongarchdrivers/clk/thead/Assisted-by Codex:GPT-5.5Signed-off-by Rosen Penev <[email protected]>Reviewed-by Brian Masney <[email protected]>
This doesn't apply to 7.2-rc or next for me due to the surrounding context, but I agree with the change itself.
Brian - do you think this should be routed through my thead-clk tree or go through the main clk tree?
Thanks,
Drew
Hey Drew,
Quoted 14 lines · Drew Fustini
Quoted 5 lines · Brian Masney
Quoted 4 lines · Rosen Penev
Follow the pattern of many other directories in this
Makefile(sunxi-ng, tenstorrent, ti, etc.) by using obj-y. This allowsCOMPILE_TESTto select the driver without havingCONFIG_ARCH_THEADenabledQuoted 7 lines
Quoted 5 lines
Tested with:
make LLVM=1 ARCH=loongarchdrivers/clk/thead/Assisted-by Codex:GPT-5.5Signed-off-by Rosen Penev <[email protected]>Reviewed-by Brian Masney <[email protected]>
Quoted 7 lines
This doesn't apply to 7.2-rc or next for me due to the surrounding context, but I agree with the change itself.
Acked-by Drew Fustini <[email protected]>Brian - do you think this should be routed through my thead-clk tree or go through the main clk tree?
It'd be great if you could pick this up through the thead-clk tree.
Brian
Quoted 20 lines · Brian Masney
Hey Drew,
Quoted 17 lines · Drew Fustini
Quoted 5 lines · Brian Masney
Quoted 4 lines · Rosen Penev
Follow the pattern of many other directories in this
Makefile(sunxi-ng, tenstorrent, ti, etc.) by using obj-y. This allowsCOMPILE_TESTto select the driver without havingCONFIG_ARCH_THEADenabledQuoted 7 lines
Quoted 5 lines
Tested with:
make LLVM=1 ARCH=loongarchdrivers/clk/thead/Assisted-by Codex:GPT-5.5Signed-off-by Rosen Penev <[email protected]>Reviewed-by Brian Masney <[email protected]>This doesn't apply to 7.2-rc or next for me due to the surrounding context, but I agree with the change itself.
Quoted 8 lines
Quoted 4 lines
Acked-by Drew Fustini <[email protected]>Brian - do you think this should be routed through my thead-clk tree or go through the main clk tree?
It'd be great if you could pick this up through the thead-clk tree.
Brian
I have applied this thead-clk-for-next:
If not problems in next, thne I'll create a v7.3 pull request for thead-clk.
Thanks,
Drew