Skip to contentSkip to conversation

linux-firmware: make the main package depend on all sub-packages

PATCH In review Ross Burton 5 participants 5 messages Apr 5, 2013 – Apr 6, 2013

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 linux-firmware: make the main package depend on all sub-packages

Whilst splitting out specific large firmware blobs is a good move for space saving, it makes installing "all the firmware" tricky.

Make linux-firmware depend on all of the separated packages so that installing that pulls in all of the sub-packages.

---
 meta/recipes-kernel/linux-firmware/linux-firmware_git.bb |    6 ++++++
 1 file changed, 6 insertions(+)
meta/recipes-kernel/linux-firmware/linux-firmware_git.bb +6 -0
index 5ee3b73..ef036cf 100644
@@ -162,3 +162,9 @@ ALTERNATIVE_linux-firmware-bcm4334 = "brcmfmac-sdio.bin"
 ALTERNATIVE_TARGET_linux-firmware-bcm4334[brcmfmac-sdio.bin] = "/lib/firmware/brcm/brcmfmac4334.bin"
 
 FILES_${PN} += "/lib/firmware/*"
+
+# Make linux-firmware depend on all of the split-out packages.
+python populate_packages_prepend () {
+    firmware_pkgs = oe.utils.packages_filter_out_system(d)
+    d.appendVar('RDEPENDS_linux-firmware', ' ' + ' '.join(firmware_pkgs))
+}
Signature · 1 line
1.7.10.4
#1 lore raw
Quoted 7 lines · Ross Burton

Whilst splitting out specific large firmware blobs is a good move for space saving, it makes installing "all the firmware" tricky.

Make linux-firmware depend on all of the separated packages so that installing that pulls in all of the sub-packages.

+1 Looks great, indeed.

--
Otavio Salvador O.S. Systems
E-mail: [email protected] http://www.ossystems.com.br
Mobile: +55 53 9981-7854 http://projetos.ossystems.com.br

#2 lore raw
In reply to Ross Burton

Op 5 apr. 2013, om 19:06 heeft Ross Burton <[email protected]> het volgende geschreven:

Quoted 5 lines

Whilst splitting out specific large firmware blobs is a good move for space saving, it makes installing "all the firmware" tricky.

Make linux-firmware depend on all of the separated packages so that installing that pulls in all of the sub-packages.

Speaking of firmwares, is anybody working on fixing the clashes between kernel-firmware-foo and linux-firmware-foo? It should only be a matter of adding RREPLACES to the linux-firmware subpackages.

Koen

#3 lore raw

And also staging firmware files just once to resolve

Quoted 1 line

WARNING: The recipe linux-firmware is trying to install files into a

shared area when those files already exist. Those files are:

when building linux-firmware after kernel was built and vice-versa.

Quoted 22 lines · Koen Kooi

Op 5 apr. 2013, om 19:06 heeft Ross Burton <[email protected]> het volgende geschreven:

Quoted 1 line

Whilst splitting out specific large firmware blobs is a good move for

space

Quoted 3 lines

saving, it makes installing "all the firmware" tricky.

Make linux-firmware depend on all of the separated packages so that

installing

Quoted 1 line

that pulls in all of the sub-packages.

Speaking of firmwares, is anybody working on fixing the clashes between kernel-firmware-foo and linux-firmware-foo? It should only be a matter of adding RREPLACES to the linux-firmware subpackages.

Koen
_______________________________________________
Openembedded-core mailing list
[email protected]
http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-core

#4 lore raw
Quoted 6 lines · Martin Jansa

And also staging firmware files just once to resolve

Quoted 1 line

WARNING: The recipe linux-firmware is trying to install files into a

shared area when those files already exist. Those files are:

when building linux-firmware after kernel was built and vice-versa.

What is the point in staging firmware files at all? There is probably a small space/performance gain to be had there...

Cheers,

Richard