From: Andreas Oberritter Date: Tue, 1 Feb 2011 15:16:16 +0000 (+0000) Subject: linux: don't patch unifdef.c if it doesn't exist X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c08301653c36dcc26f7535c2548ebd73d5907d9e;p=openembedded.git linux: don't patch unifdef.c if it doesn't exist * Fixes build with Linux 2.6.18. Signed-off-by: Andreas Oberritter --- diff --git a/recipes/linux/linux.inc b/recipes/linux/linux.inc index 156dbbe827..aca6a06218 100644 --- a/recipes/linux/linux.inc +++ b/recipes/linux/linux.inc @@ -76,7 +76,9 @@ do_configure_prepend() { # see https://patchwork.kernel.org/patch/11166/ # committed in 2.6.29 (commit d15bd1067b1fcb2b7250d22bc0c7c7fea0b759f7) - sed -i -e 's/getline/parseline/g' ${S}/scripts/unifdef.c + if [ -e ${S}/scripts/unifdef.c ]; then + sed -i -e 's/getline/parseline/g' ${S}/scripts/unifdef.c + fi echo "" > ${S}/.config