Commit 5390d99f authored by Masahiro Yamada's avatar Masahiro Yamada
Browse files

speakup: use SPKDIR=$(src) to specify the source directory



Commit e68a558f ("speakup: Fix building as extmod") was intended
to support building this as an external module.

Since commit b1992c37 ("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: default avatarMasahiro Yamada <masahiroy@kernel.org>
Reviewed-by: default avatarNicolas Schier <nicolas@fjasle.eu>
parent 59b723cd
Loading
Loading
Loading
Loading
+1 −3
Original line number Diff line number Diff line
@@ -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)