Patchwork [meta-fsl-arm,v2,01/15] firmware-imx: Remove Atheros firmware

login
register
mail settings
Submitter Otavio Salvador
Date June 7, 2013, 3:27 p.m.
Message ID <1370618857-27287-2-git-send-email-otavio@ossystems.com.br>
Download mbox | patch
Permalink /patch/51299/
State Accepted
Delegated to: Otavio Salvador
Headers show

Comments

Otavio Salvador - June 7, 2013, 3:27 p.m.
The linux-firmware already provide the Atheros firmware so we should
use it and avoid duplication.

Change-Id: I5e8675612916ab20ae27e63aedba6758e9a17afb
Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
---
 conf/machine/imx53ard.conf                | 4 ++--
 conf/machine/imx53qsb.conf                | 4 ++--
 recipes-bsp/firmware-imx/firmware-imx.inc | 8 +++-----
 3 files changed, 7 insertions(+), 9 deletions(-)

Patch

diff --git a/conf/machine/imx53ard.conf b/conf/machine/imx53ard.conf
index 63048f7..5e6137c 100644
--- a/conf/machine/imx53ard.conf
+++ b/conf/machine/imx53ard.conf
@@ -12,6 +12,6 @@  KERNEL_DEVICETREE = "${S}/arch/arm/boot/dts/imx53-ard.dts"
 
 UBOOT_MACHINE = "mx53ard_config"
 
-MACHINE_FIRMWARE += "firmware-imx-ar3k \
-                     firmware-imx-ath6k"
+MACHINE_FIRMWARE += "linux-firmware-ar3k \
+                     linux-firmware-ath6k"
 MACHINE_FEATURES += "wifi bluetooth"
diff --git a/conf/machine/imx53qsb.conf b/conf/machine/imx53qsb.conf
index 3114688..ca84243 100644
--- a/conf/machine/imx53qsb.conf
+++ b/conf/machine/imx53qsb.conf
@@ -12,6 +12,6 @@  KERNEL_DEVICETREE = "${S}/arch/arm/boot/dts/imx53-qsb.dts"
 
 UBOOT_MACHINE = "mx53loco_config"
 
-MACHINE_FIRMWARE += "firmware-imx-ar3k \
-                     firmware-imx-ath6k"
+MACHINE_FIRMWARE = "linux-firmware-ar3k \
+                     linux-firmware-ath6k"
 MACHINE_FEATURES += " wifi bluetooth"
diff --git a/recipes-bsp/firmware-imx/firmware-imx.inc b/recipes-bsp/firmware-imx/firmware-imx.inc
index f321617..43bdf2f 100644
--- a/recipes-bsp/firmware-imx/firmware-imx.inc
+++ b/recipes-bsp/firmware-imx/firmware-imx.inc
@@ -19,12 +19,10 @@  do_install() {
     find ${D}/lib/firmware/ -name Android.mk -exec rm '{}' ';'
     rm ${D}/lib/firmware/LICENCE.atheros_firmware \
        ${D}/lib/firmware/README
-}
-
-PACKAGES += "${PN}-ath6k ${PN}-ar3k"
 
-FILES_${PN}-ath6k = "/lib/firmware/ath6k/*"
-FILES_${PN}-ar3k  = "/lib/firmware/ar3k/*"
+    # FIXME: Remove firmware packaged in linux-firmware
+    rm -r ${D}/lib/firmware/ath6k ${D}/lib/firmware/ar3k
+}
 
 python populate_packages_prepend() {
     vpudir = bb.data.expand('/lib/firmware/vpu', d)