From ec4840300959f5a37dfca319acabede898aa6ad2 Mon Sep 17 00:00:00 2001 From: Sherry Sun Date: Tue, 18 Jul 2023 19:36:25 +0800 Subject: [PATCH] imx-firmware: add Makefile to make yocto installation easy. Add Makefile to make yocto install NXP WLAN firmware binaries easily. Usage: 1. Specify the installation directory: make install INSTALLDIR=${DEPLOYDIR} 2. Use the default directory wlan_fw: make install 3. Clean up the installation directory: make clean / make clean INSTALLDIR=${DEPLOYDIR} Signed-off-by: Sherry Sun --- Makefile | 42 ++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 42 insertions(+) create mode 100644 Makefile diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..b060252 --- /dev/null +++ b/Makefile @@ -0,0 +1,42 @@ +# File: Makefile +# +# Copyright 2023 NXP +# +# This software file (the File) is distributed by NXP +# under the terms of the GNU General Public License Version 2, June 1991 +# (the License). You may use, redistribute and/or modify the File in +# accordance with the terms and conditions of the License, a copy of which +# is available by writing to the Free Software Foundation, Inc., +# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA or on the +# worldwide web at http://www.gnu.org/licenses/old-licenses/gpl-2.0.txt. +# +# THE FILE IS DISTRIBUTED AS-IS, WITHOUT WARRANTY OF ANY KIND, AND THE +# IMPLIED WARRANTIES OF MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE +# ARE EXPRESSLY DISCLAIMED. The License provides additional details about +# this warranty disclaimer. +# + +INSTALLDIR ?= wlan_fw + +install: + + @if [ ! -d $(INSTALLDIR) ]; then \ + mkdir $(INSTALLDIR); \ + fi + + install -m 0644 nxp/wifi_mod_para.conf $(INSTALLDIR)/ + install -m 0644 nxp/mfguart/helper_uart_3000000.bin $(INSTALLDIR)/ + + install -m 0644 nxp/FwImage_8801_SD/* $(INSTALLDIR)/ + install -m 0644 nxp/FwImage_8987/* $(INSTALLDIR)/ + install -m 0644 nxp/FwImage_8997/* $(INSTALLDIR)/ + install -m 0644 nxp/FwImage_8997_SD/* $(INSTALLDIR)/ + install -m 0644 nxp/FwImage_9098_PCIE/* $(INSTALLDIR)/ + install -m 0644 nxp/FwImage_9098_SD/* $(INSTALLDIR)/ + install -m 0644 nxp/FwImage_IW416_SD/* $(INSTALLDIR)/ + install -m 0644 nxp/FwImage_IW612_SD/* $(INSTALLDIR)/ + +clean: + -rm -rf $(INSTALLDIR)/ + +# End of file