kbuild: Fix GNU make v3.80 compatibility
authorKevin Cernekee <cernekee@gmail.com>
Tue, 10 May 2011 22:47:16 +0000 (15:47 -0700)
committerSteve Conklin <sconklin@canonical.com>
Fri, 15 Jul 2011 17:21:09 +0000 (12:21 -0500)
commit2d0ac03c3f4a858f633242b489f7e3847a75219b
treeb8f9904d0c93c0140d1b42b54b43bc5db1502c6b
parent18993f5c92775cf1e0f30452067378f8230a821e
kbuild: Fix GNU make v3.80 compatibility

BugLink: http://bugs.launchpad.net/bugs/793702

commit 43f67c98161c65f1b2e3af3a9ce6741850072c06 upstream.

According to Documentation/Changes, the kernel should be buildable with
GNU make 3.80+.  Commit 88d7be031f9f975bb3f50a0b5ef3796a671e7edf (kbuild:
Use a single clean rule for kernel and external modules) introduced the
"$(or" construct, which requires make 3.81.  This causes "make clean" to
malfunction when it is used with external modules.

Replace "$(or" with an equivalent "$(if" expression, to restore backward
compatibility.

Signed-off-by: Kevin Cernekee <cernekee@gmail.com>
Signed-off-by: Michal Marek <mmarek@suse.cz>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Signed-off-by: Tim Gardner <tim.gardner@canonical.com>
Makefile