From 048ca071ddac1440208528100db3fbc58dc32e09 Mon Sep 17 00:00:00 2001 From: lxoliva Date: Wed, 10 Feb 2010 07:20:42 +0000 Subject: [PATCH] Fix deblobbing of SXG and ME4000. git-svn-id: http://www.fsfla.org/svn/fsfla/software/linux-libre/scripts@5993 559672b5-ba27-0410-b829-e8f1faed8b1b --- deblob-2.6.29 | 30 +++++++++++++++++++++++++++--- 1 file changed, 27 insertions(+), 3 deletions(-) diff --git a/deblob-2.6.29 b/deblob-2.6.29 index 30bd133b338..e4842b1ac41 100755 --- a/deblob-2.6.29 +++ b/deblob-2.6.29 @@ -973,15 +973,31 @@ clean_kconfig drivers/net/Kconfig 'SPIDER_NET' clean_mk CONFIG_SPIDER_NET drivers/net/Makefile announce SXG - "Alacritech SLIC Technology Non-Accelerated 10Gbe cards" -clean_blob drivers/staging/sxg/saharadbgdownload.h -clean_blob drivers/staging/sxg/sxgphycode.h +clean_file drivers/staging/sxg/saharadbgdownload.h +clean_file drivers/staging/sxg/sxgphycode.h clean_sed ' +/^static bool sxg_download_microcode(/,/^}$/{ + /^{$/{ + p + i\ +#if 1\ + printk(KERN_ERR KBUILD_MODNAME ": missing Free firmware\\n");\ + return (FALSE);\ +#else + d + } + /^}/{ + i\ +#endif + } +} /^static int sxg_phy_init(/,/^}$/{ /for (p = PhyUcode/i\ - printk("%s: missing Free firmware\n");\ + printk(KERN_ERR KBUILD_MODNAME ": missing Free firmware\\n");\ return (STATUS_FAILURE);\ #define PhyUcode NULL }' drivers/staging/sxg/sxg.c 'report missing Free firmware' +clean_blob drivers/staging/sxg/sxg.c clean_kconfig drivers/staging/sxg/Kconfig 'SXG' clean_mk CONFIG_SXG drivers/staging/sxg/Makefile @@ -1402,6 +1418,14 @@ clean_mk CONFIG_SERIAL_QE drivers/serial/Makefile announce ME4000 - "Meilhaus ME-4000 I/O board" clean_file drivers/staging/me4000/me4000_firmware.h clean_file drivers/staging/me4000/me4610_firmware.h +clean_sed ' +/^static int me4000_xilinx_download([^;]*$/,/^}$/{ + /firm = .*xilinx_firm.*/i\ + printk(KERN_ERR "me4000: Missing Free firmware\\n");\ + return -EIO; +} +' drivers/staging/me4000/me4000.c 'report missing Free firmware' +clean_blob drivers/staging/me4000/me4000.c clean_kconfig drivers/staging/me4000/Kconfig 'ME4000' clean_mk CONFIG_ME4000 drivers/staging/me4000/Makefile -- 2.31.1