Commit e2a57a81 authored by Maarten Bressers's avatar Maarten Bressers Committed by Linus Torvalds
Browse files

Correct Makefile rule for generating custom keymap

When building a custom keymap, after setting GENERATE_KEYMAP := 1 in
drivers/char/Makefile, the kernel build fails like this:

    CC      drivers/char/vt.o
  make[2]: *** No rule to make target `drivers/char/', needed by `drivers/char/defkeymap.c'.  Stop.
  make[1]: *** [drivers/char] Error 2
  make: *** [drivers] Error 2

This was caused by commit af8b1287

, which
deleted a necessary colon from the Makefile rule that generates the keymap,
since that rule contains both a target and a target-pattern.  The following
patch puts the colon back:
Signed-off-by: default avatarMaarten Bressers <>
Cc: Yoichi Yuasa <>
Cc: Ralf Baechle <>
Cc: Sam Ravnborg <>
Signed-off-by: default avatarAndrew Morton <>
Signed-off-by: default avatarLinus Torvalds <>
parent d39d5ed9
......@@ -129,7 +129,7 @@ $(obj)/defkeymap.o: $(obj)/defkeymap.c
$(obj)/defkeymap.c $(obj)/%.c: $(src)/
$(obj)/defkeymap.c: $(obj)/%.c: $(src)/
loadkeys --mktable $< > $@.tmp
sed -e 's/^static *//' $@.tmp > $@
rm $@.tmp
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment