Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 1 | SUMMARY = "Target Communication Framework for the Eclipse IDE" |
| 2 | HOMEPAGE = "http://wiki.eclipse.org/TCF" |
Andrew Geissler | 90fd73c | 2021-03-05 15:25:55 -0600 | [diff] [blame] | 3 | DESCRIPTION = "TCF is a vendor-neutral, lightweight, extensible network protocol mainly for communicating with embedded systems (targets)." |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 4 | BUGTRACKER = "https://bugs.eclipse.org/bugs/" |
| 5 | |
| 6 | LICENSE = "EPL-1.0 | EDL-1.0" |
| 7 | LIC_FILES_CHKSUM = "file://edl-v10.html;md5=522a390a83dc186513f0500543ad3679" |
| 8 | |
Andrew Geissler | 5199d83 | 2021-09-24 16:47:35 -0500 | [diff] [blame] | 9 | SRCREV = "2735e3d6b7eccb05ab232825c618c837d27a5010" |
Brad Bishop | 1a4b7ee | 2018-12-16 17:11:34 -0800 | [diff] [blame] | 10 | PV = "1.7.0+git${SRCPV}" |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 11 | |
Patrick Williams | d8c66bc | 2016-06-20 12:57:21 -0500 | [diff] [blame] | 12 | UPSTREAM_CHECK_GITTAGREGEX = "(?P<pver>(\d+(\.\d+)+))" |
Andrew Geissler | 595f630 | 2022-01-24 19:11:47 +0000 | [diff] [blame] | 13 | SRC_URI = "git://git.eclipse.org/r/tcf/org.eclipse.tcf.agent.git;protocol=https;branch=master \ |
Patrick Williams | d8c66bc | 2016-06-20 12:57:21 -0500 | [diff] [blame] | 14 | file://ldflags.patch \ |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 15 | file://tcf-agent.init \ |
| 16 | file://tcf-agent.service \ |
| 17 | " |
| 18 | |
| 19 | DEPENDS = "util-linux openssl" |
Patrick Williams | 213cb26 | 2021-08-07 19:21:33 -0500 | [diff] [blame] | 20 | RDEPENDS:${PN} = "bash" |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 21 | |
| 22 | S = "${WORKDIR}/git/agent" |
| 23 | |
| 24 | inherit update-rc.d systemd |
| 25 | |
Patrick Williams | 213cb26 | 2021-08-07 19:21:33 -0500 | [diff] [blame] | 26 | SYSTEMD_SERVICE:${PN} = "tcf-agent.service" |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 27 | |
| 28 | INITSCRIPT_NAME = "tcf-agent" |
| 29 | INITSCRIPT_PARAMS = "start 99 3 5 . stop 20 0 1 2 6 ." |
| 30 | |
| 31 | # mangling needed for make |
Andrew Geissler | 82c905d | 2020-04-13 13:39:40 -0500 | [diff] [blame] | 32 | MAKE_ARCH = "`echo ${TARGET_ARCH} | sed s,i.86,i686, | sed s,aarch64.*,a64, | sed s,armeb,arm,`" |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 33 | MAKE_OS = "`echo ${TARGET_OS} | sed s,^linux.*,GNU/Linux,`" |
| 34 | |
| 35 | EXTRA_OEMAKE = "MACHINE=${MAKE_ARCH} OPSYS=${MAKE_OS} 'CC=${CC}' 'AR=${AR}'" |
| 36 | |
Brad Bishop | d7bf8c1 | 2018-02-25 22:55:05 -0500 | [diff] [blame] | 37 | LCL_STOP_SERVICES = "-DSERVICE_RunControl=0 -DSERVICE_Breakpoints=0 \ |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 38 | -DSERVICE_Memory=0 -DSERVICE_Registers=0 -DSERVICE_MemoryMap=0 \ |
Brad Bishop | d7bf8c1 | 2018-02-25 22:55:05 -0500 | [diff] [blame] | 39 | -DSERVICE_StackTrace=0 -DSERVICE_Expressions=0" |
| 40 | |
| 41 | |
| 42 | # These features don't compile for several cases. |
| 43 | # |
Patrick Williams | 213cb26 | 2021-08-07 19:21:33 -0500 | [diff] [blame] | 44 | CFLAGS:append:arc = " ${LCL_STOP_SERVICES}" |
| 45 | CFLAGS:append:mips = " ${LCL_STOP_SERVICES}" |
| 46 | CFLAGS:append:mips64 = " ${LCL_STOP_SERVICES}" |
| 47 | CFLAGS:append:libc-musl = " ${LCL_STOP_SERVICES}" |
| 48 | CFLAGS:append:powerpc64 = " ${LCL_STOP_SERVICES}" |
| 49 | CFLAGS:append:powerpc64le = " ${LCL_STOP_SERVICES}" |
| 50 | CFLAGS:append:riscv64 = " ${LCL_STOP_SERVICES}" |
| 51 | CFLAGS:append:riscv32 = " ${LCL_STOP_SERVICES}" |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 52 | |
| 53 | do_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 Geissler | 5199d83 | 2021-09-24 16:47:35 -0500 | [diff] [blame] | 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 |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 60 | } |
| 61 | |