summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorOtavio Salvador <otavio@ossystems.com.br>2018-05-24 09:44:33 -0300
committerOtavio Salvador <otavio@ossystems.com.br>2018-05-24 09:44:33 -0300
commit0716c84177a1e73dfe49cddfd884295007424095 (patch)
treec6643f8566b5f642b8b208906eae4e5b56efc5c8
parentd6225d7d1c5b26b10e804a44d7eacbbaec620429 (diff)
parenta4ea62756cdfaefe27521cdcd748092bb2d18cbb (diff)
downloadmeta-freescale-0716c84177a1e73dfe49cddfd884295007424095.tar.gz
Merge branch 'feature-add-utp-com' of https://github.com/nefethael/meta-freescale
* 'feature-add-utp-com' of https://github.com/nefethael/meta-freescale: utp-com: Add recipe Change-Id: I82914ae1496da1688334de969c5ecb43852ccacf
-rw-r--r--recipes-devtools/utp-com/utp-com/0001-Fix-Makefile-for-crosscompilation.patch19
-rw-r--r--recipes-devtools/utp-com/utp-com_git.bb28
-rw-r--r--recipes-support/sg3-utils/sg3-utils_%.bbappend1
3 files changed, 48 insertions, 0 deletions
diff --git a/recipes-devtools/utp-com/utp-com/0001-Fix-Makefile-for-crosscompilation.patch b/recipes-devtools/utp-com/utp-com/0001-Fix-Makefile-for-crosscompilation.patch
new file mode 100644
index 00000000..5db050c1
--- /dev/null
+++ b/recipes-devtools/utp-com/utp-com/0001-Fix-Makefile-for-crosscompilation.patch
@@ -0,0 +1,19 @@
1--- a/makefile
2+++ b/makefile
3@@ -1,10 +1,12 @@
4-CC=gcc
5-CFLAGS=-I. -Wall -O2
6-DEPS=
7+CC ?= gcc
8+CFLAGS ?= -I. -Wall -O2
9+LDFLAGS ?=
10+DEPS ?=
11+
12 OBJ=utp_com.o
13
14 %.o: %.c $(DEPS)
15 $(CC) -c -o $@ $< $(CFLAGS)
16
17 utp_com: $(OBJ)
18- gcc -o $@ $^ $(CFLAGS)
19+ $(CC) -o $@ $^ $(LDFLAGS)
diff --git a/recipes-devtools/utp-com/utp-com_git.bb b/recipes-devtools/utp-com/utp-com_git.bb
new file mode 100644
index 00000000..163f5852
--- /dev/null
+++ b/recipes-devtools/utp-com/utp-com_git.bb
@@ -0,0 +1,28 @@
1DESCRIPTION = "Tool used to send commands to hardware via NXP's UTP protocol"
2LICENSE = "GPLv2"
3LIC_FILES_CHKSUM = "file://LICENSE;md5=8264535c0c4e9c6c335635c4026a8022"
4
5DEPENDS = "sg3-utils"
6
7SRCREV = "7fe590fef812561cceb08aaa10b64e9bac8f542f"
8SRC_URI = " \
9 git://github.com/ixonos/utp_com;protocol=https \
10 file://0001-Fix-Makefile-for-crosscompilation.patch \
11"
12
13PV = "1.0+git${SRCPV}"
14
15S = "${WORKDIR}/git"
16
17do_configure[noexec] = "1"
18
19do_compile () {
20 oe_runmake
21}
22
23do_install () {
24 install -d -m 0755 ${D}${bindir}
25 install -m 0755 ${S}/utp_com ${D}${bindir}/utp_com
26}
27
28BBCLASSEXTEND = "native nativesdk"
diff --git a/recipes-support/sg3-utils/sg3-utils_%.bbappend b/recipes-support/sg3-utils/sg3-utils_%.bbappend
new file mode 100644
index 00000000..608377e3
--- /dev/null
+++ b/recipes-support/sg3-utils/sg3-utils_%.bbappend
@@ -0,0 +1 @@
BBCLASSEXTEND = "native nativesdk"