All of lore.kernel.org
 help / color / mirror / Atom feed
From: Eric Nelson <eric.nelson@boundarydevices.com>
To: John Weber <rjohnweber@gmail.com>, meta-freescale@yoctoproject.org
Subject: Re: [meta-fsl-arm-extra][PATCH 3/4] linux-firmware: add bbappend to modify firmware file names
Date: Tue, 15 Jul 2014 13:50:28 -0700	[thread overview]
Message-ID: <53C59414.2050807@boundarydevices.com> (raw)
In-Reply-To: <1405454473-16252-3-git-send-email-rjohnweber@gmail.com>

Hi John,

On 07/15/2014 01:01 PM, John Weber wrote:
> Upstream changes to the brcmfmac driver require a change to the firmware
> file names to match the devid and interface type of the Broadcom chipset.
> This also makes it easier for one machine to support multiple chipets in
> Yocto.
> 
> Signed-off-by: John Weber <rjohnweber@gmail.com>
> ---
>  .../linux-firmware/linux-firmware_git.bbappend     | 32 ++++++++++++++++++++++
>  1 file changed, 32 insertions(+)
>  create mode 100644 recipes-kernel/linux-firmware/linux-firmware_git.bbappend
> 
> diff --git a/recipes-kernel/linux-firmware/linux-firmware_git.bbappend b/recipes-kernel/linux-firmware/linux-firmware_git.bbappend
> new file mode 100644
> index 0000000..84b5fab
> --- /dev/null
> +++ b/recipes-kernel/linux-firmware/linux-firmware_git.bbappend
> @@ -0,0 +1,32 @@
> +BRCM_FWDIR = "/lib/firmware/brcm"
> +
> +do_install_append () {
> +	# rename downloaded files so that we can create alternative
> +	# links
> +
> +	cd ${D}${BRCM_FWDIR}
> +
> +	mv brcmfmac4329-sdio.bin brcmfmac4329-sta-sdio.bin
> +	mv brcmfmac4330-sdio.bin brcmfmac4330-sta-sdio.bin
> +

Nice!

It looks like you figured out a way to make this backward compatible
so that you're not waiting on me!

> +	# Create original file links, so that the base recipe sees the installed files
> +	ln -sf brcmfmac4329-sta-sdio.bin brcmfmac4329-sdio.bin
> +	ln -sf brcmfmac4330-sta-sdio.bin brcmfmac4330-sdio.bin
> +}
> +
> +FILES_${PN}-bcm4329 += " \
> +  ${BRCM_FWDIR}/brcmfmac4329-sta-sdio.bin \
> +"
> +
> +FILES_${PN}-bcm4330 += " \
> +  ${BRCM_FWDIR}/brcmfmac4330-sta-sdio.bin \
> +"
> +
> +ALTERNATIVE_linux-firmware-bcm4329 += " brcmfmac4329-sdio.bin"
> +ALTERNATIVE_LINK_NAME[brcmfmac4329-sdio.bin] = "${BRCM_FWDIR}/brcmfmac4329-sdio.bin"
> +ALTERNATIVE_TARGET_linux-firmware-bcm4329[brcmfmac4329-sdio.bin] = "${BRCM_FWDIR}/brcmfmac4329-sta-sdio.bin"
> +
> +ALTERNATIVE_linux-firmware-bcm4330 += " brcmfmac4330-sdio.bin"
> +ALTERNATIVE_LINK_NAME[brcmfmac4330-sdio.bin] = "${BRCM_FWDIR}/brcmfmac4330-sdio.bin"
> +ALTERNATIVE_TARGET_linux-firmware-bcm4330[brcmfmac4330-sdio.bin] = "${BRCM_FWDIR}/brcmfmac4330-sta-sdio.bin"
> +
> 

Acked-by: Eric Nelson <eric.nelson@boundarydevices.com>


  reply	other threads:[~2014-07-15 20:50 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-07-15 20:01 [meta-fsl-arm-extra][PATCH 1/4] broadcom-nvram-config: separate recipes to different chipsets John Weber
2014-07-15 20:01 ` [meta-fsl-arm-extra][PATCH 2/4] linux-wandboard (3.10.17): Update SRCREV to 13697f2 and update defconfig John Weber
2014-07-15 20:01 ` [meta-fsl-arm-extra][PATCH 3/4] linux-firmware: add bbappend to modify firmware file names John Weber
2014-07-15 20:50   ` Eric Nelson [this message]
2014-07-15 20:53     ` John Weber
2014-07-15 21:30       ` Eric Nelson
2014-10-06 17:36   ` [meta-fsl-arm-extra][PATCH] linux-boundary (3.10.17): Bump SRCREV to 5e35d1b2 Eric Nelson
2014-07-15 20:01 ` [meta-fsl-arm-extra][PATCH 4/4] linux-wandboard (3.0.35): remove recipe and associated files John Weber

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=53C59414.2050807@boundarydevices.com \
    --to=eric.nelson@boundarydevices.com \
    --cc=meta-freescale@yoctoproject.org \
    --cc=rjohnweber@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.