Skip to content

Commit

Permalink
speakup: use SPKDIR=$(src) to specify the source directory
Browse files Browse the repository at this point in the history
Commit e68a558 ("speakup: Fix building as extmod") was intended
to support building this as an external module.

Since commit b1992c3 ("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 <[email protected]>
Reviewed-by: Nicolas Schier <[email protected]>
  • Loading branch information
masahir0y committed Nov 4, 2024
1 parent 59b723c commit 5390d99
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions drivers/accessibility/speakup/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 5390d99

Please sign in to comment.