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