diff options
author | Vijay Anusuri <vanusuri@mvista.com> | 2024-06-20 10:13:25 +0530 |
---|---|---|
committer | Khem Raj <raj.khem@gmail.com> | 2024-06-19 21:54:33 -0700 |
commit | 93a0667456b978ce9317fdadd2f38880b1f5494e (patch) | |
tree | 20154d77b692e5989cdd534017b70add280d9f2b | |
parent | 463bf4a9f68453948957df188b2af9fada17a834 (diff) | |
download | meta-openembedded-93a0667456b978ce9317fdadd2f38880b1f5494e.tar.gz |
tipcutils: Add systemd support
Install tipc kernel module explictly. tipcutils.conf is added to
modules-load.d to load the required tipc kernel module.
Ref: http://tipc.io/getting_started.html
Signed-off-by: Vijay Anusuri <vanusuri@mvista.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
-rw-r--r-- | meta-oe/recipes-extended/tipcutils/tipcutils/tipcutils.conf | 1 | ||||
-rw-r--r-- | meta-oe/recipes-extended/tipcutils/tipcutils_git.bb | 11 |
2 files changed, 11 insertions, 1 deletions
diff --git a/meta-oe/recipes-extended/tipcutils/tipcutils/tipcutils.conf b/meta-oe/recipes-extended/tipcutils/tipcutils/tipcutils.conf new file mode 100644 index 0000000000..39ed83d6af --- /dev/null +++ b/meta-oe/recipes-extended/tipcutils/tipcutils/tipcutils.conf | |||
@@ -0,0 +1 @@ | |||
tipc | |||
diff --git a/meta-oe/recipes-extended/tipcutils/tipcutils_git.bb b/meta-oe/recipes-extended/tipcutils/tipcutils_git.bb index 596aa260e7..580d03cbb5 100644 --- a/meta-oe/recipes-extended/tipcutils/tipcutils_git.bb +++ b/meta-oe/recipes-extended/tipcutils/tipcutils_git.bb | |||
@@ -3,6 +3,7 @@ LICENSE = "GPL-2.0-only" | |||
3 | LIC_FILES_CHKSUM = "file://tipclog/tipc.h;endline=35;md5=985b6ea8735818511d276c1b466cce98" | 3 | LIC_FILES_CHKSUM = "file://tipclog/tipc.h;endline=35;md5=985b6ea8735818511d276c1b466cce98" |
4 | 4 | ||
5 | SRC_URI = "git://git.code.sf.net/p/tipc/tipcutils;branch=master \ | 5 | SRC_URI = "git://git.code.sf.net/p/tipc/tipcutils;branch=master \ |
6 | file://tipcutils.conf \ | ||
6 | file://0001-include-sys-select.h-for-FD_-definitions.patch \ | 7 | file://0001-include-sys-select.h-for-FD_-definitions.patch \ |
7 | file://0002-replace-non-standard-uint-with-unsigned-int.patch \ | 8 | file://0002-replace-non-standard-uint-with-unsigned-int.patch \ |
8 | file://0001-multicast_blast-tipcc-Fix-struct-type-for-TIPC_GROUP.patch \ | 9 | file://0001-multicast_blast-tipcc-Fix-struct-type-for-TIPC_GROUP.patch \ |
@@ -11,7 +12,7 @@ SRC_URI = "git://git.code.sf.net/p/tipc/tipcutils;branch=master \ | |||
11 | SRCREV = "7ab2211b87414ba240b0b2e4af219c1057c9cf9a" | 12 | SRCREV = "7ab2211b87414ba240b0b2e4af219c1057c9cf9a" |
12 | PV = "2.2.0+git" | 13 | PV = "2.2.0+git" |
13 | 14 | ||
14 | inherit autotools pkgconfig | 15 | inherit autotools pkgconfig systemd |
15 | 16 | ||
16 | DEPENDS += "libdaemon" | 17 | DEPENDS += "libdaemon" |
17 | 18 | ||
@@ -41,8 +42,16 @@ do_install:append() { | |||
41 | install -d ${D}${sysconfdir} | 42 | install -d ${D}${sysconfdir} |
42 | cp -R --no-dereference --preserve=mode,links -v ${S}/scripts/etc/* ${D}${sysconfdir}/ | 43 | cp -R --no-dereference --preserve=mode,links -v ${S}/scripts/etc/* ${D}${sysconfdir}/ |
43 | chown -R root:root ${D}${sysconfdir} | 44 | chown -R root:root ${D}${sysconfdir} |
45 | |||
46 | # Install systemd related configuration file | ||
47 | if ${@bb.utils.contains('DISTRO_FEATURES', 'systemd', 'true', 'false', d)}; then | ||
48 | install -d ${D}${sysconfdir}/modules-load.d | ||
49 | install -m 0644 ${WORKDIR}/tipcutils.conf ${D}${sysconfdir}/modules-load.d | ||
50 | fi | ||
44 | } | 51 | } |
45 | 52 | ||
53 | SYSTEMD_SERVICE:${PN} = "" | ||
54 | |||
46 | PACKAGES += "${PN}-demos" | 55 | PACKAGES += "${PN}-demos" |
47 | FILES:${PN}-dbg += "/opt/tipcutils/demos/*/.debug /opt/tipcutils/ptts/.debug" | 56 | FILES:${PN}-dbg += "/opt/tipcutils/demos/*/.debug /opt/tipcutils/ptts/.debug" |
48 | FILES:${PN}-demos = "/opt/tipcutils/*" | 57 | FILES:${PN}-demos = "/opt/tipcutils/*" |