]> git.ipfire.org Git - thirdparty/hostap.git/blobdiff - hostapd/Android.mk
wpa_supplicant: Make Android makefiles available under the BSD license
[thirdparty/hostap.git] / hostapd / Android.mk
index 46f2cd6e1419d48ff3cc911303b40156bde9567a..543c15231403bfd0cd385799d01dc23038cb43d5 100644 (file)
@@ -1,3 +1,9 @@
+# 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
@@ -6,11 +12,15 @@ ifneq ($(BOARD_HOSTAPD_DRIVER),)
   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\"
 
@@ -791,8 +801,6 @@ else
 OBJS_c += src/utils/edit_simple.c
 endif
 
-ifeq ($(WPA_BUILD_HOSTAPD),true)
-
 ########################
 
 include $(CLEAR_VARS)