Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

[PATCH] kbuild: Eliminate build error when KALLSYMS not defined

The following build error happens with 2.6.14-rc4 when CONFIG_KALLSYMS is
not defined. The error message in a fragment of the output was:

CC arch/i386/lib/usercopy.o
AR arch/i386/lib/lib.a
/bin/sh: line 1: +@: command not found
make[3]: warning: jobserver unavailable: using -j1. Add `+' to parent make rule.
CHK include/linux/compile.h

Signed-off-by: Mark Rustad <mrustad@mac.com>
Signed-off-by: Sam Ravnborg <sam@ravnborg.org>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>

authored by

Mark Rustad and committed by
Linus Torvalds
39ca371c 4faa5285

+3 -1
+3 -1
Makefile
··· 660 660 # Link of vmlinux 661 661 # If CONFIG_KALLSYMS is set .version is already updated 662 662 # Generate System.map and verify that the content is consistent 663 - 663 + # Use + in front of the vmlinux_version rule to silent warning with make -j2 664 + # First command is ':' to allow us to use + in front of the rule 664 665 define rule_vmlinux__ 666 + : 665 667 $(if $(CONFIG_KALLSYMS),,+$(call cmd,vmlinux_version)) 666 668 667 669 $(call cmd,vmlinux__)