[oe-commits] Denys Dmytriyenko : hal: Find and use the right linux/input. h to work with external toolchain

GIT User account git at amethyst.openembedded.net
Fri Nov 14 19:08:43 UTC 2008


Module: openembedded.git
Branch: org.openembedded.dev
Commit: ca344437bba2733bd3cc8b45fa113d3302e2a981
URL:    http://gitweb.openembedded.net/?p=openembedded.git&a=commit;h=ca344437bba2733bd3cc8b45fa113d3302e2a981

Author: Denys Dmytriyenko <denis at denix.org>
Date:   Mon Nov 10 20:17:02 2008 -0500

hal: Find and use the right linux/input.h to work with external toolchain

Signed-off-by: Denys Dmytriyenko <denis at denix.org>

---

 packages/hal/hal_0.5.11.bb |   10 ++++++++--
 1 files changed, 8 insertions(+), 2 deletions(-)

diff --git a/packages/hal/hal_0.5.11.bb b/packages/hal/hal_0.5.11.bb
index e93ad64..2b56fdf 100644
--- a/packages/hal/hal_0.5.11.bb
+++ b/packages/hal/hal_0.5.11.bb
@@ -1,8 +1,14 @@
 require hal.inc
 
-PR = "r1"
+PR = "r2"
 
 SRC_URI += " file://hal-right-input-h.patch;patch=1 \
              file://fix-configure.diff;patch=1"
 
-EXTRA_OECONF += "--with-linux-input-header=${STAGING_INCDIR}/linux/input.h"
+# The following code finds the right linux/input.h,
+# which also works with external-toolchain/SDK
+do_configure() {
+	linux_input_h=`echo "#include <linux/input.h>" | ${CPP} - | \
+		grep "linux\/input.h" | head -n 1 | awk -F '"' '{print $2}'`
+	autotools_do_configure --with-linux-input-header=${linux_input_h}
+}





More information about the Openembedded-commits mailing list