summaryrefslogtreecommitdiff
path: root/packages/hal/hal_0.5.11.bb
diff options
context:
space:
mode:
Diffstat (limited to 'packages/hal/hal_0.5.11.bb')
-rw-r--r--packages/hal/hal_0.5.11.bb10
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 e93ad64ac3..2b56fdfca5 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}
+}