mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH] Correct Makefile rule for generating custom keymap.
@ 2007-10-08 22:41 Maarten Bressers
  0 siblings, 0 replies; only message in thread
From: Maarten Bressers @ 2007-10-08 22:41 UTC (permalink / raw)
  To: akpm; +Cc: linux-kernel, yoichi_yuasa, dsd

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 af8b128719f5248e542036ea994610a29d0642a6,
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: Maarten Bressers <mbres@gentoo.org>


--- a/drivers/char/Makefile	2007-10-08 23:46:47.000000000 +0200
+++ b/drivers/char/Makefile	2007-10-08 23:46:57.000000000 +0200
@@ -129,7 +129,7 @@ $(obj)/defkeymap.o:  $(obj)/defkeymap.c
 
 ifdef GENERATE_KEYMAP
 
-$(obj)/defkeymap.c $(obj)/%.c: $(src)/%.map
+$(obj)/defkeymap.c: $(obj)/%.c: $(src)/%.map
 	loadkeys --mktable $< > $@.tmp
 	sed -e 's/^static *//' $@.tmp > $@
 	rm $@.tmp

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2007-10-08 22:41 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-10-08 22:41 [PATCH] Correct Makefile rule for generating custom keymap Maarten Bressers

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®