1package { 2 default_applicable_licenses: ["hardware_qcom_wlan_license"], 3} 4 5// Added automatically by a large-scale-change that took the approach of 6// 'apply every license found to every target'. While this makes sure we respect 7// every license restriction, it may not be entirely correct. 8// 9// e.g. GPL in an MIT project might only apply to the contrib/ directory. 10// 11// Please consider splitting the single license below into multiple licenses, 12// taking care not to lose any license_kind information, and overriding the 13// default license using the 'licenses: [...]' property on targets as needed. 14// 15// For unused files, consider creating a 'fileGroup' with "//visibility:private" 16// to attach the license to, and including a comment whether the files may be 17// used in the current project. 18// 19// large-scale-change filtered out the below license kinds as false-positives: 20// SPDX-license-identifier-GPL-2.0 21// See: http://go/android-license-faq 22license { 23 name: "hardware_qcom_wlan_license", 24 visibility: [":__subpackages__"], 25 license_kinds: [ 26 "legacy_not_a_contribution", 27 "SPDX-license-identifier-Apache-2.0", 28 "SPDX-license-identifier-BSD", 29 ], 30 // large-scale-change unable to identify any license_text files 31} 32 33soong_config_module_type { 34 name: "wifihal_qcom_defaults", 35 module_type: "cc_defaults", 36 config_namespace: "qcom_wifi", 37 variables: [ 38 "board_wlan_chip", // BOARD_WLAN_CHIP 39 ], 40 properties: [ 41 "shared_libs", 42 "whole_static_libs", 43 ], 44} 45 46soong_config_string_variable { 47 name: "board_wlan_chip", 48 values: [ 49 "wcn6740", 50 "wcn3990", 51 ], 52} 53 54wifihal_qcom_defaults { 55 name: "libwifi-hal-qcom", 56 soong_config_variables: { 57 board_wlan_chip: { 58 wcn6740: { 59 whole_static_libs: [ 60 "//hardware/qcom/wlan/wcn6740:libwifi-hal-qcom", 61 ], 62 shared_libs: [ 63 "//hardware/qcom/wlan/wcn6740:libcld80211", 64 "libcrypto", 65 ], 66 }, 67 wcn3990: { 68 whole_static_libs: select(soong_config_variable("pixel_watch", "bsp_dir"), { 69 any @ bsp_dir: [ 70 "//hardware/qcom/" + bsp_dir + "/wlan/qcwcn/wifi_hal:libwifi-hal-qcom", 71 ], 72 }), 73 shared_libs: select(soong_config_variable("pixel_watch", "bsp_dir"), { 74 any @ bsp_dir: [ 75 "//hardware/qcom/" + bsp_dir + "/wlan/cld80211-lib:libcld80211", 76 "libcrypto", 77 ], 78 }), 79 }, 80 conditions_default: { 81 whole_static_libs: [ 82 "//hardware/qcom/wlan/legacy:libwifi-hal-qcom", 83 ], 84 shared_libs: [ 85 "//hardware/qcom/wlan/legacy:libcld80211", 86 "libcrypto", 87 ], 88 }, 89 }, 90 }, 91} 92