[Prism54-devel] Kill a tarball compile if FW not in kernel

Margit Schubert-While margitsw@t-online.de
Wed, 04 Feb 2004 09:18:17 +0100


--=====================_2474037==_
Content-Type: text/plain; charset="us-ascii"; format=flowed

(Sent this to Luis, forgot to post Devel)
Here's the suggested patch diff for isl_38xx.c to kill
a tarball compile if FW is not in the kernel.

diff -Naur linux-2.4.24/drivers/net/wireless/prism54/isl_38xx.c 
linux-2.4.24mod/drivers/net/wireless/prism54/isl_38xx.c
--- linux-2.4.24/drivers/net/wireless/prism54/isl_38xx.c        2004-02-03 
20:37:04.000000000 +0100
+++ linux-2.4.24mod/drivers/net/wireless/prism54/isl_38xx.c     2004-02-03 
22:21:00.000000000 +0100
@@ -31,6 +31,11 @@
  #include <asm/uaccess.h>
  #include <asm/io.h>

+#include <linux/config.h>
+#if !defined(CONFIG_FW_LOADER) && !defined(CONFIG_FW_LOADER_MODULE)
+#error No Firmware Loading configured in the kernel !
+#endif
+
  #include "islpci_dev.h"
  #include "islpci_mgt.h"


Margit
--=====================_2474037==_
Content-Type: application/octet-stream; name="isl38xxpatch"
Content-Transfer-Encoding: base64
Content-Disposition: attachment; filename="isl38xxpatch"

ZGlmZiAtTmF1ciBsaW51eC0yLjQuMjQvZHJpdmVycy9uZXQvd2lyZWxlc3MvcHJpc201NC9pc2xf
Mzh4eC5jIGxpbnV4LTIuNC4yNG1vZC9kcml2ZXJzL25ldC93aXJlbGVzcy9wcmlzbTU0L2lzbF8z
OHh4LmMKLS0tIGxpbnV4LTIuNC4yNC9kcml2ZXJzL25ldC93aXJlbGVzcy9wcmlzbTU0L2lzbF8z
OHh4LmMJMjAwNC0wMi0wMyAyMDozNzowNC4wMDAwMDAwMDAgKzAxMDAKKysrIGxpbnV4LTIuNC4y
NG1vZC9kcml2ZXJzL25ldC93aXJlbGVzcy9wcmlzbTU0L2lzbF8zOHh4LmMJMjAwNC0wMi0wMyAy
MjoyMTowMC4wMDAwMDAwMDAgKzAxMDAKQEAgLTMxLDYgKzMxLDExIEBACiAjaW5jbHVkZSA8YXNt
L3VhY2Nlc3MuaD4KICNpbmNsdWRlIDxhc20vaW8uaD4KIAorI2luY2x1ZGUgPGxpbnV4L2NvbmZp
Zy5oPgorI2lmICFkZWZpbmVkKENPTkZJR19GV19MT0FERVIpICYmICFkZWZpbmVkKENPTkZJR19G
V19MT0FERVJfTU9EVUxFKQorI2Vycm9yIE5vIEZpcm13YXJlIExvYWRpbmcgY29uZmlndXJlZCBp
biB0aGUga2VybmVsICEKKyNlbmRpZgorCiAjaW5jbHVkZSAiaXNscGNpX2Rldi5oIgogI2luY2x1
ZGUgImlzbHBjaV9tZ3QuaCIKIAo=
--=====================_2474037==_--