diff options
author | Andreas Oberritter <obi@opendreambox.org> | 2011-02-01 15:16:16 +0000 |
---|---|---|
committer | Andreas Oberritter <obi@opendreambox.org> | 2011-02-11 12:52:22 +0000 |
commit | c08301653c36dcc26f7535c2548ebd73d5907d9e (patch) | |
tree | 0198a9be02b1d0787512b957de919ada833594a9 | |
parent | 53b3d8cd388c01fcb5f7da39de4f40444cd8f796 (diff) | |
download | openembedded-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>
-rw-r--r-- | recipes/linux/linux.inc | 4 |
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 |