Revamped COPS LocalTalk.
authorlxoliva <lxoliva@559672b5-ba27-0410-b829-e8f1faed8b1b>
Sat, 7 Mar 2009 22:00:38 +0000 (22:00 +0000)
committerlxoliva <lxoliva@559672b5-ba27-0410-b829-e8f1faed8b1b>
Sat, 7 Mar 2009 22:00:38 +0000 (22:00 +0000)
git-svn-id: http://www.fsfla.org/svn/fsfla/software/linux-libre/scripts@4749 559672b5-ba27-0410-b829-e8f1faed8b1b

deblob-2.6.28
deblob-check

index 1e1805833597458e0c9645cc3c1eb4e47979ebef..0ffa4224a73fc225b6a294da0cbb96694f9488a0 100755 (executable)
@@ -588,11 +588,14 @@ clean_mk CONFIG_TYPHOON drivers/net/Makefile
 
 # appletalk
 
-# COPS - COPS LocalTalk PC
-# clean_blob drivers/net/appletalk/cops.c
-# clean_blob drivers/net/appletalk/cops.h
-clean_blob drivers/net/appletalk/cops_ffdrv.h
-clean_blob drivers/net/appletalk/cops_ltdrv.h
+announce COPS - COPS LocalTalk PC
+clean_sed '/sizeof(\(ff\|lt\)drv_code)/i\
+               printk(KERN_INFO "%s: Missing Free firmware.\\n", dev->name);\
+               return;
+/\(ff\|lt\)drv_code/d;' drivers/net/appletalk/cops.c
+clean_blob drivers/net/appletalk/cops.c
+clean_file drivers/net/appletalk/cops_ffdrv.h
+clean_file drivers/net/appletalk/cops_ltdrv.h
 clean_kconfig drivers/net/appletalk/Kconfig 'COPS'
 clean_mk CONFIG_COPS drivers/net/appletalk/Makefile
 
index fa1ba222525295bdfe8effdd99936a51bb9fed61..643b5d75555c5d95a2d0660ed856656e5205f11d 100755 (executable)
@@ -1,6 +1,6 @@
 #! /bin/sh
 
-# deblob-check version 2009-03-06
+# deblob-check version 2009-03-07
 # Inspired in gNewSense's find-firmware script.
 # Written by Alexandre Oliva <lxoliva@fsfla.org>
 
@@ -967,6 +967,11 @@ set_except () {
 
     blob 'static const u8 typhoon_firmware_image\[\] = {[^}]*};' drivers/net/typhoon-firmware.h
 
+    blobna 'licensed[^\n]*strictly for use[^\n]*[\n]*[^\n]*COPS LocalTalk' 'drivers/net/appletalk/cops_\(ff\|lt\)drv\.h'
+    blob 'static const unsigned char ffdrv_code\[\] = {[^}]*};' drivers/net/appletalk/cops_ffdrv.h
+    blob 'static const unsgined char ltdrv_code\[\] = {[^}]*};' drivers/net/appletalk/cops_ltdrv.h
+    blob '#include "cops_\(lt\|ff\)drv\.h"[    ]*\([/][*]\([^/]\|[^*][/]*\)*Firmware\([^/]\|[^*][/]*\)*[*][/]\)\?\([\n][\n]*#include "cops_\(lt\|ff\)drv\.h"[  ]*\([/][*]\([^/]\|[^*][/]*\)*Firmware\([^/]\|[^*][/]*\)*[*][/]\)\?\)*' drivers/net/appletalk/cops.c
+
     blobna '\(agere\|prism\)_\(sta\|ap\)_fw\.bin' drivers/net/wireless/orinoco.c
     blobna 'symbol_sp24t_\(prim\|sec\)_fw' drivers/net/wireless/orinoco.c