• Maarten Bressers's avatar
    Correct Makefile rule for generating custom keymap · e2a57a81
    Maarten Bressers authored
    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/%.map', 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 <mbres@gentoo.org>
    Cc: Yoichi Yuasa <yoichi_yuasa@tripeaks.co.jp>
    Cc: Ralf Baechle <ralf@linux-mips.org>
    Cc: Sam Ravnborg <sam@ravnborg.org>
    Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
    Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
    e2a57a81
Makefile 4.22 KB