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