deblob-2.6.32.40-libre2 scripts/v2.6.32.40-libre2
authorJason Self <j@jxself.org>
Tue, 5 Feb 2019 02:19:54 +0000 (18:19 -0800)
committerJason Self <j@jxself.org>
Tue, 5 Feb 2019 02:19:54 +0000 (18:19 -0800)
deblob-2.6.32

index fd0d67af5b01024a7c887fcdb9ee291283d861bb..6eced5759d0a949fb7ef7104f5c9dbfc4c971e5a 100755 (executable)
@@ -421,6 +421,9 @@ clean_sed '
 s,\([" ]\)request_firmware(,\1reject_firmware(,
 ' arch/arm/mach-netx/xc.c 'disabled non-Free firmware-loading machinery'
 clean_blob arch/arm/mach-netx/xc.c
+if grep MODULE_FIRMWARE drivers/net/netx-eth.c > /dev/null; then
+  clean_blob drivers/net/netx-eth.c
+fi
 clean_kconfig arch/arm/Kconfig 'ARCH_NETX'
 clean_mk CONFIG_ARCH_NETX arch/arm/Makefile
 
@@ -1026,7 +1029,12 @@ announce NETXEN_NIC - "NetXen Multi port (1/10) Gigabit Ethernet NIC"
 reject_firmware drivers/net/netxen/netxen_nic.h
 reject_firmware drivers/net/netxen/netxen_nic_main.c
 reject_firmware drivers/net/netxen/netxen_nic_init.c
-clean_blob drivers/net/netxen/netxen_nic_init.c
+if grep ROMIMAGE_NAME drivers/net/netxen/netxen_nic_init.c > /dev/null; then
+  clean_blob drivers/net/netxen/netxen_nic.h
+  clean_blob drivers/net/netxen/netxen_nic_main.c
+else
+  clean_blob drivers/net/netxen/netxen_nic_init.c
+fi
 clean_kconfig drivers/net/Kconfig 'NETXEN_NIC'
 clean_mk CONFIG_NETXEN_NIC drivers/net/Makefile
 
@@ -1051,6 +1059,9 @@ announce SPIDER_NET - "Spider Gigabit Ethernet driver"
 reject_firmware drivers/net/spider_net.c
 clean_sed 's,spider_fw\.bin,DEBLOBBED.bin,g' \
   drivers/net/spider_net.c 'removed non-Free firmware notes'
+if grep MODULE_FIRMWARE drivers/net/spider_net.c > /dev/null; then
+  clean_blob drivers/net/spider_net.c
+fi
 clean_blob drivers/net/spider_net.h
 clean_kconfig drivers/net/Kconfig 'SPIDER_NET'
 clean_mk CONFIG_SPIDER_NET drivers/net/Makefile