All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/1] watchdog: enable systemd support
@ 2017-08-22  8:29 kai.kang
  2017-08-22  8:29 ` [PATCH 1/1] " kai.kang
  2017-08-29  3:13 ` [PATCH 0/1] " Kang Kai
  0 siblings, 2 replies; 4+ messages in thread
From: kai.kang @ 2017-08-22  8:29 UTC (permalink / raw)
  To: openembedded-core

From: Kai Kang <kai.kang@windriver.com>

The following changes since commit 04dc76713b57f28457742dd863caa663591d4866:

  devtool/copy_buildsystem: adds meta-skeleton layer in the eSDK installation. (2017-08-19 22:15:39 +0100)

are available in the git repository at:

  git://git.pokylinux.org/poky-contrib kangkai/watchdog
  http://git.pokylinux.org/cgit.cgi/poky-contrib/log/?h=kangkai/watchdog

Kai Kang (1):
  watchdog: enable systemd support

 meta/recipes-extended/watchdog/watchdog_5.15.bb | 15 ++++++++++-----
 1 file changed, 10 insertions(+), 5 deletions(-)

-- 
2.10.1



^ permalink raw reply	[flat|nested] 4+ messages in thread

* [PATCH 1/1] watchdog: enable systemd support
  2017-08-22  8:29 [PATCH 0/1] watchdog: enable systemd support kai.kang
@ 2017-08-22  8:29 ` kai.kang
  2017-08-29  3:13 ` [PATCH 0/1] " Kang Kai
  1 sibling, 0 replies; 4+ messages in thread
From: kai.kang @ 2017-08-22  8:29 UTC (permalink / raw)
  To: openembedded-core

From: Kai Kang <kai.kang@windriver.com>

Inherit systemd.bbclass to enable systemd support for watchdog.

And fix indentation of do_install_append() as well according to:
https://www.openembedded.org/wiki/Styleguide#Format_Guidelines

Signed-off-by: Kai Kang <kai.kang@windriver.com>
---
 meta/recipes-extended/watchdog/watchdog_5.15.bb | 15 ++++++++++-----
 1 file changed, 10 insertions(+), 5 deletions(-)

diff --git a/meta/recipes-extended/watchdog/watchdog_5.15.bb b/meta/recipes-extended/watchdog/watchdog_5.15.bb
index 9659f27..3d0b72e 100644
--- a/meta/recipes-extended/watchdog/watchdog_5.15.bb
+++ b/meta/recipes-extended/watchdog/watchdog_5.15.bb
@@ -21,8 +21,7 @@ SRC_URI[sha256sum] = "ffdc865137ad5d8e53664bd22bad4de6ca136d1b4636720320cb52af0c
 UPSTREAM_CHECK_URI = "http://sourceforge.net/projects/watchdog/files/watchdog/"
 UPSTREAM_CHECK_REGEX = "/watchdog/(?P<pver>(\d+[\.\-_]*)+)/"
 
-inherit autotools
-inherit update-rc.d
+inherit autotools update-rc.d systemd
 
 DEPENDS_append_libc-musl = " libtirpc "
 CFLAGS_append_libc-musl = " -I${STAGING_INCDIR}/tirpc "
@@ -37,12 +36,18 @@ INITSCRIPT_PARAMS_${PN} = "start 15 1 2 3 4 5 . stop 85 0 6 ."
 INITSCRIPT_NAME_${PN}-keepalive = "wd_keepalive"
 INITSCRIPT_PARAMS_${PN}-keepalive = "start 15 1 2 3 4 5 . stop 85 0 6 ."
 
+SYSTEMD_SERVICE_${PN} = "watchdog.service wd_keepalive.service"
+
 do_install_append() {
+	install -d ${D}${systemd_system_unitdir}
+	install -m 0644 ${S}/debian/watchdog.service ${D}${systemd_system_unitdir}
+	install -m 0644 ${S}/debian/wd_keepalive.service ${D}${systemd_system_unitdir}
+
 	install -D ${S}/redhat/watchdog.init ${D}/${sysconfdir}/init.d/watchdog.sh
-    install -Dm 0755 ${WORKDIR}/wd_keepalive.init ${D}${sysconfdir}/init.d/wd_keepalive
+	install -Dm 0755 ${WORKDIR}/wd_keepalive.init ${D}${sysconfdir}/init.d/wd_keepalive
 
-    # watchdog.conf is provided by the watchdog-config recipe
-    rm ${D}${sysconfdir}/watchdog.conf
+	# watchdog.conf is provided by the watchdog-config recipe
+	rm ${D}${sysconfdir}/watchdog.conf
 }
 
 PACKAGES =+ "${PN}-keepalive"
-- 
2.10.1



^ permalink raw reply related	[flat|nested] 4+ messages in thread

* Re: [PATCH 0/1] watchdog: enable systemd support
  2017-08-22  8:29 [PATCH 0/1] watchdog: enable systemd support kai.kang
  2017-08-22  8:29 ` [PATCH 1/1] " kai.kang
@ 2017-08-29  3:13 ` Kang Kai
  2017-08-29 20:30   ` Randy MacLeod
  1 sibling, 1 reply; 4+ messages in thread
From: Kang Kai @ 2017-08-29  3:13 UTC (permalink / raw)
  To: openembedded-core

On 2017年08月22日 16:29, kai.kang@windriver.com wrote:
> From: Kai Kang <kai.kang@windriver.com>
>
> The following changes since commit 04dc76713b57f28457742dd863caa663591d4866:
>
>    devtool/copy_buildsystem: adds meta-skeleton layer in the eSDK installation. (2017-08-19 22:15:39 +0100)
>
> are available in the git repository at:
>
>    git://git.pokylinux.org/poky-contrib kangkai/watchdog
>    http://git.pokylinux.org/cgit.cgi/poky-contrib/log/?h=kangkai/watchdog
>
> Kai Kang (1):
>    watchdog: enable systemd support

Ping.


--Kai


>
>   meta/recipes-extended/watchdog/watchdog_5.15.bb | 15 ++++++++++-----
>   1 file changed, 10 insertions(+), 5 deletions(-)
>

-- 
Regards,
Neil | Kai Kang



^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [PATCH 0/1] watchdog: enable systemd support
  2017-08-29  3:13 ` [PATCH 0/1] " Kang Kai
@ 2017-08-29 20:30   ` Randy MacLeod
  0 siblings, 0 replies; 4+ messages in thread
From: Randy MacLeod @ 2017-08-29 20:30 UTC (permalink / raw)
  To: Kang Kai, openembedded-core

On 2017-08-28 11:13 PM, Kang Kai wrote:
> On 2017年08月22日 16:29, kai.kang@windriver.com wrote:
>> From: Kai Kang <kai.kang@windriver.com>
>>
>> The following changes since commit 
>> 04dc76713b57f28457742dd863caa663591d4866:
>>
>>    devtool/copy_buildsystem: adds meta-skeleton layer in the eSDK 
>> installation. (2017-08-19 22:15:39 +0100)
>>
>> are available in the git repository at:
>>
>>    git://git.pokylinux.org/poky-contrib kangkai/watchdog
>>    http://git.pokylinux.org/cgit.cgi/poky-contrib/log/?h=kangkai/watchdog
>>
>> Kai Kang (1):
>>    watchdog: enable systemd support
> 
> Ping.

In master-next now, perhaps due to the ping. :)

commit a30fcb95d527bc2a0981af5c1ed179a122bb055c
Author: Kai Kang <kai.kang@windriver.com>
Date:   Tue Aug 22 14:35:05 2017 +0800

     watchdog: enable systemd support

../Randy

> 
> 
> --Kai
> 
> 
>>
>>   meta/recipes-extended/watchdog/watchdog_5.15.bb | 15 ++++++++++-----
>>   1 file changed, 10 insertions(+), 5 deletions(-)
>>
> 


-- 
# Randy MacLeod.  WR Linux
# Wind River an Intel Company


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2017-08-29 20:30 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-08-22  8:29 [PATCH 0/1] watchdog: enable systemd support kai.kang
2017-08-22  8:29 ` [PATCH 1/1] " kai.kang
2017-08-29  3:13 ` [PATCH 0/1] " Kang Kai
2017-08-29 20:30   ` Randy MacLeod

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.