* Build the input utils for ARM to enable these for system test

Signed-off-by: Chase Maupin <[email protected]>
---
 ...utoconf-fix-for-cross-compilation-for-ARM.patch |   67 ++++++++++++++++++++
 .../input-utils/input-utils_git.bb                 |   30 +++++++++
 2 files changed, 97 insertions(+), 0 deletions(-)
 create mode 100644 
meta-arago-extras/recipes-devtools/input-utils/input-utils/0001-autoconf-fix-for-cross-compilation-for-ARM.patch
 create mode 100644 
meta-arago-extras/recipes-devtools/input-utils/input-utils_git.bb

diff --git 
a/meta-arago-extras/recipes-devtools/input-utils/input-utils/0001-autoconf-fix-for-cross-compilation-for-ARM.patch
 
b/meta-arago-extras/recipes-devtools/input-utils/input-utils/0001-autoconf-fix-for-cross-compilation-for-ARM.patch
new file mode 100644
index 0000000..7230869
--- /dev/null
+++ 
b/meta-arago-extras/recipes-devtools/input-utils/input-utils/0001-autoconf-fix-for-cross-compilation-for-ARM.patch
@@ -0,0 +1,67 @@
+From fb1bbf8342c4a87380964465443bbb4b61dc0259 Mon Sep 17 00:00:00 2001
+From: Chase Maupin <[email protected]>
+Date: Tue, 5 Nov 2013 05:22:10 -0600
+Subject: [PATCH] autoconf: fix for cross compilation for ARM
+
+* Based on changes from Yebio Mesfin fixup the input-utils to
+  cross compile for ARM.
+
+Signed-off-by: Chase Maupin <[email protected]>
+---
+ mk/Autoconf.mk  |    8 ++++++--
+ mk/Variables.mk |    4 ++--
+ 2 files changed, 8 insertions(+), 4 deletions(-)
+
+diff --git a/mk/Autoconf.mk b/mk/Autoconf.mk
+index 7608ea5..95999cc 100644
+--- a/mk/Autoconf.mk
++++ b/mk/Autoconf.mk
+@@ -47,11 +47,13 @@ ac_uname = $(shell \
+       $(call ac_s_cmd,uname -s | tr 'A-Z' 'a-z');\
+       $(call ac_fini))
+ 
+-ac_uname_arch = $(shell \
++#ac_uname_arch = $(shell \
+       $(call ac_init,for arch);\
+       $(call ac_s_cmd,uname -m | tr 'A-Z' 'a-z');\
+       $(call ac_fini))
+ 
++ac_uname_arch = arm
++
+ # check for some header file
+ # args: header file
+ ac_header = $(shell \
+@@ -108,12 +110,14 @@ ac_binary = $(shell \
+ #     $(call ac_s_cmd,$(CC) -print-search-dirs | grep -q lib64 &&\
+ #             echo "lib64" || echo "lib");\
+ #     $(call ac_fini))
+-ac_lib64 = $(shell \
++#ac_lib64 = $(shell \
+       $(call ac_init,for libdir name);\
+       $(call ac_s_cmd,/sbin/ldconfig -p | grep -q lib64 &&\
+               echo "lib64" || echo "lib");\
+       $(call ac_fini))
+ 
++ac_lib64 = gcc
++
+ # check for x11 ressource dir prefix
+ ac_resdir = $(shell \
+       $(call ac_init,for X11 app-defaults prefix);\
+diff --git a/mk/Variables.mk b/mk/Variables.mk
+index 99f787c..fd47f73 100644
+--- a/mk/Variables.mk
++++ b/mk/Variables.mk
+@@ -24,8 +24,8 @@ endif
+ RELTAG        := v$(subst .,_,$(VERSION))
+ 
+ # programs
+-CC            ?= gcc
+-CXX           ?= g++
++CC            ?= $(CROSS_COMPILE)gcc
++CXX           ?= $(CROSS_COMPILE)g++
+ MOC             ?= $(if $(QTDIR),$(QTDIR)/bin/moc,moc)
+ 
+ STRIP         ?= -s
+-- 
+1.7.0.4
+
diff --git a/meta-arago-extras/recipes-devtools/input-utils/input-utils_git.bb 
b/meta-arago-extras/recipes-devtools/input-utils/input-utils_git.bb
new file mode 100644
index 0000000..30a7454
--- /dev/null
+++ b/meta-arago-extras/recipes-devtools/input-utils/input-utils_git.bb
@@ -0,0 +1,30 @@
+DESCRIPTION = "Utilities for the Linux input drivers"
+HOMEPAGE = "http://packages.tanglu.org/source/aequorea/input-utils";
+
+LICENSE = "GPLv2"
+LIC_FILES_CHKSUM = "file://COPYING;md5=8ca43cbc842c2336e835926c2166c28b"
+
+PV = "1.0"
+PR = "r0"
+
+BRANCH ?= "master"
+SRCREV = "230a22bda95ea5616251b43db418f9df445651b6"
+
+SRC_URI = 
"git://git.debian.org/collab-maint/input-utils.git;protocol=git;branch=${BRANCH}"
+SRC_URI_append_arm = " 
file://0001-autoconf-fix-for-cross-compilation-for-ARM.patch"
+
+S = "${WORKDIR}/git"
+
+do_compile () {
+    oe_runmake
+}
+
+# set the DESTDIR and the STRIP variables used by the GNUmakefile.
+# The STRIP variable is set to blank or else the variable setting from OE
+# is picked up as <TC>-strip and the install step sees that as another
+# file to install.
+EXTRA_OEMAKE = "DESTDIR=${D} STRIP=''"
+
+do_install () {
+    oe_runmake install
+}
-- 
1.7.0.4

_______________________________________________
meta-arago mailing list
[email protected]
http://arago-project.org/cgi-bin/mailman/listinfo/meta-arago

Reply via email to