[oe-commits] Andreas Oberritter : linux: don't patch unifdef.c if it doesn't exist
git version control
git at git.openembedded.org
Fri Feb 11 12:54:25 UTC 2011
Module: openembedded.git
Branch: master
Commit: c08301653c36dcc26f7535c2548ebd73d5907d9e
URL: http://gitweb.openembedded.net/?p=openembedded.git&a=commit;h=c08301653c36dcc26f7535c2548ebd73d5907d9e
Author: Andreas Oberritter <obi at opendreambox.org>
Date: Tue Feb 1 15:16:16 2011 +0000
linux: don't patch unifdef.c if it doesn't exist
* Fixes build with Linux 2.6.18.
Signed-off-by: Andreas Oberritter <obi at opendreambox.org>
---
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 156dbbe..aca6a06 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
More information about the Openembedded-commits
mailing list