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>
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 ' $@
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)