Robert Karszniewicz escreveu no dia sexta, 4/12/2020 à(s) 17:05: > This program is needed for loading external firmware via Linux' fallback > mechanism. > > Signed-off-by: Robert Karszniewicz > --- > I wasn't sure which subdirectory to put it in, but I picked recipes-bsp. > Thanks. > > .../firmwared/firmwared/firmwared.service | 9 +++++++ > meta-oe/recipes-bsp/firmwared/firmwared_git.bb | 29 > ++++++++++++++++++++++ > 2 files changed, 38 insertions(+) > create mode 100644 > meta-oe/recipes-bsp/firmwared/firmwared/firmwared.service > create mode 100644 meta-oe/recipes-bsp/firmwared/firmwared_git.bb > > 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 000000000000..c2106a25168c > --- /dev/null > +++ b/meta-oe/recipes-bsp/firmwared/firmwared/firmwared.service > @@ -0,0 +1,9 @@ > +[Unit] > +Description=Linux Firmware Loader Daemon > + > +[Service] > +Type=simple > +ExecStart=@BINDIR@/firmwared -d /lib/firmware > + > +[Install] > +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 000000000000..3b2a8070bdd3 > --- /dev/null > +++ b/meta-oe/recipes-bsp/firmwared/firmwared_git.bb > @@ -0,0 +1,29 @@ > +SUMMARY = "Linux Firmware Loader Daemon" > +DESCRIPTION = "The Linux Firmware Loader Daemon monitors the kernel for \ > +firmware requests and uploads the firmware blobs it has via the sysfs \ > +interface." > +HOMEPAGE = "https://github.com/teg/firmwared" > +PR = "r0" > +LICENSE = "Apache-2.0" > +LIC_FILES_CHKSUM = > "file://LICENSE-APACHE;md5=7b486c2338d225a1405d979ed2c15ce8 \ > + file://COPYING;md5=daa868b8e1ae17d03228a1145b4060da" > + > +SRC_URI = "git://github.com/teg/firmwared.git \ > + file://firmwared.service" > + > +PV = "1+git${SRCPV}" > +SRCREV = "2e6b5db43d63a5c0283a4cae9a6a20b7ad107a04" > + > +S = "${WORKDIR}/git" > + > +DEPENDS = "glib-2.0 systemd" > + > +inherit pkgconfig autotools systemd > + > +SYSTEMD_SERVICE_${PN} = "firmwared.service" > + > +do_install_append() { > + install -d ${D}${systemd_unitdir}/system > + install -m 0644 ${WORKDIR}/firmwared.service > ${D}${systemd_unitdir}/system > you can using systemd_system_unitdir -install -m 0644 ${WORKDIR}/firmwared.service ${D}${systemd_unitdir}/system +install -m 0644 ${WORKDIR}/firmwared.service ${D}${systemd_system_unitdir} + sed -i -e 's,@BINDIR@,${bindir},g' > ${D}${systemd_unitdir}/system/firmwared.service > +} > -- > 2.7.4 > > > > > -- best regards, José Quaresma