tcf-agent_git.bb 2.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  1. SUMMARY = "Target Communication Framework for the Eclipse IDE"
  2. HOMEPAGE = "http://wiki.eclipse.org/TCF"
  3. DESCRIPTION = "TCF is a vendor-neutral, lightweight, extensible network protocol mainly for communicating with embedded systems (targets)."
  4. BUGTRACKER = "https://bugs.eclipse.org/bugs/"
  5. LICENSE = "EPL-1.0 | EDL-1.0"
  6. LIC_FILES_CHKSUM = "file://edl-v10.html;md5=522a390a83dc186513f0500543ad3679"
  7. SRCREV = "4a2c4baaccbc8c29ce0297705de9a4e096d57ce5"
  8. PV = "1.7.0+git${SRCPV}"
  9. UPSTREAM_CHECK_GITTAGREGEX = "(?P<pver>(\d+(\.\d+)+))"
  10. SRC_URI = "git://git.eclipse.org/r/tcf/org.eclipse.tcf.agent.git;protocol=https;branch=master \
  11. file://ldflags.patch \
  12. file://tcf-agent.init \
  13. file://tcf-agent.service \
  14. "
  15. DEPENDS = "util-linux openssl"
  16. RDEPENDS:${PN} = "bash"
  17. S = "${WORKDIR}/git/agent"
  18. inherit update-rc.d systemd
  19. SYSTEMD_SERVICE:${PN} = "tcf-agent.service"
  20. INITSCRIPT_NAME = "tcf-agent"
  21. INITSCRIPT_PARAMS = "start 99 3 5 . stop 20 0 1 2 6 ."
  22. # mangling needed for make
  23. MAKE_ARCH = "`echo ${TARGET_ARCH} | sed s,i.86,i686, | sed s,aarch64.*,a64, | sed s,armeb,arm,`"
  24. MAKE_OS = "`echo ${TARGET_OS} | sed s,^linux.*,GNU/Linux,`"
  25. EXTRA_OEMAKE = "MACHINE=${MAKE_ARCH} OPSYS=${MAKE_OS} 'CC=${CC}' 'AR=${AR}'"
  26. LCL_STOP_SERVICES = "-DSERVICE_RunControl=0 -DSERVICE_Breakpoints=0 \
  27. -DSERVICE_Memory=0 -DSERVICE_Registers=0 -DSERVICE_MemoryMap=0 \
  28. -DSERVICE_StackTrace=0 -DSERVICE_Expressions=0"
  29. # These features don't compile for several cases.
  30. #
  31. CFLAGS:append:arc = " ${LCL_STOP_SERVICES}"
  32. CFLAGS:append:mips = " ${LCL_STOP_SERVICES}"
  33. CFLAGS:append:mips64 = " ${LCL_STOP_SERVICES}"
  34. CFLAGS:append:libc-musl = " ${LCL_STOP_SERVICES}"
  35. CFLAGS:append:powerpc64 = " ${LCL_STOP_SERVICES}"
  36. CFLAGS:append:powerpc64le = " ${LCL_STOP_SERVICES}"
  37. CFLAGS:append:riscv64 = " ${LCL_STOP_SERVICES}"
  38. CFLAGS:append:riscv32 = " ${LCL_STOP_SERVICES}"
  39. do_install() {
  40. oe_runmake install INSTALLROOT=${D}
  41. install -d ${D}${sysconfdir}/init.d/
  42. install -m 0755 ${WORKDIR}/tcf-agent.init ${D}${sysconfdir}/init.d/tcf-agent
  43. install -d ${D}${systemd_system_unitdir}
  44. install -m 0644 ${WORKDIR}/tcf-agent.service ${D}${systemd_system_unitdir}
  45. sed -i -e 's,@SBINDIR@,${sbindir},g' ${D}${systemd_system_unitdir}/tcf-agent.service
  46. }