summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLuis R. Rodriguez <lrodriguez@atheros.com>2009-04-17 12:26:23 -0700
committerLuis R. Rodriguez <lrodriguez@atheros.com>2009-04-17 12:27:40 -0700
commit1ea7f65712bb94eae7a0a606e859ff498d32761e (patch)
treecb4c32eee51c59adca2708bc2d3b9ccd176237cd
parent89164c1439fb9e9beea28c4d384610136c6fa0b8 (diff)
downloadcrda-1ea7f65712bb94eae7a0a606e859ff498d32761e.tar.gz
crda-1ea7f65712bb94eae7a0a606e859ff498d32761e.tar.bz2
crda-1ea7f65712bb94eae7a0a606e859ff498d32761e.zip
Allow distributions to specify a custom pubkeys dirv1.0.2
Distributions which need a custom pubkey dir can just specify it upon build time. Signed-off-by: Luis R. Rodriguez <lrodriguez@atheros.com>
-rw-r--r--Makefile8
1 files changed, 6 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index 6d131f9..b93b735 100644
--- a/Makefile
+++ b/Makefile
@@ -16,8 +16,11 @@ UDEV_LEVEL=$(CRDA_UDEV_LEVEL)-
# a different location.
UDEV_RULE_DIR?=/lib/udev/rules.d/
-# Used locally to retrieve all pubkeys during build time
-PUBKEY_DIR=pubkeys
+# If your distribution requires a custom pubkeys dir
+# you must update this variable to reflect where the
+# keys are put when building. For example you can run
+# with make PUBKEY_DIR=/usr/lib/crda/pubkeys
+PUBKEY_DIR?=pubkeys
CFLAGS += -Wall -g
@@ -81,6 +84,7 @@ $(REG_BIN):
keys-%.c: utils/key2pub.py $(wildcard $(PUBKEY_DIR)/*.pem)
$(NQ) ' GEN ' $@
+ $(NQ) ' Trusted pubkeys:' $(wildcard $(PUBKEY_DIR)/*.pem)
$(Q)./utils/key2pub.py --$* $(wildcard $(PUBKEY_DIR)/*.pem) $@
%.o: %.c regdb.h