-
Notifications
You must be signed in to change notification settings - Fork 11
/
Makefile
75 lines (57 loc) · 1.35 KB
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
ifeq ($(KERNELRELEASE),)
.NOTPARALLEL:
KDIR ?= /lib/modules/$(shell uname -r)/build
all: modules
install: modules_install
@# When compiling with stock kernel header on Debian, System.map does
@# not exist. So, Kbuild does not run depmod and our shiny new modules is
@# not seen
@echo "Make sure depmod is up-to-date:"
depmod
%.o: %.c
$(MAKE) -C $(KDIR) M=$(shell pwd) $@
modules modules_install clean help:
$(MAKE) -C $(KDIR) M=$(shell pwd) $@
deb-pkg:
dkms mkdeb --source-only .
else
CONFIG_WFX_SECURE_LINK ?= y
CFLAGS_debug.o = -I$(src)
wfx-y := \
bh.o \
hwio.o \
fwio.o \
hif_tx_mib.o \
hif_tx.o \
hif_rx.o \
queue.o \
data_tx.o \
data_rx.o \
scan.o \
sta.o \
key.o \
main.o \
nl80211_vendor.o \
debug.o
wfx-$(CONFIG_SPI) += bus_spi.o
wfx-$(subst m,y,$(CONFIG_MMC)) += bus_sdio.o
wfx-$(CONFIG_WFX_SECURE_LINK) += \
secure_link.o \
mbedtls/library/aes.o \
mbedtls/library/bignum.o \
mbedtls/library/ccm.o \
mbedtls/library/cipher.o \
mbedtls/library/cipher_wrap.o \
mbedtls/library/ecdh.o \
mbedtls/library/ecp_curves.o \
mbedtls/library/ecp.o \
mbedtls/library/error.o \
mbedtls/library/md.o \
mbedtls/library/md_wrap.o \
mbedtls/library/platform_util.o \
mbedtls/library/sha256.o \
mbedtls/library/sha512.o
ccflags-$(CONFIG_WFX_SECURE_LINK) += \
-I$(src)/mbedtls/include -DCONFIG_WFX_SECURE_LINK=y
obj-m += wfx.o
endif