+# Copyright (C) 2008 The Android Open Source Project
+#
+# This software may be distributed under the terms of the BSD license.
+# See README for more details.
+#
+
LOCAL_PATH := $(call my-dir)
WPA_BUILD_HOSTAPD := false
CONFIG_DRIVER_$(BOARD_HOSTAPD_DRIVER) := y
endif
-include $(LOCAL_PATH)/.config
+ifeq ($(WPA_BUILD_HOSTAPD),true)
+
+include $(LOCAL_PATH)/android.config
# To ignore possible wrong network configurations
L_CFLAGS = -DWPA_IGNORE_CONFIG_ERRORS
+L_CFLAGS += -DVERSION_STR_POSTFIX=\"-$(PLATFORM_VERSION)\"
+
# Set Android log name
L_CFLAGS += -DANDROID_LOG_NAME=\"hostapd\"
OBJS_c += src/utils/edit_simple.c
endif
-ifeq ($(WPA_BUILD_HOSTAPD),true)
-
########################
include $(CLEAR_VARS)