Initial check-in for the CANopenSocket tools recipe.
Signed-off-by: cynthiachiu <[email protected]>
---
.../canopennode/canopensocket_git.bb | 31 ++++++++++++++++++++++
1 file changed, 31 insertions(+)
create mode 100644 meta-oe/recipes-extended/canopennode/canopensocket_git.bb
diff --git a/meta-oe/recipes-extended/canopennode/canopensocket_git.bb
b/meta-oe/recipes-extended/canopennode/canopensocket_git.bb
new file mode 100644
index 0000000..4506698
--- /dev/null
+++ b/meta-oe/recipes-extended/canopennode/canopensocket_git.bb
@@ -0,0 +1,31 @@
+SUMMARY = "Linux CANOpen tools"
+DESCRIPTION = "Linux CANOpen Protocol Stack Tools"
+LICENSE = "GPLv2"
+LIC_FILES_CHKSUM = "file://gpl-2.0.txt;md5=b234ee4d69f5fce4486a80fdaf4a4263"
+
+SRC_URI = "git://github.com/CANopenNode/CANopenSocket.git"
+SRCREV = "${AUTOREV}"
+
+S = "${WORKDIR}/git"
+
+do_compile_prepend() {
+ cd ${S}
+ git submodule init
+ git submodule update
+}
+
+do_compile() {
+ cd ${S}/canopend
+ make
+ cd ${S}/canopencomm
+ make
+ cd ${S}/canopencgi
+ make
+}
+
+do_install(){
+ install -d ${D}${bindir}
+ install -m 0755 ${S}/canopend/app/canopend ${D}${bindir}
+ install -m 0755 ${S}/canopencomm/canopencomm ${D}${bindir}
+ install -m 0755 ${S}/canopencgi/canopen.cgi ${D}${bindir}
+}
--
1.9.1
--
_______________________________________________
Openembedded-devel mailing list
[email protected]
http://lists.openembedded.org/mailman/listinfo/openembedded-devel