#! /bin/sh
-# Copyright (C) 2008-2021 Alexandre Oliva <lxoliva@fsfla.org>
+# Copyright (C) 2008-2022 Alexandre Oliva <lxoliva@fsfla.org>
# Copyright (C) 2008 Jeff Moe
# Copyright (C) 2009 Rubén Rodríguez <ruben@gnu.org>
#
-EINVAL)
}' drivers/net/ethernet/broadcom/bnx2x/bnx2x_main.c 'report missing Free firmware'
clean_blob drivers/net/ethernet/broadcom/bnx2x/bnx2x_main.c
-clean_sed '
+if grep -q loaded_fw_major drivers/net/ethernet/broadcom/bnx2x/bnx2x_cmn.c; then
+ clean_blob drivers/net/ethernet/broadcom/bnx2x/bnx2x_cmn.c
+else
+ clean_sed '
/^int bnx2x_compare_fw_ver/,/^}$/{
/^ u32 my_fw = /i\
/*(DEBLOBBED)*/
u32 my_fw = ~loaded_fw;
}
}' drivers/net/ethernet/broadcom/bnx2x/bnx2x_cmn.c 'fail already-loaded test'
+fi
clean_blob drivers/net/ethernet/broadcom/bnx2x/bnx2x_hsi.h
clean_sed '
/static void bnx2x_init_wr_wb/{
# host
-announce USB_XHCI_PCI_RENESAS - "Support for additional Renesas xHCI controller with firwmare"
+announce USB_XHCI_PCI_RENESAS - "Support for additional Renesas xHCI controller with firmware"
if grep -q 'firmware_request_nowarn' drivers/usb/host/xhci-pci-renesas.c; then
reject_firmware_nowarn drivers/usb/host/xhci-pci-renesas.c
else
#! /bin/sh
-# Copyright (C) 2008-2021 Alexandre Oliva <lxoliva@fsfla.org>
+# Copyright (C) 2008-2022 Alexandre Oliva <lxoliva@fsfla.org>
# Copyright (C) 2008 Jeff Moe
# Copyright (C) 2009 Rubén Rodríguez <ruben@gnu.org>
#
-EINVAL)
}' drivers/net/ethernet/broadcom/bnx2x/bnx2x_main.c 'report missing Free firmware'
clean_blob drivers/net/ethernet/broadcom/bnx2x/bnx2x_main.c
-clean_sed '
+if grep -q loaded_fw_major drivers/net/ethernet/broadcom/bnx2x/bnx2x_cmn.c; then
+ clean_blob drivers/net/ethernet/broadcom/bnx2x/bnx2x_cmn.c
+else
+ clean_sed '
/^int bnx2x_compare_fw_ver/,/^}$/{
/^ u32 my_fw = /i\
/*(DEBLOBBED)*/
u32 my_fw = ~loaded_fw;
}
}' drivers/net/ethernet/broadcom/bnx2x/bnx2x_cmn.c 'fail already-loaded test'
+fi
clean_blob drivers/net/ethernet/broadcom/bnx2x/bnx2x_hsi.h
clean_sed '
/static void bnx2x_init_wr_wb/{
# host
-announce USB_XHCI_PCI_RENESAS - "Support for additional Renesas xHCI controller with firwmare"
+announce USB_XHCI_PCI_RENESAS - "Support for additional Renesas xHCI controller with firmware"
reject_firmware_nowarn drivers/usb/host/xhci-pci-renesas.c
clean_kconfig drivers/usb/host/Kconfig USB_XHCI_PCI_RENESAS
clean_mk CONFIG_USB_XHCI_PCI_RENESAS drivers/usb/host/Makefile
#! /bin/sh
-# Copyright (C) 2008-2021 Alexandre Oliva <lxoliva@fsfla.org>
+# Copyright (C) 2008-2022 Alexandre Oliva <lxoliva@fsfla.org>
# Copyright (C) 2008 Jeff Moe
# Copyright (C) 2009 Rubén Rodríguez <ruben@gnu.org>
#
-EINVAL)
}' drivers/net/ethernet/broadcom/bnx2x/bnx2x_main.c 'report missing Free firmware'
clean_blob drivers/net/ethernet/broadcom/bnx2x/bnx2x_main.c
-clean_sed '
+if grep -q loaded_fw_major drivers/net/ethernet/broadcom/bnx2x/bnx2x_cmn.c; then
+ clean_blob drivers/net/ethernet/broadcom/bnx2x/bnx2x_cmn.c
+else
+ clean_sed '
/^int bnx2x_compare_fw_ver/,/^}$/{
/^ u32 my_fw = /i\
/*(DEBLOBBED)*/
u32 my_fw = ~loaded_fw;
}
}' drivers/net/ethernet/broadcom/bnx2x/bnx2x_cmn.c 'fail already-loaded test'
+fi
clean_blob drivers/net/ethernet/broadcom/bnx2x/bnx2x_hsi.h
clean_sed '
/static void bnx2x_init_wr_wb/{