aboutsummaryrefslogtreecommitdiffstats
path: root/recipes/linux/linux.inc
diff options
context:
space:
mode:
authorAndreas Oberritter <obi@opendreambox.org>2011-02-01 15:16:16 +0000
committerAndreas Oberritter <obi@opendreambox.org>2011-02-11 12:52:22 +0000
commitc08301653c36dcc26f7535c2548ebd73d5907d9e (patch)
tree0198a9be02b1d0787512b957de919ada833594a9 /recipes/linux/linux.inc
parent53b3d8cd388c01fcb5f7da39de4f40444cd8f796 (diff)
downloadopenembedded-c08301653c36dcc26f7535c2548ebd73d5907d9e.tar.gz
linux: don't patch unifdef.c if it doesn't exist
* Fixes build with Linux 2.6.18. Signed-off-by: Andreas Oberritter <obi@opendreambox.org>
Diffstat (limited to 'recipes/linux/linux.inc')
-rw-r--r--recipes/linux/linux.inc4
1 files changed, 3 insertions, 1 deletions
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