diff options
| author | Stricted <info@stricted.net> | 2025-01-12 11:46:31 +0100 |
|---|---|---|
| committer | Stricted <info@stricted.net> | 2025-01-12 11:46:31 +0100 |
| commit | cc50f101dff4b4480d810e13bea7bee1754cf01d (patch) | |
| tree | f3a326e6a2131b31f140460992e3280f901883a0 | |
| parent | 70f4bf60f26b49401439ca56ece4c984d8c6952b (diff) | |
lib_driver_cmd_slsi: convert to bpw16.0
Change-Id: I2a25d703a90ffc2e2ee4bf6eb6f0666e6997b994
| -rw-r--r-- | Android.bp | 35 | ||||
| -rw-r--r-- | Android.mk | 70 |
2 files changed, 35 insertions, 70 deletions
diff --git a/Android.bp b/Android.bp new file mode 100644 index 0000000..831017f --- /dev/null +++ b/Android.bp @@ -0,0 +1,35 @@ +// +// Copyright (C) 2025 The LineageOS Project +// +// SPDX-License-Identifier: Apache-2.0 +// + + +cc_library_static { + name: "lib_driver_cmd_slsi", + vendor: true, + shared_libs: [ + "libc", + "libcutils", + ], + + cflags: [ + "-DCONFIG_ANDROID_LOG", + "-Wno-unused-parameter", + ], + + srcs: [ + "driver_cmd_nl80211.c", + ], + + include_dirs: [ + "external/wpa_supplicant_8/src", + "external/wpa_supplicant_8/src/common", + "external/wpa_supplicant_8/src/drivers", + "external/wpa_supplicant_8/src/l2_packet", + "external/wpa_supplicant_8/src/utils", + "external/wpa_supplicant_8/src/wps", + "external/wpa_supplicant_8/wpa_supplicant", + "external/libnl/include", + ], +} diff --git a/Android.mk b/Android.mk deleted file mode 100644 index 2f0af7f..0000000 --- a/Android.mk +++ /dev/null @@ -1,70 +0,0 @@ -# -# Copyright (C) 2008 The Android Open Source Project -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# -LOCAL_PATH := $(call my-dir) - -ifeq ($(WPA_SUPPLICANT_VERSION),VER_0_8_X) - -ifneq ($(BOARD_WPA_SUPPLICANT_DRIVER),) - CONFIG_DRIVER_$(BOARD_WPA_SUPPLICANT_DRIVER) := y -endif - -WPA_SUPPL_DIR = external/wpa_supplicant_8 -WPA_SRC_FILE := - -include $(WPA_SUPPL_DIR)/wpa_supplicant/android.config - -WPA_SUPPL_DIR_INCLUDE = $(WPA_SUPPL_DIR)/src \ - $(WPA_SUPPL_DIR)/src/common \ - $(WPA_SUPPL_DIR)/src/drivers \ - $(WPA_SUPPL_DIR)/src/l2_packet \ - $(WPA_SUPPL_DIR)/src/utils \ - $(WPA_SUPPL_DIR)/src/wps \ - $(WPA_SUPPL_DIR)/wpa_supplicant - -ifdef CONFIG_DRIVER_NL80211 -WPA_SUPPL_DIR_INCLUDE += external/libnl/include -WPA_SRC_FILE += driver_cmd_nl80211.c -endif - -ifeq ($(TARGET_ARCH),arm) -# To force sizeof(enum) = 4 -L_CFLAGS += -mabi=aapcs-linux -endif - -ifdef CONFIG_ANDROID_LOG -L_CFLAGS += -DCONFIG_ANDROID_LOG -endif - -ifdef CONFIG_P2P -L_CFLAGS += -DCONFIG_P2P -endif - -L_CFLAGS += -Wall -Werror -Wno-unused-parameter -Wno-macro-redefined - -######################## - -include $(CLEAR_VARS) -LOCAL_MODULE := lib_driver_cmd_slsi -LOCAL_SHARED_LIBRARIES := libc libcutils -LOCAL_CFLAGS := $(L_CFLAGS) -LOCAL_SRC_FILES := $(WPA_SRC_FILE) -LOCAL_C_INCLUDES := $(WPA_SUPPL_DIR_INCLUDE) -LOCAL_VENDOR_MODULE := true -include $(BUILD_STATIC_LIBRARY) - -######################## - -endif |
