summaryrefslogtreecommitdiff
path: root/testing/scripts/recipes/004_wpa_supplicant.mk
blob: 14b64ea78f52a64c4e65fb6602ee8b5313e68f8e (plain)
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
#!/usr/bin/make

PV  = 2.0
PKG = wpa_supplicant-$(PV)
TAR = $(PKG).tar.gz
SRC = http://hostap.epitest.fi/releases/$(TAR)

NUM_CPUS := $(shell getconf _NPROCESSORS_ONLN)

CONFIG_OPTS =

PATCHES = \
	wpa_supplicant-eap-tnc

SUBDIR = wpa_supplicant

all: install

$(TAR):
	wget $(SRC)

.$(PKG)-unpacked: $(TAR)
	tar xfz $(TAR)
	@touch $@

.$(PKG)-patches-applied: .$(PKG)-unpacked
	cd $(PKG) && cat $(addprefix ../patches/, $(PATCHES)) | patch -p1
	@touch $@

.$(PKG)-configured: .$(PKG)-patches-applied
	cp $(PKG)/$(SUBDIR)/defconfig $(PKG)/$(SUBDIR)/.config
	@touch $@

.$(PKG)-built: .$(PKG)-configured
	cd $(PKG)/$(SUBDIR) && make -j $(NUM_CPUS)
	@touch $@

install: .$(PKG)-built
	cd $(PKG)/$(SUBDIR) && make install