]> git.karo-electronics.de Git - karo-tx-linux.git/commit
kbuild: make: fix if_changed when command contains backslashes
authorSascha Hauer <s.hauer@pengutronix.de>
Thu, 13 Sep 2012 00:58:21 +0000 (10:58 +1000)
committerStephen Rothwell <sfr@canb.auug.org.au>
Mon, 17 Sep 2012 10:36:35 +0000 (20:36 +1000)
commite69f8bcfd751ad1bae23d423548d9c20199e3467
tree4f79b428cea54c26a26a92d489eb15b4a20f5ef7
parentaeb2bc42e6ab43047db66e4aa5d0f5b98768ffe5
kbuild: make: fix if_changed when command contains backslashes

The call if_changed mechanism does not work when the command
contains backslashes. This basically is an issue with lzo
and bzip2 compressed kernels. The compressed binaries do not
contain the uncompressed image size, so these use size_append
to append the size. This results in backslashes in the executed
command. With this if_changed always detects a change in the
command and rebuilds the compressed image even if nothing
has changed.

Fix this by escaping backslashes in make-cmd

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Signed-off-by: Jan Luebbe <jlu@pengutronix.de>
Cc: Sam Ravnborg <sam@ravnborg.org>
Cc: Bernhard Walle <bernhard@bwalle.de>
Cc: Michal Marek <mmarek@suse.cz>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
scripts/Kbuild.include