blob: 59b9d7de789eb03f6608ba1fa45e2e8bab65972b [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
Patrick Williams2a254922023-08-11 09:48:11 -05009SRCREV = "1f11747e83ebf4f53e8d17f430136f92ec378709"
Andrew Geissler5082cc72023-09-11 08:41:39 -040010PV = "1.8.0+git"
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}"
Andrew Geissler5082cc72023-09-11 08:41:39 -040052CFLAGS:append:loongarch64 = " ${LCL_STOP_SERVICES}"
Patrick Williamsc124f4f2015-09-15 14:41:29 -050053
54do_install() {
55 oe_runmake install INSTALLROOT=${D}
56 install -d ${D}${sysconfdir}/init.d/
57 install -m 0755 ${WORKDIR}/tcf-agent.init ${D}${sysconfdir}/init.d/tcf-agent
Andrew Geissler5199d832021-09-24 16:47:35 -050058 install -d ${D}${systemd_system_unitdir}
59 install -m 0644 ${WORKDIR}/tcf-agent.service ${D}${systemd_system_unitdir}
60 sed -i -e 's,@SBINDIR@,${sbindir},g' ${D}${systemd_system_unitdir}/tcf-agent.service
Patrick Williamsc124f4f2015-09-15 14:41:29 -050061}
62