diff options
author | Denys Dmytriyenko <denis@denix.org> | 2008-11-10 20:17:02 -0500 |
---|---|---|
committer | Koen Kooi <koen@openembedded.org> | 2008-11-14 20:08:29 +0100 |
commit | ca344437bba2733bd3cc8b45fa113d3302e2a981 (patch) | |
tree | 97b37c49d2105d95fdea6120ab2f58a5388f260d /packages | |
parent | 4eb94e67b1d769fba1fad7bdc4c1c955c21479c8 (diff) |
hal: Find and use the right linux/input.h to work with external toolchain
Signed-off-by: Denys Dmytriyenko <denis@denix.org>
Diffstat (limited to 'packages')
-rw-r--r-- | 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 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} +} |