linux: don't patch unifdef.c if it doesn't exist
authorAndreas Oberritter <obi@opendreambox.org>
Tue, 1 Feb 2011 15:16:16 +0000 (15:16 +0000)
committerAndreas Oberritter <obi@opendreambox.org>
Fri, 11 Feb 2011 12:52:22 +0000 (12:52 +0000)
* Fixes build with Linux 2.6.18.

Signed-off-by: Andreas Oberritter <obi@opendreambox.org>
recipes/linux/linux.inc

index 156dbbe..aca6a06 100644 (file)
@@ -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