Deyao Ren | fbcb648 | 2024-10-29 00:08:28 +0000 | [diff] [blame] | 1 | prebuilt_etc { |
| 2 | name: "wpa_supplicant.conf.prebuilt", |
| 3 | src: ":wpa_supplicant_template.conf", |
| 4 | filename: "wpa_supplicant.conf", |
| 5 | relative_install_path: "wifi", |
| 6 | installable: false, |
| 7 | } |
| 8 | |
Deyao Ren | e80d6d4 | 2025-03-06 01:53:08 +0000 | [diff] [blame] | 9 | genrule { |
| 10 | name: "com.android.hardware.hostapd.rc-gen", |
| 11 | srcs: ["android.hardware.hostapd.rc"], |
| 12 | out: ["com.android.hardware.hostapd.rc"], |
| 13 | cmd: "sed -E 's@/vendor/bin@/apex/com.android.hardware.wpa_supplicant/bin@' $(in) > $(out)", |
| 14 | } |
| 15 | |
| 16 | prebuilt_etc { |
| 17 | name: "com.android.hardware.hostapd.rc", |
| 18 | src: ":com.android.hardware.hostapd.rc-gen", |
| 19 | installable: false, |
| 20 | } |
| 21 | |
Deyao Ren | fbcb648 | 2024-10-29 00:08:28 +0000 | [diff] [blame] | 22 | apex { |
| 23 | name: "com.android.hardware.wpa_supplicant", |
| 24 | manifest: "apex_manifest.json", |
| 25 | file_contexts: "file_contexts", |
| 26 | // TODO: b/363080108 - Replace placeholder key with release key |
| 27 | key: "com.android.hardware.key", |
| 28 | certificate: ":com.android.hardware.certificate", |
| 29 | updatable: false, |
| 30 | vendor: true, |
| 31 | |
| 32 | enabled: select(soong_config_variable("wpa_supplicant_8", "wpa_build_hostapd"), { |
| 33 | true: true, |
| 34 | default: false, |
| 35 | }), |
| 36 | binaries: [ |
| 37 | "wpa_supplicant", |
| 38 | "hostapd", |
| 39 | ], |
| 40 | prebuilts: [ |
| 41 | "com.android.hardware.wpa_supplicant.rc", |
| 42 | "com.android.hardware.hostapd.rc", |
| 43 | "wpa_supplicant.conf.prebuilt", |
| 44 | ], |
| 45 | vintf_fragment_modules: [ |
| 46 | "android.hardware.wifi.hostapd.xml", |
| 47 | "android.hardware.wifi.supplicant.xml", |
| 48 | ], |
| 49 | } |