blob: 0d627f4e2365a1e9c5f9b044901e96829825289d [file] [log] [blame]
Patrick Williamsc124f4f2015-09-15 14:41:29 -05001SUMMARY = "Target Communication Framework for the Eclipse IDE"
2HOMEPAGE = "http://wiki.eclipse.org/TCF"
Andrew Geissler90fd73c2021-03-05 15:25:55 -06003DESCRIPTION = "TCF is a vendor-neutral, lightweight, extensible network protocol mainly for communicating with embedded systems (targets)."
Patrick Williamsc124f4f2015-09-15 14:41:29 -05004BUGTRACKER = "https://bugs.eclipse.org/bugs/"
5
6LICENSE = "EPL-1.0 | EDL-1.0"
7LIC_FILES_CHKSUM = "file://edl-v10.html;md5=522a390a83dc186513f0500543ad3679"
8
Andrew Geissler5199d832021-09-24 16:47:35 -05009SRCREV = "2735e3d6b7eccb05ab232825c618c837d27a5010"
Brad Bishop1a4b7ee2018-12-16 17:11:34 -080010PV = "1.7.0+git${SRCPV}"
Patrick Williamsc124f4f2015-09-15 14:41:29 -050011
Patrick Williamsd8c66bc2016-06-20 12:57:21 -050012UPSTREAM_CHECK_GITTAGREGEX = "(?P<pver>(\d+(\.\d+)+))"
Andrew Geissler595f6302022-01-24 19:11:47 +000013SRC_URI = "git://git.eclipse.org/r/tcf/org.eclipse.tcf.agent.git;protocol=https;branch=master \
Patrick Williamsd8c66bc2016-06-20 12:57:21 -050014 file://ldflags.patch \
Patrick Williamsc124f4f2015-09-15 14:41:29 -050015 file://tcf-agent.init \
16 file://tcf-agent.service \
17 "
18
19DEPENDS = "util-linux openssl"
Patrick Williams213cb262021-08-07 19:21:33 -050020RDEPENDS:${PN} = "bash"
Patrick Williamsc124f4f2015-09-15 14:41:29 -050021
22S = "${WORKDIR}/git/agent"
23
24inherit update-rc.d systemd
25
Patrick Williams213cb262021-08-07 19:21:33 -050026SYSTEMD_SERVICE:${PN} = "tcf-agent.service"
Patrick Williamsc124f4f2015-09-15 14:41:29 -050027
28INITSCRIPT_NAME = "tcf-agent"
29INITSCRIPT_PARAMS = "start 99 3 5 . stop 20 0 1 2 6 ."
30
31# mangling needed for make
Andrew Geissler82c905d2020-04-13 13:39:40 -050032MAKE_ARCH = "`echo ${TARGET_ARCH} | sed s,i.86,i686, | sed s,aarch64.*,a64, | sed s,armeb,arm,`"
Patrick Williamsc124f4f2015-09-15 14:41:29 -050033MAKE_OS = "`echo ${TARGET_OS} | sed s,^linux.*,GNU/Linux,`"
34
35EXTRA_OEMAKE = "MACHINE=${MAKE_ARCH} OPSYS=${MAKE_OS} 'CC=${CC}' 'AR=${AR}'"
36
Brad Bishopd7bf8c12018-02-25 22:55:05 -050037LCL_STOP_SERVICES = "-DSERVICE_RunControl=0 -DSERVICE_Breakpoints=0 \
Patrick Williamsc124f4f2015-09-15 14:41:29 -050038 -DSERVICE_Memory=0 -DSERVICE_Registers=0 -DSERVICE_MemoryMap=0 \
Brad Bishopd7bf8c12018-02-25 22:55:05 -050039 -DSERVICE_StackTrace=0 -DSERVICE_Expressions=0"
40
41
42# These features don't compile for several cases.
43#
Patrick Williams213cb262021-08-07 19:21:33 -050044CFLAGS: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}"
Patrick Williamsc124f4f2015-09-15 14:41:29 -050052
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
Andrew Geissler5199d832021-09-24 16:47:35 -050057 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
Patrick Williamsc124f4f2015-09-15 14:41:29 -050060}
61