CANopenNode: recipe for building the CANopenSocket tools
PATCH 1/1 CANopenNode: recipe for building the CANopenSocket tools
Initial check-in for the CANopenSocket tools recipe.
--- .../canopennode/canopensocket_git.bb | 31 ++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 meta-oe/recipes-extended/canopennode/canopensocket_git.bb
meta-oe/recipes-extended/canopennode/canopensocket_git.bb new file +31 -0
@@ -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} +}
Signature · 1 line
1.9.1
Quoted 14 lines · cynthiachiu
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
meta-oe/recipes-extended/canopennode/canopensocket_git.bb new file +0
-0
meta-oe/recipes-extended/canopennode/canopensocket_git.bb line 7
Quoted 7 lines
meta-oe/recipes-extended/canopennode/canopensocket_git.bb new file +7
-0@@ -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}"
Can't you pick a known, working ${REV}? Using ${AUTOREV} makes it impossible to use this recipe disconnected from the internet (yes, that's still a concern in 2016!)
Quoted 25 lines
meta-oe/recipes-extended/canopennode/canopensocket_git.bb new file +24
-0+ +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} +}
Signature · 4 lines
------------------------------------------------------------ Gary Thomas | Consulting for the MLB Associates | Embedded world ------------------------------------------------------------
Quoted 36 lines · Gary Thomas
Quoted 23 lines · cynthiachiu
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.bbmeta-oe/recipes-extended/canopennode/canopensocket_git.bb new file +4
-0@@ -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"
meta-oe/recipes-extended/canopennode/canopensocket_git.bb line 7
Quoted 3 lines
meta-oe/recipes-extended/canopennode/canopensocket_git.bb new file +3
-0+ +SRC_URI = "git://github.com/CANopenNode/CANopenSocket.git" +SRCREV = "${AUTOREV}"Can't you pick a known, working ${REV}? Using ${AUTOREV} makes it impossible
to use this recipe disconnected from the internet (yes, that's still a concern
in 2016!)
Quoted 9 lines
+
meta-oe/recipes-extended/canopennode/canopensocket_git.bb line 14
Quoted 7 lines
meta-oe/recipes-extended/canopennode/canopensocket_git.bb new file +6
-0+S = "${WORKDIR}/git" + +do_compile_prepend() { + cd ${S} + git submodule init + git submodule update
This fetches things at do_compile time, which is not appropriate. Use gitsm:// instead of git:// and let the fetcher handle the submodules.
Signature · 5 lines
Christopher Larson clarson at kergoth dot com Founder - BitBake, OpenEmbedded, OpenZaurus Maintainer - Tslib Senior Software Engineer, Mentor Graphics
A message that is not in the archive (sent off-list or not yet received): CADNbA1q33HHYm-52EZjFLE1beKLusD_rHTD4HJGiLP_5mAOvxw@mail.gmail.com
Have you tried using the gitsm (
https://www.yoctoproject.org/docs/2.1/bitbake-user-manual/bitbake-user-manual.html#gitsm-fetcher)
fetcher instead of git? I believe gitsm should do all of the submodule init and update actions automatically rather than having to use a do_compile_prepend.
-Derek
On Wed, Jul 13, 2016 at 10:57 AM, cynthiachiu <[email protected]>
Quoted 62 lines
Quoted 58 lines · wrote:
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
meta-oe/recipes-extended/canopennode/canopensocket_git.bb new file +4
-0@@ -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"
meta-oe/recipes-extended/canopennode/canopensocket_git.bb new file +27
-1+ +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
Thanks for your feedback! I have updated it to use gitsm.
Quoted 80 lines · Derek Straka
Have you tried using the gitsm (
https://www.yoctoproject.org/docs/2.1/bitbake-user-manual/bitbake-user-manual.html#gitsm-fetcher
)
fetcher instead of git? I believe gitsm should do all of the submodule init and update actions automatically rather than having to use ado_compile_prepend.-Derek
On Wed, Jul 13, 2016 at 10:57 AM, cynthiachiu <[email protected]>
Quoted 54 lines
Quoted 52 lines · wrote:
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
meta-oe/recipes-extended/canopennode/canopensocket_git.bb new file +4
-0@@ -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"
meta-oe/recipes-extended/canopennode/canopensocket_git.bb new file +27
-1+ +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
Quoted 8 lines
Quoted 6 lines
--
_______________________________________________
Openembedded-devel mailing list
[email protected]
http://lists.openembedded.org/mailman/listinfo/openembedded-devel--
_______________________________________________
Openembedded-devel mailing list
[email protected]
http://lists.openembedded.org/mailman/listinfo/openembedded-devel