diff options
author | Samuel Thibault <samuel.thibault@ens-lyon.org> | 2022-11-18 04:22:06 +0300 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2022-11-23 21:55:03 +0300 |
commit | e68a558fb2af06daa38f86dad25061ddd90ab131 (patch) | |
tree | ae9e72df053e37e4e5e1a06e31376cfd7e9d5447 /drivers/accessibility/speakup/Makefile | |
parent | 27158c72678b39ee01cc01de1aba6b51c71abe2f (diff) | |
download | linux-e68a558fb2af06daa38f86dad25061ddd90ab131.tar.xz |
speakup: Fix building as extmod
spk_priv_keyinfo.h should be opened from the speakup directory. When
building as extmod we should thus open it from the module directory
rather than the main Linux source.
Signed-off-by: Samuel Thibault <samuel.thibault@ens-lyon.org>
Link: https://lore.kernel.org/r/20221118012206.j6hq6b6nfx2jhqg6@begin
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/accessibility/speakup/Makefile')
-rw-r--r-- | drivers/accessibility/speakup/Makefile | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/drivers/accessibility/speakup/Makefile b/drivers/accessibility/speakup/Makefile index ba69b0803d42..6f6a83565c0d 100644 --- a/drivers/accessibility/speakup/Makefile +++ b/drivers/accessibility/speakup/Makefile @@ -40,7 +40,9 @@ hostprogs += makemapdata makemapdata-objs := makemapdata.o quiet_cmd_mkmap = MKMAP $@ - cmd_mkmap = TOPDIR=$(srctree) $(obj)/makemapdata > $@ + cmd_mkmap = TOPDIR=$(srctree) \ + SPKDIR=$(if $(KBUILD_EXTMOD),$(KBUILD_EXTMOD),$(srctree)/drivers/accessibility/speakup) \ + $(obj)/makemapdata > $@ $(obj)/mapdata.h: $(obj)/makemapdata $(call cmd,mkmap) |