sm8150-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 Fazil Sheik
parent f01d60914b
commit 26b2351a27
3 changed files with 24 additions and 9 deletions

View File

@ -1,3 +1,8 @@
//
// Copyright (C) 2021-2024 The LineageOS Project
// SPDX-License-Identifier: Apache-2.0
//
soong_namespace {
}
@ -23,3 +28,17 @@ prebuilt_hidl_interfaces {
"com.qualcomm.qti.dpm.api@1.0::IdpmQmi",
],
}
install_symlink {
name: "firmware_wlan_mac.bin_symlink",
vendor: true,
installed_location: "firmware/wlan/qca_cld/wlan_mac.bin",
symlink_target: "/mnt/vendor/persist/wlan_mac.bin",
}
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

@ -11,13 +11,4 @@ include $(call all-makefiles-under,$(LOCAL_PATH))
include $(CLEAR_VARS)
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
$(hide) ln -sf /mnt/vendor/persist/wlan_mac.bin $@/wlan_mac.bin
ALL_DEFAULT_INSTALLED_MODULES += $(WIFI_FIRMWARE_SYMLINKS)
endif

View File

@ -390,6 +390,11 @@ PRODUCT_COPY_FILES += \
PRODUCT_SYSTEM_EXT_PROPERTIES += \
config.disable_rtt=true
# WiFi firmware symlinks
PRODUCT_PACKAGES += \
firmware_wlan_mac.bin_symlink \
firmware_WCNSS_qcom_cfg.ini_symlink
# WiFi Display
PRODUCT_PACKAGES += \
libwfdaac_vendor