crda: fix two bugs
authorJohannes Berg <johannes@sipsolutions.net>
Wed, 10 Dec 2008 10:19:34 +0000 (11:19 +0100)
committerLuis R. Rodriguez <lrodriguez@atheros.com>
Wed, 10 Dec 2008 11:35:51 +0000 (03:35 -0800)
1) wrong wildcard expansion in makefile
2) multiple pubkeys don't work

This fixes both of these issues.

Acked-by: Johannes Berg <johannes@sipsolutions.net>
Signed-off-by: Luis R. Rodriguez <lrodriguez@atheros.com>
Makefile
utils/key2pub.py

index ff3bf31..ab1de94 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -33,9 +33,9 @@ Q=@
 NQ=@echo
 endif
 
-keys-%.c: utils/key2pub.py $(PUBKEY_DIR)/$(wildcard *.pem)
+keys-%.c: utils/key2pub.py $(wildcard $(PUBKEY_DIR)/*.pem)
        $(NQ) '  GEN ' $@
-       $(Q)./utils/key2pub.py --$* $(PUBKEY_DIR)/*.pem > $@
+       $(Q)./utils/key2pub.py --$* $(wildcard $(PUBKEY_DIR)/*.pem) > $@
 
 %.o: %.c regdb.h
        $(NQ) '  CC  ' $@
index bc1d33d..40c60eb 100755 (executable)
@@ -108,5 +108,6 @@ for f in files:
 
     modes[mode][0]('e_%d' % idx, key.e[4:])
     modes[mode][0]('n_%d' % idx, key.n[4:])
+    idx += 1
 
-modes[mode][1](idx)
+modes[mode][1](idx - 1)