aboutsummaryrefslogtreecommitdiffstats
path: root/hostapd/Makefile
diff options
context:
space:
mode:
authorJohannes Berg <johannes.berg@intel.com>2020-09-18 09:49:52 (GMT)
committerJouni Malinen <j@w1.fi>2020-10-10 09:49:31 (GMT)
commit0464d5d5d6a5287f4ca5d75f4e9d7abac17bd0ea (patch)
tree9488be9de20029040f4576a077a5adba5975e8cf /hostapd/Makefile
parent0430bc8267b42d1fe26cb4f5f8385ec8c8c2a5b4 (diff)
downloadhostap-0464d5d5d6a5287f4ca5d75f4e9d7abac17bd0ea.zip
hostap-0464d5d5d6a5287f4ca5d75f4e9d7abac17bd0ea.tar.gz
hostap-0464d5d5d6a5287f4ca5d75f4e9d7abac17bd0ea.tar.bz2
build: Move config file handling into build.rules
This will make it easier to split out the handling in a proper way, and handle common cflags/dependencies. Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Diffstat (limited to 'hostapd/Makefile')
-rw-r--r--hostapd/Makefile13
1 files changed, 1 insertions, 12 deletions
diff --git a/hostapd/Makefile b/hostapd/Makefile
index 2e15c89..ac83730 100644
--- a/hostapd/Makefile
+++ b/hostapd/Makefile
@@ -1,5 +1,5 @@
ALL=hostapd hostapd_cli
-VERIFY=verify_config
+CONFIG_FILE = .config
include ../src/build.rules
@@ -27,8 +27,6 @@ CFLAGS += -I$(abspath ../src/utils)
export BINDIR ?= /usr/local/bin/
--include .config
-
ifndef CONFIG_NO_GITVER
# Add VERSION_STR postfix for builds from a git repository
ifeq ($(wildcard ../.git),../.git)
@@ -1261,15 +1259,6 @@ ifdef CONFIG_NO_TKIP
CFLAGS += -DCONFIG_NO_TKIP
endif
-verify_config:
- @if [ ! -r .config ]; then \
- echo 'Building hostapd requires a configuration file'; \
- echo '(.config). See README for more instructions. You can'; \
- echo 'run "cp defconfig .config" to create an example'; \
- echo 'configuration.'; \
- exit 1; \
- fi
-
$(DESTDIR)$(BINDIR)/%: %
install -D $(<) $(@)