firmware-imx: add sdma-firmware.service to the rootfs
This commit adds the sdma-firmware.service to the rootfs to load the SDMA firmware during boot, that is necessary for some drivers to work correctly. Signed-off-by: Mike Engel <Mike.Engel@digi.com>
This commit is contained in:
parent
737230a2f4
commit
3df077d0ff
|
|
@ -11,21 +11,29 @@ SRC_URI_append = " \
|
|||
file://epdc \
|
||||
file://regulatory \
|
||||
file://hdmi \
|
||||
file://sdma-firmware.service \
|
||||
"
|
||||
|
||||
PE = "1"
|
||||
|
||||
inherit allarch
|
||||
inherit allarch systemd
|
||||
|
||||
SYSTEMD_PACKAGES = "${PN}-sdma"
|
||||
SYSTEMD_SERVICE_${PN}-sdma = "sdma-firmware.service"
|
||||
|
||||
do_install() {
|
||||
install -d ${D}${base_libdir}/firmware/imx
|
||||
|
||||
if ${@bb.utils.contains('DISTRO_FEATURES','systemd','true','false',d)}; then
|
||||
# Install loading scripts
|
||||
install -d ${D}${sysconfdir}
|
||||
install -d ${D}${systemd_system_unitdir}
|
||||
install -m 0755 ${WORKDIR}/sdma ${D}${sysconfdir}
|
||||
install -m 0755 ${WORKDIR}/epdc ${D}${sysconfdir}
|
||||
install -m 0755 ${WORKDIR}/regulatory ${D}${sysconfdir}
|
||||
install -m 0755 ${WORKDIR}/hdmi ${D}${sysconfdir}
|
||||
install -m 0644 ${WORKDIR}/sdma-firmware.service ${D}${systemd_system_unitdir}
|
||||
fi
|
||||
|
||||
cd firmware
|
||||
for d in *; do
|
||||
|
|
|
|||
Loading…
Reference in New Issue