summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPavel Roskin <proski@gnu.org>2009-08-06 13:45:07 -0400
committerLuis R. Rodriguez <lrodriguez@atheros.com>2009-08-06 12:21:08 -0700
commitc49eb5d1a93314b6a965ce90282f6a5ce7d0e5f6 (patch)
treea275f186325855cac6300f109d70286578a75125
parenta88a8090f09ddc0a31e4e5409e9261ad6f9b1cf5 (diff)
downloadcrda-c49eb5d1a93314b6a965ce90282f6a5ce7d0e5f6.tar.gz
crda-c49eb5d1a93314b6a965ce90282f6a5ce7d0e5f6.tar.bz2
crda-c49eb5d1a93314b6a965ce90282f6a5ce7d0e5f6.zip
CRDA and cross-compilation
On Thu, 2009-08-06 at 09:56 -0700, Luis R. Rodriguez wrote: > ACK, is it possible to make it simpler? OK, here's my take. We only need a native compiler to verify regulatory.bin. I believe it's orthogonal to building CRDA. For someone doing a cross-compilation, it makes no sense to verify the installed regulatory.bin. Thus, the verification should be optional. But the compilation of regdbdump shouldn't be. Firstly, it's installed by "make install". Secondly, somebody may want to verify regulatory.bin on the target system. Here's the patch: crda: make it possible to disable verification Signed-off-by: Pavel Roskin <proski@gnu.org>
-rw-r--r--Makefile7
1 files changed, 5 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index b93b735..3cc61c2 100644
--- a/Makefile
+++ b/Makefile
@@ -24,7 +24,9 @@ PUBKEY_DIR?=pubkeys
CFLAGS += -Wall -g
-all: $(REG_BIN) crda intersect verify
+all: all_noverify verify
+
+all_noverify: crda intersect regdbdump
ifeq ($(USE_OPENSSL),1)
CFLAGS += -DUSE_OPENSSL `pkg-config --cflags openssl`
@@ -74,11 +76,12 @@ $(REG_BIN):
$(NQ) ' EXIST ' $(REG_BIN)
$(NQ)
$(NQ) ERROR: The file: $(REG_BIN) is missing. You need this in place in order
- $(NQ) to build CRDA. You can get it from:
+ $(NQ) to verify CRDA. You can get it from:
$(NQ)
$(NQ) $(REG_GIT)
$(NQ)
$(NQ) "Once cloned (no need to build) cp regulatory.bin to $(REG_BIN)"
+ $(NQ) "Use \"make noverify\" to disable verification"
$(NQ)
$(Q) exit 1