From f5952ed1ab643a31ac014f8455d81f28330573b0 Mon Sep 17 00:00:00 2001 From: Patrick Venture Date: Thu, 5 Oct 2017 16:25:40 -0700 Subject: devtools: iotools: add service to create symlinks The iotools binary is meant to be called via symlinks, similarly to busybox. Therefore, the recipe should provide a service that kicks that off for the user. Change-Id: I64b69bf18bd39e324ba9c6922cdf08b88caf43e2 Signed-off-by: Patrick Venture --- .../recipes-devtools/iotools/iotools/iotools-setup.service | 11 +++++++++++ meta-phosphor/common/recipes-devtools/iotools/iotools_1.6.bb | 4 ++++ 2 files changed, 15 insertions(+) create mode 100644 meta-phosphor/common/recipes-devtools/iotools/iotools/iotools-setup.service diff --git a/meta-phosphor/common/recipes-devtools/iotools/iotools/iotools-setup.service b/meta-phosphor/common/recipes-devtools/iotools/iotools/iotools-setup.service new file mode 100644 index 000000000..7cc95a0db --- /dev/null +++ b/meta-phosphor/common/recipes-devtools/iotools/iotools/iotools-setup.service @@ -0,0 +1,11 @@ +[Unit] +Description=Install iotool links + +[Service] +RemainAfterExit=no +Type=oneshot +ExecStart=/usr/bin/env iotools --make-links +SystlogIdentifier=iotools + +[Install] +WantedBy={SYSTEMD_DEFAULT_TARGET} diff --git a/meta-phosphor/common/recipes-devtools/iotools/iotools_1.6.bb b/meta-phosphor/common/recipes-devtools/iotools/iotools_1.6.bb index 0fc872dc1..2a3928699 100644 --- a/meta-phosphor/common/recipes-devtools/iotools/iotools_1.6.bb +++ b/meta-phosphor/common/recipes-devtools/iotools/iotools_1.6.bb @@ -6,6 +6,8 @@ SRCREV = "223a7be0885dd3d0dba910d55d06745bdfd846d8" SRC_URI = "git://git@github.com/jonmayergoogle/iotools.git;protocol=https" PV = "v1.6+git${SRCPV}" +inherit obmc-phosphor-systemd + S = "${WORKDIR}/git" FILES_${PN} = "${sbindir}" @@ -20,3 +22,5 @@ do_install() { install -d ${D}${sbindir} install -m 0755 iotools ${D}${sbindir} } + +SYSTEMD_SERVICE_${PN} += "iotools-setup.service" -- cgit v1.2.1