sm8350-common: Convert WiFi firmware symlinks to install_symlink targets

The last bit that was preventing building hermetic images.

Change-Id: I75bb7de4593a7992f6015317cf97e088beeba0cb
This commit is contained in:
Bruno Martins 2024-06-23 21:58:49 +01:00 committed by Arian
parent 93dc474cbe
commit e26c0df9a9
3 changed files with 17 additions and 9 deletions

View File

@ -1,6 +1,18 @@
//
// Copyright (C) 2020-2024 The LineageOS Project
// SPDX-License-Identifier: Apache-2.0
//
soong_namespace { soong_namespace {
imports: [ imports: [
"hardware/qcom-caf/bootctrl", "hardware/qcom-caf/bootctrl",
"hardware/xiaomi", "hardware/xiaomi",
], ],
} }
install_symlink {
name: "firmware_WCNSS_qcom_cfg.ini_symlink",
vendor: true,
installed_location: "firmware/wlan/qca_cld/WCNSS_qcom_cfg.ini",
symlink_target: "/vendor/etc/wifi/WCNSS_qcom_cfg.ini",
}

View File

@ -1,5 +1,5 @@
# #
# Copyright (C) 2020-2022 The LineageOS Project # Copyright (C) 2020-2024 The LineageOS Project
# #
# SPDX-License-Identifier: Apache-2.0 # SPDX-License-Identifier: Apache-2.0
# #
@ -36,12 +36,4 @@ ALL_DEFAULT_INSTALLED_MODULES += $(BT_FIRMWARE_MOUNT_POINT)
ALL_DEFAULT_INSTALLED_MODULES += $(DSP_MOUNT_POINT) ALL_DEFAULT_INSTALLED_MODULES += $(DSP_MOUNT_POINT)
ALL_DEFAULT_INSTALLED_MODULES += $(VM_SYSTEM_MOUNT_POINT) ALL_DEFAULT_INSTALLED_MODULES += $(VM_SYSTEM_MOUNT_POINT)
WIFI_FIRMWARE_SYMLINKS := $(TARGET_OUT_VENDOR)/firmware/wlan/qca_cld/
$(WIFI_FIRMWARE_SYMLINKS): $(LOCAL_INSTALLED_MODULE)
@echo "Creating wifi firmware symlinks: $@"
mkdir -p $@
$(hide) ln -sf /vendor/etc/wifi/WCNSS_qcom_cfg.ini $@/WCNSS_qcom_cfg.ini
ALL_DEFAULT_INSTALLED_MODULES += $(WIFI_FIRMWARE_SYMLINKS)
endif endif

View File

@ -566,6 +566,10 @@ PRODUCT_COPY_FILES += \
frameworks/native/data/etc/android.hardware.wifi.passpoint.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.wifi.passpoint.xml \ frameworks/native/data/etc/android.hardware.wifi.passpoint.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.wifi.passpoint.xml \
frameworks/native/data/etc/android.hardware.wifi.rtt.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.wifi.rtt.xml frameworks/native/data/etc/android.hardware.wifi.rtt.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.wifi.rtt.xml
# WiFi firmware symlinks
PRODUCT_PACKAGES += \
firmware_WCNSS_qcom_cfg.ini_symlink
# WiFi Display # WiFi Display
PRODUCT_PACKAGES += \ PRODUCT_PACKAGES += \
libnl \ libnl \