diff options
author | Robert Karszniewicz <r.karszniewicz@phytec.de> | 2020-12-09 16:03:23 +0100 |
---|---|---|
committer | Khem Raj <raj.khem@gmail.com> | 2020-12-09 10:14:57 -0800 |
commit | 38ef5f5bf04fe174f954fe9a837a0cbe02eb278c (patch) | |
tree | d4a4b2cb40c1bcb6cb16c44483adbd5d8a18ccd0 | |
parent | 6f1139a717cf5da3b68f0bf7b0bccc40ba65da43 (diff) | |
download | meta-openembedded-38ef5f5bf04fe174f954fe9a837a0cbe02eb278c.tar.gz |
firmwared: add recipe
This program is needed for loading external firmware via Linux' fallback
mechanism.
Signed-off-by: Robert Karszniewicz <r.karszniewicz@phytec.de>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
-rw-r--r-- | meta-oe/recipes-bsp/firmwared/firmwared/firmwared.service | 9 | ||||
-rw-r--r-- | meta-oe/recipes-bsp/firmwared/firmwared_git.bb | 34 | ||||
-rw-r--r-- | meta-oe/recipes-core/packagegroups/packagegroup-meta-oe.bb | 1 |
3 files changed, 44 insertions, 0 deletions
diff --git a/meta-oe/recipes-bsp/firmwared/firmwared/firmwared.service b/meta-oe/recipes-bsp/firmwared/firmwared/firmwared.service new file mode 100644 index 000000000..c2106a251 --- /dev/null +++ b/meta-oe/recipes-bsp/firmwared/firmwared/firmwared.service | |||
@@ -0,0 +1,9 @@ | |||
1 | [Unit] | ||
2 | Description=Linux Firmware Loader Daemon | ||
3 | |||
4 | [Service] | ||
5 | Type=simple | ||
6 | ExecStart=@BINDIR@/firmwared -d /lib/firmware | ||
7 | |||
8 | [Install] | ||
9 | WantedBy=multi-user.target | ||
diff --git a/meta-oe/recipes-bsp/firmwared/firmwared_git.bb b/meta-oe/recipes-bsp/firmwared/firmwared_git.bb new file mode 100644 index 000000000..43fc59815 --- /dev/null +++ b/meta-oe/recipes-bsp/firmwared/firmwared_git.bb | |||
@@ -0,0 +1,34 @@ | |||
1 | SUMMARY = "Linux Firmware Loader Daemon" | ||
2 | DESCRIPTION = "The Linux Firmware Loader Daemon monitors the kernel for \ | ||
3 | firmware requests and uploads the firmware blobs it has via the sysfs \ | ||
4 | interface." | ||
5 | HOMEPAGE = "https://github.com/teg/firmwared" | ||
6 | LICENSE = "Apache-2.0" | ||
7 | LIC_FILES_CHKSUM = "file://LICENSE-APACHE;md5=7b486c2338d225a1405d979ed2c15ce8 \ | ||
8 | file://COPYING;md5=daa868b8e1ae17d03228a1145b4060da" | ||
9 | |||
10 | SRC_URI = "git://github.com/teg/firmwared.git \ | ||
11 | file://firmwared.service" | ||
12 | |||
13 | PV = "0+git${SRCPV}" | ||
14 | SRCREV = "2e6b5db43d63a5c0283a4cae9a6a20b7ad107a04" | ||
15 | |||
16 | S = "${WORKDIR}/git" | ||
17 | |||
18 | DEPENDS = "glib-2.0 systemd" | ||
19 | |||
20 | inherit pkgconfig autotools systemd features_check | ||
21 | |||
22 | REQUIRED_DISTRO_FEATURES = "systemd" | ||
23 | |||
24 | SYSTEMD_SERVICE_${PN} = "firmwared.service" | ||
25 | |||
26 | do_configure_prepend() { | ||
27 | ${S}/autogen.sh | ||
28 | } | ||
29 | |||
30 | do_install_append() { | ||
31 | install -d ${D}${systemd_system_unitdir} | ||
32 | install -m 0644 ${WORKDIR}/firmwared.service ${D}${systemd_system_unitdir} | ||
33 | sed -i -e 's,@BINDIR@,${bindir},g' ${D}${systemd_system_unitdir}/firmwared.service | ||
34 | } | ||
diff --git a/meta-oe/recipes-core/packagegroups/packagegroup-meta-oe.bb b/meta-oe/recipes-core/packagegroups/packagegroup-meta-oe.bb index 841e1cd1b..2c46d21b7 100644 --- a/meta-oe/recipes-core/packagegroups/packagegroup-meta-oe.bb +++ b/meta-oe/recipes-core/packagegroups/packagegroup-meta-oe.bb | |||
@@ -87,6 +87,7 @@ RDEPENDS_packagegroup-meta-oe-bsp ="\ | |||
87 | acpitool \ | 87 | acpitool \ |
88 | cpufrequtils \ | 88 | cpufrequtils \ |
89 | edac-utils \ | 89 | edac-utils \ |
90 | firmwared \ | ||
90 | flashrom \ | 91 | flashrom \ |
91 | irda-utils \ | 92 | irda-utils \ |
92 | lmsensors-config-cgi \ | 93 | lmsensors-config-cgi \ |