* [PATCH] linux-firmware: split into bus specific packages.
@ 2011-02-13 14:08 Filip Zyzniewski
2011-02-14 15:58 ` Otavio Salvador
` (2 more replies)
0 siblings, 3 replies; 21+ messages in thread
From: Filip Zyzniewski @ 2011-02-13 14:08 UTC (permalink / raw)
To: openembedded-devel
The whole reposotiry is about 24MB in size and it's rarely needed
whole. It is now splitted into bus specific subpackages (and some
device-specific for devices on a bus like SPI or SBUS) all depended
on by the linux-firmware package.
Signed-off-by: Filip Zyzniewski <filip.zyzniewski@gmail.com>
---
recipes/linux-firmware/linux-firmware_git.bb | 144 +++++++++++++++++++++++++-
1 files changed, 142 insertions(+), 2 deletions(-)
diff --git a/recipes/linux-firmware/linux-firmware_git.bb b/recipes/linux-firmware/linux-firmware_git.bb
index 7bff379..1b22c79 100644
--- a/recipes/linux-firmware/linux-firmware_git.bb
+++ b/recipes/linux-firmware/linux-firmware_git.bb
@@ -1,7 +1,8 @@
DESCRIPTION = "Firmware files for use with Linux kernel"
+PR = "r1"
PR_append = "+gitr${SRCREV}"
-SRCREV = "80a203275fc368db0a5f166c42dd35a4a22f2453"
+SRCREV = "2fab48391fda8a914b55c8ac265eb3b6ee10ace8"
SRC_URI = "git://git.kernel.org/pub/scm/linux/kernel/git/dwmw2/linux-firmware.git;protocol=git"
@@ -16,7 +17,146 @@ do_install() {
cp -RpP * ${D}/lib/firmware/
}
-FILES_${PN} += "/lib/firmware/*"
+SUBPACKAGES = "${PN}-i2c \
+ ${PN}-isa \
+ ${PN}-pci \
+ ${PN}-pcmcia \
+ ${PN}-sdio \
+ ${PN}-usb \
+ ${PN}-agere \
+ ${PN}-dsp56k \
+ ${PN}-gspi8682 \
+ ${PN}-gspi8686 \
+ ${PN}-gspi8688 \
+ ${PN}-myri-sbus \
+ ${PN}-qlogicpti \
+ ${PN}-wl12xx \
+ ${PN}-yam"
+
+RDEPENDS += "${SUBPACKAGES}"
+PACKAGES += "${SUBPACKAGES}"
+
PACKAGE_ARCH = "all"
+RDEPENDS_${PN}-pci += "${PN}-agere ${PN}-i2c"
+RDEPENDS_${PN}-pcmcia += "${PN}-agere"
+RDEPENDS_${PN}-sdio += "${PN}-gspi8686 ${PN}-wl12xx"
+RDEPENDS_${PN}-usb += "${PN}-agere ${PN}-i2c"
+
+
+FILES_${PN}-i2c = "/lib/firmware/dvb-fe-xc5000-1.6.114.fw \
+ /lib/firmware/lgs8g75.fw"
+
+FILES_${PN}-isa = "/lib/firmware/sb16 \
+ /lib/firmware/tr_smctr.bin \
+ /lib/firmware/yamaha/yss225_registers.bin"
+
+FILES_${PN}-pci = "/lib/firmware/3com \
+ /lib/firmware/RTL8192E \
+ /lib/firmware/acenic \
+ /lib/firmware/adaptec \
+ /lib/firmware/advansys \
+ /lib/firmware/atmsar11.fw \
+ /lib/firmware/av7110 \
+ /lib/firmware/bnx2 \
+ /lib/firmware/bnx2x*.fw \
+ /lib/firmware/brcm/bcm43xx*.fw \
+ /lib/firmware/cxgb3 \
+ /lib/firmware/e100 \
+ /lib/firmware/ess/maestro3_*.fw \
+ /lib/firmware/intelliport2.bin \
+ /lib/firmware/iwlwifi-*.ucode \
+ /lib/firmware/korg/k1212.dsp \
+ /lib/firmware/matrox \
+ /lib/firmware/mwl8335_duplex.fw \
+ /lib/firmware/mwl8k \
+ /lib/firmware/phanfw.bin \
+ /lib/firmware/ql2*_fw.bin \
+ /lib/firmware/qlogic/1040.bin \
+ /lib/firmware/qlogic/12160.bin \
+ /lib/firmware/qlogic/1280.bin \
+ /lib/firmware/qlogic/sd7220.fw \
+ /lib/firmware/r128 \
+ /lib/firmware/radeon \
+ /lib/firmware/rt2561.bin \
+ /lib/firmware/rt2561s.bin \
+ /lib/firmware/rt2661.bin \
+ /lib/firmware/rt2860.bin \
+ /lib/firmware/rt3090.bin \
+ /lib/firmware/rtl_nic/rtl8168d-*.fw \
+ /lib/firmware/rtlwifi/rtl8192defw.bin \
+ /lib/firmware/rtlwifi/rtl8192sefw.bin \
+ /lib/firmware/slicoss \
+ /lib/firmware/sun/cassini.bin \
+ /lib/firmware/sxg \
+ /lib/firmware/tehuti \
+ /lib/firmware/tigon/tg3*.bin \
+ /lib/firmware/tlg2300_firmware.bin \
+ /lib/firmware/v4l-cx23418-*.fw \
+ /lib/firmware/v4l-cx23885-*.fw \
+ /lib/firmware/v4l-cx25840.fw \
+ /lib/firmware/vxge/X3fw*.ncf \
+ /lib/firmware/yamaha/ds1*.fw"
+
+FILES_${PN}-pcmcia = "/lib/firmware/cis \
+ /lib/firmware/libertas/cf8385*.bin \
+ /lib/firmware/ositech/Xilinx7OD.bin"
+
+FILES_${PN}-sdio = "/lib/firmware/brcm/bcm4329-fullmac-4-218-248-5.bin \
+ /lib/firmware/libertas/sd*.bin"
+
+FILES_${PN}-usb ="/lib/firmware/ar7010.fw \
+ /lib/firmware/ar7010_1_1.fw \
+ /lib/firmware/ar9170-*.fw \
+ /lib/firmware/ar9271.fw \
+ /lib/firmware/ath3k-*.fw \
+ /lib/firmware/cpia2 \
+ /lib/firmware/dabusb \
+ /lib/firmware/dvb-usb-dib0700-1.20.fw \
+ /lib/firmware/edgeport \
+ /lib/firmware/emi26 \
+ /lib/firmware/emi62 \
+ /lib/firmware/f2255usb.bin \
+ /lib/firmware/i2400m-fw-usb-*.sbcf \
+ /lib/firmware/i6050-fw-usb-1.5.sbcf \
+ /lib/firmware/kaweth \
+ /lib/firmware/keyspan \
+ /lib/firmware/keyspan_pda \
+ /lib/firmware/libertas/usb*.bin \
+ /lib/firmware/mts_*.fw \
+ /lib/firmware/rt2870.bin \
+ /lib/firmware/rt3070.bin \
+ /lib/firmware/rt3071.bin \
+ /lib/firmware/rt73.bin \
+ /lib/firmware/rtlwifi/rtl8192cfw.bin \
+ /lib/firmware/rtlwifi/rtl8192cufw.bin \
+ /lib/firmware/rtlwifi/rtl8712u.bin \
+ /lib/firmware/s2250*.fw \
+ /lib/firmware/ti_3410.fw \
+ /lib/firmware/ti_5052.fw \
+ /lib/firmware/ttusb-budget \
+ /lib/firmware/ueagle-atm \
+ /lib/firmware/usbdux_firmware.bin \
+ /lib/firmware/usbduxfast_firmware.bin \
+ /lib/firmware/v4l-cx231xx-avcore-01.fw \
+ /lib/firmware/vicam/firmware.fw \
+ /lib/firmware/vntwusb.fw \
+ /lib/firmware/whiteheat*.fw"
+
+FILES_${PN}-agere = "/lib/firmware/agere_*_fw.bin"
+
+FILES_${PN}-dsp56k = "/lib/firmware/dsp56k/bootstrap.bin"
+
+FILES_${PN}-gspi8682 = "/lib/firmware/libertas/gspi8682*.bin"
+
+FILES_${PN}-gspi8686 = "/lib/firmware/libertas/gspi8686*.bin"
+
+FILES_${PN}-gspi8688 = "/lib/firmware/libertas/gspi8688*.bin"
+
+FILES_${PN}-myri-sbus = "/lib/firmware/myricom/lanai.bin"
+
+FILES_${PN}-qlogicpti = "/lib/firmware/qlogic/isp1000.bin"
+
+FILES_${PN}-wl12xx = "/lib/firmware/ti-connectivity/wl1271-*.bin"
+FILES_${PN}-yam = "/lib/firmware/yam"
--
1.7.1
^ permalink raw reply related [flat|nested] 21+ messages in thread
* Re: [PATCH] linux-firmware: split into bus specific packages.
2011-02-13 14:08 [PATCH] linux-firmware: split into bus specific packages Filip Zyzniewski
@ 2011-02-14 15:58 ` Otavio Salvador
2011-02-14 16:17 ` Eric Bénard
2011-02-14 17:08 ` Filip Zyzniewski
2011-02-14 18:18 ` [PATCH] linux-firmware: split into bus specific packages Tom Rini
2011-02-14 18:46 ` [PATCHv2] " Filip Zyzniewski
2 siblings, 2 replies; 21+ messages in thread
From: Otavio Salvador @ 2011-02-14 15:58 UTC (permalink / raw)
To: openembedded-devel
On Sun, Feb 13, 2011 at 14:08, Filip Zyzniewski
<filip.zyzniewski@gmail.com> wrote:
> The whole reposotiry is about 24MB in size and it's rarely needed
> whole. It is now splitted into bus specific subpackages (and some
> device-specific for devices on a bus like SPI or SBUS) all depended
> on by the linux-firmware package.
I agree that this ought to be split but I think that it should be done
by vendor:
realtek, ralink and so on.
--
Otavio Salvador O.S. Systems
E-mail: otavio@ossystems.com.br http://www.ossystems.com.br
Mobile: +55 53 9981-7854 http://projetos.ossystems.com.br
^ permalink raw reply [flat|nested] 21+ messages in thread
* Re: [PATCH] linux-firmware: split into bus specific packages.
2011-02-14 15:58 ` Otavio Salvador
@ 2011-02-14 16:17 ` Eric Bénard
2011-02-14 17:08 ` Filip Zyzniewski
1 sibling, 0 replies; 21+ messages in thread
From: Eric Bénard @ 2011-02-14 16:17 UTC (permalink / raw)
To: openembedded-devel
Hi,
On 14/02/2011 16:58, Otavio Salvador wrote:
> On Sun, Feb 13, 2011 at 14:08, Filip Zyzniewski
> <filip.zyzniewski@gmail.com> wrote:
>> The whole reposotiry is about 24MB in size and it's rarely needed
>> whole. It is now splitted into bus specific subpackages (and some
>> device-specific for devices on a bus like SPI or SBUS) all depended
>> on by the linux-firmware package.
>
> I agree that this ought to be split but I think that it should be done
> by vendor:
> realtek, ralink and so on.
>
also there is an other version of this recipe in
recipes/firmwares/linux-firmware.inc
which is already splitted in small packages for some firmware such as :
firmware-atheros-ar9271.bb
firmware-marvell-sd8688_10.38.1-p25.bb
Eric
^ permalink raw reply [flat|nested] 21+ messages in thread
* Re: [PATCH] linux-firmware: split into bus specific packages.
2011-02-14 15:58 ` Otavio Salvador
2011-02-14 16:17 ` Eric Bénard
@ 2011-02-14 17:08 ` Filip Zyzniewski
2011-02-14 17:13 ` Otavio Salvador
1 sibling, 1 reply; 21+ messages in thread
From: Filip Zyzniewski @ 2011-02-14 17:08 UTC (permalink / raw)
To: openembedded-devel
On 2/14/11, Otavio Salvador <otavio@ossystems.com.br> wrote:
> I agree that this ought to be split but I think that it should be done
> by vendor:
> realtek, ralink and so on.
What would be the point of such split?
I have split it by buses, because currently having full support for
PCMCIA devices on my Jornada 720, I have to install 13MB of PCI
firmwares and 8.5MB of USB firmwares, which I will never use (because
I have neither PCI nor USB bus on it) just to have available the 200kB
of PCMCIA firmwares.
Most of the firmwares in the repository are for removable devices - we
(as the OE/distrubution maintainers) are by definition not able to
know whose products will the user plug in.
bye,
Filip Zyzniewski
^ permalink raw reply [flat|nested] 21+ messages in thread
* Re: [PATCH] linux-firmware: split into bus specific packages.
2011-02-14 17:08 ` Filip Zyzniewski
@ 2011-02-14 17:13 ` Otavio Salvador
2011-02-14 17:22 ` Filip Zyzniewski
0 siblings, 1 reply; 21+ messages in thread
From: Otavio Salvador @ 2011-02-14 17:13 UTC (permalink / raw)
To: openembedded-devel
On Mon, Feb 14, 2011 at 17:08, Filip Zyzniewski
<filip.zyzniewski@gmail.com> wrote:
> On 2/14/11, Otavio Salvador <otavio@ossystems.com.br> wrote:
>
>> I agree that this ought to be split but I think that it should be done
>> by vendor:
>> realtek, ralink and so on.
>
> What would be the point of such split?
>
> I have split it by buses, because currently having full support for
> PCMCIA devices on my Jornada 720, I have to install 13MB of PCI
> firmwares and 8.5MB of USB firmwares, which I will never use (because
> I have neither PCI nor USB bus on it) just to have available the 200kB
> of PCMCIA firmwares.
>
> Most of the firmwares in the repository are for removable devices - we
> (as the OE/distrubution maintainers) are by definition not able to
> know whose products will the user plug in.
Right but usually we'll have drivers/modules for one, two or three
vendors that are used or demanded to be supported and then those
firmware needs to be supported as well.
--
Otavio Salvador O.S. Systems
E-mail: otavio@ossystems.com.br http://www.ossystems.com.br
Mobile: +55 53 9981-7854 http://projetos.ossystems.com.br
^ permalink raw reply [flat|nested] 21+ messages in thread
* Re: [PATCH] linux-firmware: split into bus specific packages.
2011-02-14 17:13 ` Otavio Salvador
@ 2011-02-14 17:22 ` Filip Zyzniewski
2011-02-14 17:33 ` Tom Rini
2011-02-14 18:01 ` [PATCHv2] image.bbclass: move insert_feed_uris() to rootfs_ipk.bbclass Filip Zyzniewski
0 siblings, 2 replies; 21+ messages in thread
From: Filip Zyzniewski @ 2011-02-14 17:22 UTC (permalink / raw)
To: openembedded-devel
On 2/14/11, Otavio Salvador <otavio@ossystems.com.br> wrote:
> Right but usually we'll have drivers/modules for one, two or three
> vendors that are used or demanded to be supported and then those
> firmware needs to be supported as well.
Can you give an example?
If you are building a distro for a device with USB host - on what
basis do you choose whose products to support?
bye,
Filip Zyzniewski
^ permalink raw reply [flat|nested] 21+ messages in thread
* Re: [PATCH] linux-firmware: split into bus specific packages.
2011-02-14 17:22 ` Filip Zyzniewski
@ 2011-02-14 17:33 ` Tom Rini
2011-02-14 17:40 ` Phil Blundell
2011-02-14 18:01 ` [PATCHv2] image.bbclass: move insert_feed_uris() to rootfs_ipk.bbclass Filip Zyzniewski
1 sibling, 1 reply; 21+ messages in thread
From: Tom Rini @ 2011-02-14 17:33 UTC (permalink / raw)
To: openembedded-devel
On 02/14/2011 10:22 AM, Filip Zyzniewski wrote:
> On 2/14/11, Otavio Salvador<otavio@ossystems.com.br> wrote:
>
>> Right but usually we'll have drivers/modules for one, two or three
>> vendors that are used or demanded to be supported and then those
>> firmware needs to be supported as well.
>
> Can you give an example?
> If you are building a distro for a device with USB host - on what
> basis do you choose whose products to support?
Honestly, I think we need bus and vendor in the split. I do want the
firmware for my ralink USB WiFi dongle but not all of the other vendors
and I'd un-install what I could un-install.
--
Tom Rini
Mentor Graphics Corporation
^ permalink raw reply [flat|nested] 21+ messages in thread
* Re: [PATCH] linux-firmware: split into bus specific packages.
2011-02-14 17:33 ` Tom Rini
@ 2011-02-14 17:40 ` Phil Blundell
2011-02-14 18:10 ` Filip Zyzniewski
0 siblings, 1 reply; 21+ messages in thread
From: Phil Blundell @ 2011-02-14 17:40 UTC (permalink / raw)
To: openembedded-devel
On Mon, 2011-02-14 at 10:33 -0700, Tom Rini wrote:
> Honestly, I think we need bus and vendor in the split. I do want the
> firmware for my ralink USB WiFi dongle but not all of the other vendors
> and I'd un-install what I could un-install.
Yeah, agreed. Or even a split down to individual devices/drivers since
each of the Ralink firmware binaries is quite large in itself.
p.
^ permalink raw reply [flat|nested] 21+ messages in thread
* [PATCHv2] image.bbclass: move insert_feed_uris() to rootfs_ipk.bbclass
2011-02-14 17:22 ` Filip Zyzniewski
2011-02-14 17:33 ` Tom Rini
@ 2011-02-14 18:01 ` Filip Zyzniewski
2011-02-14 18:03 ` Filip Zyzniewski
1 sibling, 1 reply; 21+ messages in thread
From: Filip Zyzniewski @ 2011-02-14 18:01 UTC (permalink / raw)
To: openembedded-devel
This function generates feed configuration for opkg and as such
should be used only for images using ipk, not rpm or deb.
Signed-off-by: Filip Zyzniewski <filip.zyzniewski@gmail.com>
---
classes/image.bbclass | 32 --------------------------------
classes/rootfs_ipk.bbclass | 33 +++++++++++++++++++++++++++++++++
2 files changed, 33 insertions(+), 32 deletions(-)
diff --git a/classes/image.bbclass b/classes/image.bbclass
index 9765442..9621614 100644
--- a/classes/image.bbclass
+++ b/classes/image.bbclass
@@ -172,9 +172,6 @@ fakeroot do_rootfs () {
rootfs_${IMAGE_PKGTYPE}_do_rootfs
- [ "${ONLINE_PACKAGE_MANAGEMENT}" != "none" ] && \
- insert_feed_uris
-
${IMAGE_PREPROCESS_COMMAND}
ROOTFS_SIZE=`du -ks ${IMAGE_ROOTFS}|awk '{size = ${IMAGE_EXTRA_SPACE} + $1; print (size > ${IMAGE_ROOTFS_SIZE} ? size : ${IMAGE_ROOTFS_SIZE}) }'`
@@ -194,35 +191,6 @@ do_deploy_to () {
cp "${DEPLOY_DIR_IMAGE}/${IMAGE_NAME}.rootfs.${IMAGE_FSTYPES}" ${DEPLOY_TO}
}
-insert_feed_uris () {
-
- echo "Building feeds for [${DISTRO}].."
-
- for line in ${FEED_URIS}
- do
- # strip leading and trailing spaces/tabs, then split into name and uri
- line_clean="`echo "$line"|sed 's/^[ \t]*//;s/[ \t]*$//'`"
- feed_name="`echo "$line_clean" | sed -n 's/\(.*\)##\(.*\)/\1/p'`"
- feed_uri="`echo "$line_clean" | sed -n 's/\(.*\)##\(.*\)/\2/p'`"
-
- echo "Added $feed_name feed with URL $feed_uri"
-
- # insert new feed-sources
- echo "src/gz $feed_name $feed_uri" >> ${IMAGE_ROOTFS}/etc/opkg/${feed_name}-feed.conf
- done
-
- # Allow to use package deploy directory contents as quick devel-testing
- # feed. This creates individual feed configs for each arch subdir of those
- # specified as compatible for the current machine.
- # NOTE: Development-helper feature, NOT a full-fledged feed.
- if [ -n "${FEED_DEPLOYDIR_BASE_URI}" ]; then
- for arch in ${PACKAGE_ARCHS}
- do
- echo "src/gz local-$arch ${FEED_DEPLOYDIR_BASE_URI}/$arch" >> ${IMAGE_ROOTFS}/etc/opkg/local-$arch-feed.conf
- done
- fi
-}
-
log_check() {
set +x
for target in $*
diff --git a/classes/rootfs_ipk.bbclass b/classes/rootfs_ipk.bbclass
index 92f521d..b173184 100644
--- a/classes/rootfs_ipk.bbclass
+++ b/classes/rootfs_ipk.bbclass
@@ -104,8 +104,41 @@ fakeroot rootfs_ipk_do_rootfs () {
log_check rootfs
rm -rf ${IPKG_TMP_DIR}
+
+ [ "${ONLINE_PACKAGE_MANAGEMENT}" != "none" ] && \
+ rootfs_ipk_insert_feed_uris
}
+rootfs_ipk_insert_feed_uris () {
+
+ echo "Building feeds for [${DISTRO}].."
+
+ for line in ${FEED_URIS}
+ do
+ # strip leading and trailing spaces/tabs, then split into name and uri
+ line_clean="`echo "$line"|sed 's/^[ \t]*//;s/[ \t]*$//'`"
+ feed_name="`echo "$line_clean" | sed -n 's/\(.*\)##\(.*\)/\1/p'`"
+ feed_uri="`echo "$line_clean" | sed -n 's/\(.*\)##\(.*\)/\2/p'`"
+
+ echo "Added $feed_name feed with URL $feed_uri"
+
+ # insert new feed-sources
+ echo "src/gz $feed_name $feed_uri" >> ${IMAGE_ROOTFS}/etc/opkg/${feed_name}-feed.conf
+ done
+
+ # Allow to use package deploy directory contents as quick devel-testing
+ # feed. This creates individual feed configs for each arch subdir of those
+ # specified as compatible for the current machine.
+ # NOTE: Development-helper feature, NOT a full-fledged feed.
+ if [ -n "${FEED_DEPLOYDIR_BASE_URI}" ]; then
+ for arch in ${PACKAGE_ARCHS}
+ do
+ echo "src/gz local-$arch ${FEED_DEPLOYDIR_BASE_URI}/$arch" >> ${IMAGE_ROOTFS}/etc/opkg/local-$arch-feed.conf
+ done
+ fi
+}
+
+
rootfs_ipk_log_check() {
target="$1"
lf_path="$2"
--
1.7.1
^ permalink raw reply related [flat|nested] 21+ messages in thread
* Re: [PATCHv2] image.bbclass: move insert_feed_uris() to rootfs_ipk.bbclass
2011-02-14 18:01 ` [PATCHv2] image.bbclass: move insert_feed_uris() to rootfs_ipk.bbclass Filip Zyzniewski
@ 2011-02-14 18:03 ` Filip Zyzniewski
0 siblings, 0 replies; 21+ messages in thread
From: Filip Zyzniewski @ 2011-02-14 18:03 UTC (permalink / raw)
To: openembedded-devel
On 2/14/11, Filip Zyzniewski <filip.zyzniewski@gmail.com> wrote:
> This function generates feed configuration for opkg and as such
> should be used only for images using ipk, not rpm or deb.
Uh, sorry, this wasn't supposed to land here :).
bye,
Filip Zyzniewski
^ permalink raw reply [flat|nested] 21+ messages in thread
* Re: [PATCH] linux-firmware: split into bus specific packages.
2011-02-14 17:40 ` Phil Blundell
@ 2011-02-14 18:10 ` Filip Zyzniewski
2011-02-14 18:19 ` Tom Rini
0 siblings, 1 reply; 21+ messages in thread
From: Filip Zyzniewski @ 2011-02-14 18:10 UTC (permalink / raw)
To: openembedded-devel
On 2/14/11, Phil Blundell <philb@gnu.org> wrote:
> Yeah, agreed. Or even a split down to individual devices/drivers since
> each of the Ralink firmware binaries is quite large in itself.
Yeah, I agree it is a good idea, it just isn't needed for us.
So could this be done in two steps:
1) this patch (by me) - split into buses;
2) second patch (by whoever needs this) - furtherly split bus packages
by devices?
bye,
Filip Zyzniewski
^ permalink raw reply [flat|nested] 21+ messages in thread
* Re: [PATCH] linux-firmware: split into bus specific packages.
2011-02-13 14:08 [PATCH] linux-firmware: split into bus specific packages Filip Zyzniewski
2011-02-14 15:58 ` Otavio Salvador
@ 2011-02-14 18:18 ` Tom Rini
2011-02-14 18:46 ` [PATCHv2] " Filip Zyzniewski
2 siblings, 0 replies; 21+ messages in thread
From: Tom Rini @ 2011-02-14 18:18 UTC (permalink / raw)
To: openembedded-devel
On 02/13/2011 07:08 AM, Filip Zyzniewski wrote:
> The whole reposotiry is about 24MB in size and it's rarely needed
> whole. It is now splitted into bus specific subpackages (and some
> device-specific for devices on a bus like SPI or SBUS) all depended
> on by the linux-firmware package.
[snip]
> +RDEPENDS += "${SUBPACKAGES}"
Given the previous threads, I think we still have a problem, which is
that this should be
RDEPENDS_${PN} += "${SUBPACKAGES}"
so that there's a valid upgrade path.
--
Tom Rini
Mentor Graphics Corporation
^ permalink raw reply [flat|nested] 21+ messages in thread
* Re: [PATCH] linux-firmware: split into bus specific packages.
2011-02-14 18:10 ` Filip Zyzniewski
@ 2011-02-14 18:19 ` Tom Rini
0 siblings, 0 replies; 21+ messages in thread
From: Tom Rini @ 2011-02-14 18:19 UTC (permalink / raw)
To: openembedded-devel
On 02/14/2011 11:10 AM, Filip Zyzniewski wrote:
> On 2/14/11, Phil Blundell<philb@gnu.org> wrote:
>> Yeah, agreed. Or even a split down to individual devices/drivers since
>> each of the Ralink firmware binaries is quite large in itself.
>
> Yeah, I agree it is a good idea, it just isn't needed for us.
>
> So could this be done in two steps:
> 1) this patch (by me) - split into buses;
> 2) second patch (by whoever needs this) - furtherly split bus packages
> by devices?
I think that's fine. See my other email just now and we'll push v2,
assuming I'm remembering how upgrades work, right :)
--
Tom Rini
Mentor Graphics Corporation
^ permalink raw reply [flat|nested] 21+ messages in thread
* [PATCHv2] linux-firmware: split into bus specific packages.
2011-02-13 14:08 [PATCH] linux-firmware: split into bus specific packages Filip Zyzniewski
2011-02-14 15:58 ` Otavio Salvador
2011-02-14 18:18 ` [PATCH] linux-firmware: split into bus specific packages Tom Rini
@ 2011-02-14 18:46 ` Filip Zyzniewski
2011-02-22 21:15 ` Filip Zyzniewski
2011-02-23 6:33 ` Koen Kooi
2 siblings, 2 replies; 21+ messages in thread
From: Filip Zyzniewski @ 2011-02-14 18:46 UTC (permalink / raw)
To: openembedded-devel
The whole reposotiry is about 24MB in size and it's rarely needed
whole. It is now splitted into bus specific subpackages (and some
device-specific for devices on a bus like SPI or SBUS) all depended
on by the linux-firmware package.
Suggested improvement - split bus packages furtherly into device
packages (so that we can either pull in a whole bus or just one
device).
Signed-off-by: Filip Zyzniewski <filip.zyzniewski@gmail.com>
---
recipes/linux-firmware/linux-firmware_git.bb | 144 +++++++++++++++++++++++++-
1 files changed, 142 insertions(+), 2 deletions(-)
diff --git a/recipes/linux-firmware/linux-firmware_git.bb b/recipes/linux-firmware/linux-firmware_git.bb
index 7bff379..14dc1b6 100644
--- a/recipes/linux-firmware/linux-firmware_git.bb
+++ b/recipes/linux-firmware/linux-firmware_git.bb
@@ -1,7 +1,8 @@
DESCRIPTION = "Firmware files for use with Linux kernel"
+PR = "r1"
PR_append = "+gitr${SRCREV}"
-SRCREV = "80a203275fc368db0a5f166c42dd35a4a22f2453"
+SRCREV = "2fab48391fda8a914b55c8ac265eb3b6ee10ace8"
SRC_URI = "git://git.kernel.org/pub/scm/linux/kernel/git/dwmw2/linux-firmware.git;protocol=git"
@@ -16,7 +17,146 @@ do_install() {
cp -RpP * ${D}/lib/firmware/
}
-FILES_${PN} += "/lib/firmware/*"
+SUBPACKAGES = "${PN}-i2c \
+ ${PN}-isa \
+ ${PN}-pci \
+ ${PN}-pcmcia \
+ ${PN}-sdio \
+ ${PN}-usb \
+ ${PN}-agere \
+ ${PN}-dsp56k \
+ ${PN}-gspi8682 \
+ ${PN}-gspi8686 \
+ ${PN}-gspi8688 \
+ ${PN}-myri-sbus \
+ ${PN}-qlogicpti \
+ ${PN}-wl12xx \
+ ${PN}-yam"
+
+RDEPENDS_${PN} += "${SUBPACKAGES}"
+PACKAGES += "${SUBPACKAGES}"
+
PACKAGE_ARCH = "all"
+RDEPENDS_${PN}-pci += "${PN}-agere ${PN}-i2c"
+RDEPENDS_${PN}-pcmcia += "${PN}-agere"
+RDEPENDS_${PN}-sdio += "${PN}-gspi8686 ${PN}-wl12xx"
+RDEPENDS_${PN}-usb += "${PN}-agere ${PN}-i2c"
+
+
+FILES_${PN}-i2c = "/lib/firmware/dvb-fe-xc5000-1.6.114.fw \
+ /lib/firmware/lgs8g75.fw"
+
+FILES_${PN}-isa = "/lib/firmware/sb16 \
+ /lib/firmware/tr_smctr.bin \
+ /lib/firmware/yamaha/yss225_registers.bin"
+
+FILES_${PN}-pci = "/lib/firmware/3com \
+ /lib/firmware/RTL8192E \
+ /lib/firmware/acenic \
+ /lib/firmware/adaptec \
+ /lib/firmware/advansys \
+ /lib/firmware/atmsar11.fw \
+ /lib/firmware/av7110 \
+ /lib/firmware/bnx2 \
+ /lib/firmware/bnx2x*.fw \
+ /lib/firmware/brcm/bcm43xx*.fw \
+ /lib/firmware/cxgb3 \
+ /lib/firmware/e100 \
+ /lib/firmware/ess/maestro3_*.fw \
+ /lib/firmware/intelliport2.bin \
+ /lib/firmware/iwlwifi-*.ucode \
+ /lib/firmware/korg/k1212.dsp \
+ /lib/firmware/matrox \
+ /lib/firmware/mwl8335_duplex.fw \
+ /lib/firmware/mwl8k \
+ /lib/firmware/phanfw.bin \
+ /lib/firmware/ql2*_fw.bin \
+ /lib/firmware/qlogic/1040.bin \
+ /lib/firmware/qlogic/12160.bin \
+ /lib/firmware/qlogic/1280.bin \
+ /lib/firmware/qlogic/sd7220.fw \
+ /lib/firmware/r128 \
+ /lib/firmware/radeon \
+ /lib/firmware/rt2561.bin \
+ /lib/firmware/rt2561s.bin \
+ /lib/firmware/rt2661.bin \
+ /lib/firmware/rt2860.bin \
+ /lib/firmware/rt3090.bin \
+ /lib/firmware/rtl_nic/rtl8168d-*.fw \
+ /lib/firmware/rtlwifi/rtl8192defw.bin \
+ /lib/firmware/rtlwifi/rtl8192sefw.bin \
+ /lib/firmware/slicoss \
+ /lib/firmware/sun/cassini.bin \
+ /lib/firmware/sxg \
+ /lib/firmware/tehuti \
+ /lib/firmware/tigon/tg3*.bin \
+ /lib/firmware/tlg2300_firmware.bin \
+ /lib/firmware/v4l-cx23418-*.fw \
+ /lib/firmware/v4l-cx23885-*.fw \
+ /lib/firmware/v4l-cx25840.fw \
+ /lib/firmware/vxge/X3fw*.ncf \
+ /lib/firmware/yamaha/ds1*.fw"
+
+FILES_${PN}-pcmcia = "/lib/firmware/cis \
+ /lib/firmware/libertas/cf8385*.bin \
+ /lib/firmware/ositech/Xilinx7OD.bin"
+
+FILES_${PN}-sdio = "/lib/firmware/brcm/bcm4329-fullmac-4-218-248-5.bin \
+ /lib/firmware/libertas/sd*.bin"
+
+FILES_${PN}-usb ="/lib/firmware/ar7010.fw \
+ /lib/firmware/ar7010_1_1.fw \
+ /lib/firmware/ar9170-*.fw \
+ /lib/firmware/ar9271.fw \
+ /lib/firmware/ath3k-*.fw \
+ /lib/firmware/cpia2 \
+ /lib/firmware/dabusb \
+ /lib/firmware/dvb-usb-dib0700-1.20.fw \
+ /lib/firmware/edgeport \
+ /lib/firmware/emi26 \
+ /lib/firmware/emi62 \
+ /lib/firmware/f2255usb.bin \
+ /lib/firmware/i2400m-fw-usb-*.sbcf \
+ /lib/firmware/i6050-fw-usb-1.5.sbcf \
+ /lib/firmware/kaweth \
+ /lib/firmware/keyspan \
+ /lib/firmware/keyspan_pda \
+ /lib/firmware/libertas/usb*.bin \
+ /lib/firmware/mts_*.fw \
+ /lib/firmware/rt2870.bin \
+ /lib/firmware/rt3070.bin \
+ /lib/firmware/rt3071.bin \
+ /lib/firmware/rt73.bin \
+ /lib/firmware/rtlwifi/rtl8192cfw.bin \
+ /lib/firmware/rtlwifi/rtl8192cufw.bin \
+ /lib/firmware/rtlwifi/rtl8712u.bin \
+ /lib/firmware/s2250*.fw \
+ /lib/firmware/ti_3410.fw \
+ /lib/firmware/ti_5052.fw \
+ /lib/firmware/ttusb-budget \
+ /lib/firmware/ueagle-atm \
+ /lib/firmware/usbdux_firmware.bin \
+ /lib/firmware/usbduxfast_firmware.bin \
+ /lib/firmware/v4l-cx231xx-avcore-01.fw \
+ /lib/firmware/vicam/firmware.fw \
+ /lib/firmware/vntwusb.fw \
+ /lib/firmware/whiteheat*.fw"
+
+FILES_${PN}-agere = "/lib/firmware/agere_*_fw.bin"
+
+FILES_${PN}-dsp56k = "/lib/firmware/dsp56k/bootstrap.bin"
+
+FILES_${PN}-gspi8682 = "/lib/firmware/libertas/gspi8682*.bin"
+
+FILES_${PN}-gspi8686 = "/lib/firmware/libertas/gspi8686*.bin"
+
+FILES_${PN}-gspi8688 = "/lib/firmware/libertas/gspi8688*.bin"
+
+FILES_${PN}-myri-sbus = "/lib/firmware/myricom/lanai.bin"
+
+FILES_${PN}-qlogicpti = "/lib/firmware/qlogic/isp1000.bin"
+
+FILES_${PN}-wl12xx = "/lib/firmware/ti-connectivity/wl1271-*.bin"
+FILES_${PN}-yam = "/lib/firmware/yam"
--
1.7.1
^ permalink raw reply related [flat|nested] 21+ messages in thread
* Re: [PATCHv2] linux-firmware: split into bus specific packages.
2011-02-14 18:46 ` [PATCHv2] " Filip Zyzniewski
@ 2011-02-22 21:15 ` Filip Zyzniewski
2011-02-23 6:33 ` Koen Kooi
1 sibling, 0 replies; 21+ messages in thread
From: Filip Zyzniewski @ 2011-02-22 21:15 UTC (permalink / raw)
To: openembedded-devel
Hi,
On 2/14/11, Filip Zyzniewski <filip.zyzniewski@gmail.com> wrote:
> The whole reposotiry is about 24MB in size and it's rarely needed
> whole. It is now splitted into bus specific subpackages (and some
> device-specific for devices on a bus like SPI or SBUS) all depended
> on by the linux-firmware package.
>
> Suggested improvement - split bus packages furtherly into device
> packages (so that we can either pull in a whole bus or just one
> device).
Is there anything going on with http://patches.openembedded.org/patch/589/?
It's been in 'Under Review' state for a couple of days now...
bye,
Filip Zyzniewski
^ permalink raw reply [flat|nested] 21+ messages in thread
* Re: [PATCHv2] linux-firmware: split into bus specific packages.
2011-02-14 18:46 ` [PATCHv2] " Filip Zyzniewski
2011-02-22 21:15 ` Filip Zyzniewski
@ 2011-02-23 6:33 ` Koen Kooi
2011-02-23 7:12 ` Filip Zyzniewski
2011-02-23 7:23 ` Filip Zyzniewski
1 sibling, 2 replies; 21+ messages in thread
From: Koen Kooi @ 2011-02-23 6:33 UTC (permalink / raw)
To: openembedded-devel
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
On 14-02-11 19:46, Filip Zyzniewski wrote:
> The whole reposotiry is about 24MB in size and it's rarely needed
> whole. It is now splitted into bus specific subpackages (and some
> device-specific for devices on a bus like SPI or SBUS) all depended
> on by the linux-firmware package.
>
> Suggested improvement - split bus packages furtherly into device
> packages (so that we can either pull in a whole bus or just one
> device).
>
> Signed-off-by: Filip Zyzniewski <filip.zyzniewski@gmail.com>
> ---
> recipes/linux-firmware/linux-firmware_git.bb | 144 +++++++++++++++++++++++++-
> 1 files changed, 142 insertions(+), 2 deletions(-)
> +
> +FILES_${PN}-wl12xx = "/lib/firmware/ti-connectivity/wl1271-*.bin"
The wl12xx files need to go into /lib/firmware, not
/lib/firmware/ti-connectivity
regards,
Koen
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.5 (Darwin)
iD8DBQFNZKpWMkyGM64RGpERAgnPAKC4Yxrzomw/SWENX3F7t329lYvW8ACePhwJ
ttjmMyrgkry0bjZh5Derjp0=
=9TpP
-----END PGP SIGNATURE-----
^ permalink raw reply [flat|nested] 21+ messages in thread
* Re: [PATCHv2] linux-firmware: split into bus specific packages.
2011-02-23 6:33 ` Koen Kooi
@ 2011-02-23 7:12 ` Filip Zyzniewski
2011-02-23 8:52 ` Eric Benard
2011-02-23 7:23 ` Filip Zyzniewski
1 sibling, 1 reply; 21+ messages in thread
From: Filip Zyzniewski @ 2011-02-23 7:12 UTC (permalink / raw)
To: openembedded-devel
On 2/23/11, Koen Kooi <k.kooi@student.utwente.nl> wrote:
> The wl12xx files need to go into /lib/firmware, not
> /lib/firmware/ti-connectivity
This layout is copied verbatim from the linux-firmware git repository.
Maybe I'll just report it upstream?
bye,
Filip Zyzniewski
^ permalink raw reply [flat|nested] 21+ messages in thread
* [PATCHv2] linux-firmware: split into bus specific packages.
2011-02-23 6:33 ` Koen Kooi
2011-02-23 7:12 ` Filip Zyzniewski
@ 2011-02-23 7:23 ` Filip Zyzniewski
1 sibling, 0 replies; 21+ messages in thread
From: Filip Zyzniewski @ 2011-02-23 7:23 UTC (permalink / raw)
To: David Woodhouse; +Cc: openembedded-devel
Hi,
we've come across this issue with linux-firmware:
---------- Forwarded message ----------
From: Koen Kooi <k.kooi@student.utwente.nl>
Date: Wed, 23 Feb 2011 07:33:58 +0100
Subject: Re: [oe] [PATCHv2] linux-firmware: split into bus specific packages.
To: openembedded-devel@lists.openembedded.org
The wl12xx files need to go into /lib/firmware, not
/lib/firmware/ti-connectivity
-----------------------------------------------------
Grepping through kernel sources shows that that's the case:
filip.zyzniewski@jlime:/home/git/linux-hpc/drivers$ grep -r 'wl12.*\.bin' .
./net/wireless/wl1251/wl1251.h:#define WL1251_FW_NAME "wl1251-fw.bin"
./net/wireless/wl1251/wl1251.h:#define WL1251_NVS_NAME "wl1251-nvs.bin"
./net/wireless/wl12xx/wl1271.h:#define WL1271_FW_NAME "wl1271-fw.bin"
./net/wireless/wl12xx/wl1271.h:#define WL1271_NVS_NAME "wl1271-nvs.bin"
filip.zyzniewski@jlime:/home/git/linux-hpc/drivers$
Could you move these files to a location requested by the kernel?
bye,
Filip Zyzniewski
^ permalink raw reply [flat|nested] 21+ messages in thread
* Re: [PATCHv2] linux-firmware: split into bus specific packages.
2011-02-23 7:12 ` Filip Zyzniewski
@ 2011-02-23 8:52 ` Eric Benard
2011-02-23 13:26 ` Filip Zyzniewski
0 siblings, 1 reply; 21+ messages in thread
From: Eric Benard @ 2011-02-23 8:52 UTC (permalink / raw)
To: openembedded-devel
Hi Filip,
On 23/02/2011 08:12, Filip Zyzniewski wrote:
> On 2/23/11, Koen Kooi<k.kooi@student.utwente.nl> wrote:
>
>> The wl12xx files need to go into /lib/firmware, not
>> /lib/firmware/ti-connectivity
>
> This layout is copied verbatim from the linux-firmware git repository.
> Maybe I'll just report it upstream?
>
I'm not sure the linux-firmare repo is intendeed to be used as is.
Original goal was just to collect the firmwares :
http://lwn.net/Articles/294308/
As already said before, there is an other version of this recipe in
recipes/firmwares/linux-firmware.inc
which is already splitted in small packages for some firmware such as :
firmware-atheros-ar9271.bb
firmware-marvell-sd8688_10.38.1-p25.bb
Eric
^ permalink raw reply [flat|nested] 21+ messages in thread
* Re: [PATCHv2] linux-firmware: split into bus specific packages.
2011-02-23 8:52 ` Eric Benard
@ 2011-02-23 13:26 ` Filip Zyzniewski
2011-02-23 14:28 ` Koen Kooi
0 siblings, 1 reply; 21+ messages in thread
From: Filip Zyzniewski @ 2011-02-23 13:26 UTC (permalink / raw)
To: openembedded-devel
On 2/23/11, Eric Benard <eric@eukrea.com> wrote:
> As already said before, there is an other version of this recipe in
> recipes/firmwares/linux-firmware.inc
> which is already splitted in small packages for some firmware such as :
> firmware-atheros-ar9271.bb
> firmware-marvell-sd8688_10.38.1-p25.bb
So you suggest removing recipes/linux-firmware altogether?
If so, recipes/firmwares/linux-firmware.inc would need a lot of
reshaping to provide what I need (bus specific packages).
bye,
Filip Zyzniewski
^ permalink raw reply [flat|nested] 21+ messages in thread
* Re: [PATCHv2] linux-firmware: split into bus specific packages.
2011-02-23 13:26 ` Filip Zyzniewski
@ 2011-02-23 14:28 ` Koen Kooi
0 siblings, 0 replies; 21+ messages in thread
From: Koen Kooi @ 2011-02-23 14:28 UTC (permalink / raw)
To: openembedded-devel
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
On 23-02-11 14:26, Filip Zyzniewski wrote:
> On 2/23/11, Eric Benard <eric@eukrea.com> wrote:
>> As already said before, there is an other version of this recipe in
>> recipes/firmwares/linux-firmware.inc
>> which is already splitted in small packages for some firmware such as :
>> firmware-atheros-ar9271.bb
>> firmware-marvell-sd8688_10.38.1-p25.bb
>
> So you suggest removing recipes/linux-firmware altogether?
> If so, recipes/firmwares/linux-firmware.inc would need a lot of
> reshaping to provide what I need (bus specific packages).
I have no strong opinion on that, but I need a wl12xx package before the
end of the week due to deadlines, so I added that to the existing
linux-firmware recipe.
FWIW, if the split goes thru, proper licensing info needs to get added
to the subpackages as well.
regards,
Koen
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.5 (Darwin)
iD8DBQFNZRlxMkyGM64RGpERAnZiAJ9zUQNuUAMJ/BCnUNQ7j9SoIMFjRACaAtVR
/crz6+iArTErc59iLcP/yUA=
=idnZ
-----END PGP SIGNATURE-----
^ permalink raw reply [flat|nested] 21+ messages in thread
end of thread, other threads:[~2011-02-23 14:29 UTC | newest]
Thread overview: 21+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-02-13 14:08 [PATCH] linux-firmware: split into bus specific packages Filip Zyzniewski
2011-02-14 15:58 ` Otavio Salvador
2011-02-14 16:17 ` Eric Bénard
2011-02-14 17:08 ` Filip Zyzniewski
2011-02-14 17:13 ` Otavio Salvador
2011-02-14 17:22 ` Filip Zyzniewski
2011-02-14 17:33 ` Tom Rini
2011-02-14 17:40 ` Phil Blundell
2011-02-14 18:10 ` Filip Zyzniewski
2011-02-14 18:19 ` Tom Rini
2011-02-14 18:01 ` [PATCHv2] image.bbclass: move insert_feed_uris() to rootfs_ipk.bbclass Filip Zyzniewski
2011-02-14 18:03 ` Filip Zyzniewski
2011-02-14 18:18 ` [PATCH] linux-firmware: split into bus specific packages Tom Rini
2011-02-14 18:46 ` [PATCHv2] " Filip Zyzniewski
2011-02-22 21:15 ` Filip Zyzniewski
2011-02-23 6:33 ` Koen Kooi
2011-02-23 7:12 ` Filip Zyzniewski
2011-02-23 8:52 ` Eric Benard
2011-02-23 13:26 ` Filip Zyzniewski
2011-02-23 14:28 ` Koen Kooi
2011-02-23 7:23 ` Filip Zyzniewski
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.