summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMasahiro Yamada <masahiroy@kernel.org>2024-09-17 23:16:37 +0900
committerMasahiro Yamada <masahiroy@kernel.org>2024-11-04 17:53:09 +0900
commit5390d99fdb45fe8754120495d8b107a08e4d05f8 (patch)
tree9b7901924d6de4b4504c759abd0b4357f351f388
parent59b723cd2adbac2a34fc8e12c74ae26ae45bf230 (diff)
downloadlwn-5390d99fdb45fe8754120495d8b107a08e4d05f8.tar.gz
lwn-5390d99fdb45fe8754120495d8b107a08e4d05f8.zip
speakup: use SPKDIR=$(src) to specify the source directory
Commit e68a558fb2af ("speakup: Fix building as extmod") was intended to support building this as an external module. Since commit b1992c3772e6 ("kbuild: use $(src) instead of $(srctree)/$(src) for source directory"), $(src) consistently points to the source directory, regardless of whether it is compiled as an external module or not. Signed-off-by: Masahiro Yamada <masahiroy@kernel.org> Reviewed-by: Nicolas Schier <nicolas@fjasle.eu>
-rw-r--r--drivers/accessibility/speakup/Makefile4
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/accessibility/speakup/Makefile b/drivers/accessibility/speakup/Makefile
index 6f6a83565c0d..14ba1cca87f4 100644
--- a/drivers/accessibility/speakup/Makefile
+++ b/drivers/accessibility/speakup/Makefile
@@ -40,9 +40,7 @@ hostprogs += makemapdata
makemapdata-objs := makemapdata.o
quiet_cmd_mkmap = MKMAP $@
- cmd_mkmap = TOPDIR=$(srctree) \
- SPKDIR=$(if $(KBUILD_EXTMOD),$(KBUILD_EXTMOD),$(srctree)/drivers/accessibility/speakup) \
- $(obj)/makemapdata > $@
+ cmd_mkmap = TOPDIR=$(srctree) SPKDIR=$(src) $(obj)/makemapdata > $@
$(obj)/mapdata.h: $(obj)/makemapdata
$(call cmd,mkmap)