From 609cc277b78d359ba0bf50060556a334ad2baae8 Mon Sep 17 00:00:00 2001 From: Robert Nelson Date: Sun, 20 Oct 2013 11:19:47 -0500 Subject: [PATCH] wand: firmware change and protect it against renames Signed-off-by: Robert Nelson --- mk_mmc.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/mk_mmc.sh b/mk_mmc.sh index 6093776..bb855fc 100755 --- a/mk_mmc.sh +++ b/mk_mmc.sh @@ -738,7 +738,9 @@ dl_device_firmware () { echo "Adding Firmware for onboard WiFi/Bluetooth module" echo "-----------------------------" mkdir -p ${TEMPDIR}/firmware/brcm/ - cp -v "${DIR}/dl/linux-firmware/brcm/brcmfmac4329.bin" ${TEMPDIR}/firmware/brcm/brcmfmac-sdio.bin + if [ -f "${DIR}/dl/linux-firmware/brcm/brcmfmac4329-sdio.bin" ] + cp -v "${DIR}/dl/linux-firmware/brcm/brcmfmac4329-sdio.bin" ${TEMPDIR}/firmware/brcm/brcmfmac-sdio.bin + fi wget --directory-prefix=${TEMPDIR}/firmware/brcm/ https://raw.github.com/Freescale/meta-fsl-arm-extra/master/recipes-bsp/broadcom-nvram-config/files/wandboard/nvram.txt mv -v ${TEMPDIR}/firmware/brcm/nvram.txt ${TEMPDIR}/firmware/brcm/brcmfmac-sdio.txt fi