libwifi-hal-slsi: Migrate to Blueprint lineage-21
authorNolen Johnson <johnsonnolen@gmail.com>
Mon, 27 Nov 2023 21:09:00 +0000 (16:09 -0500)
committerNolen Johnson <johnsonnolen@gmail.com>
Tue, 28 Nov 2023 02:20:10 +0000 (02:20 +0000)
Change-Id: Ie88642db42bde9eb3a298fc983826466d9de1131

Android.bp [new file with mode: 0755]
Android.mk [deleted file]

diff --git a/Android.bp b/Android.bp
new file mode 100755 (executable)
index 0000000..2e17f0a
--- /dev/null
@@ -0,0 +1,30 @@
+// Copyright (c) 2012 - 2013 Samsung Electronics Co., Ltd
+
+cc_library_static {
+    name: "libwifi-hal-slsi",
+    vendor_available: true,
+    compile_multilib: "both",
+    srcs: [
+        "wifi_hal.cpp",
+        "rtt.cpp",
+        "common.cpp",
+        "cpp_bindings.cpp",
+        "gscan.cpp",
+        "link_layer_stats.cpp",
+        "wifi_offload.cpp",
+        "roam.cpp",
+        "wifi_logger.cpp",
+        "wifi_nan.cpp",
+        "wifi_nan_data_path.cpp",
+    ],
+
+    include_dirs: [
+        "system/core/include",
+        "external/libnl/include",
+        "hardware/libhardware_legacy/include/hardware_legacy",
+        "external/wpa_supplicant_8/src/drivers",
+    ],
+
+    cflags: ["-Wno-unused-parameter"],
+    header_libs: ["liblog_headers"],
+}
diff --git a/Android.mk b/Android.mk
deleted file mode 100755 (executable)
index 38ce9dd..0000000
+++ /dev/null
@@ -1,43 +0,0 @@
-#############################################################################
-#
-# Copyright (c) 2012 - 2013 Samsung Electronics Co., Ltd
-#
-#############################################################################
-
-ifeq ($(BOARD_WLAN_DEVICE),slsi)
-
-LOCAL_PATH := $(call my-dir)
-
-# Make the HAL library
-# ============================================================
-include $(CLEAR_VARS)
-
-LOCAL_CFLAGS := -Wno-unused-parameter
-
-LOCAL_HEADER_LIBRARIES := liblog_headers
-
-LOCAL_C_INCLUDES += \
-        system/core/include/ \
-       external/libnl/include \
-        $(call include-path-for, libhardware_legacy)/hardware_legacy \
-        external/wpa_supplicant_8/src/drivers
-
-LOCAL_SRC_FILES := \
-       wifi_hal.cpp \
-       rtt.cpp \
-       common.cpp \
-       cpp_bindings.cpp \
-       gscan.cpp \
-       link_layer_stats.cpp \
-       wifi_offload.cpp \
-       roam.cpp \
-       wifi_logger.cpp \
-       wifi_nan.cpp \
-       wifi_nan_data_path.cpp
-
-LOCAL_MODULE := libwifi-hal-slsi
-LOCAL_VENDOR_MODULE := true
-
-include $(BUILD_STATIC_LIBRARY)
-
-endif