dm3q: 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:
26
Android.bp
26
Android.bp
@@ -1,2 +1,28 @@
|
|||||||
|
//
|
||||||
|
// Copyright (C) 2024 The LineageOS Project
|
||||||
|
// SPDX-License-Identifier: Apache-2.0
|
||||||
|
//
|
||||||
|
|
||||||
soong_namespace {
|
soong_namespace {
|
||||||
}
|
}
|
||||||
|
|
||||||
|
install_symlink {
|
||||||
|
name: "firmware_wlanmdsp.otaupdate_symlink",
|
||||||
|
vendor: true,
|
||||||
|
installed_location: "firmware/wlanmdsp.otaupdate",
|
||||||
|
symlink_target: "/data/vendor/firmware/wlanmdsp.mbn",
|
||||||
|
}
|
||||||
|
|
||||||
|
install_symlink {
|
||||||
|
name: "firmware_wlan_mac.bin_symlink",
|
||||||
|
vendor: true,
|
||||||
|
installed_location: "firmware/wlan/qca_cld/kiwi_v2/wlan_mac.bin",
|
||||||
|
symlink_target: "/mnt/vendor/persist/kiwi_v2/wlan_mac.bin",
|
||||||
|
}
|
||||||
|
|
||||||
|
install_symlink {
|
||||||
|
name: "firmware_WCNSS_qcom_cfg.ini_symlink",
|
||||||
|
vendor: true,
|
||||||
|
installed_location: "firmware/wlan/qca_cld/kiwi_v2/WCNSS_qcom_cfg.ini",
|
||||||
|
symlink_target: "/vendor/etc/wifi/kiwi_v2/WCNSS_qcom_cfg.ini",
|
||||||
|
}
|
||||||
|
13
Android.mk
13
Android.mk
@@ -1,5 +1,5 @@
|
|||||||
#
|
#
|
||||||
# Copyright (C) 2023 The LineageOS Project
|
# Copyright (C) 2024 The LineageOS Project
|
||||||
#
|
#
|
||||||
# SPDX-License-Identifier: Apache-2.0
|
# SPDX-License-Identifier: Apache-2.0
|
||||||
#
|
#
|
||||||
@@ -8,15 +8,4 @@ LOCAL_PATH := $(call my-dir)
|
|||||||
|
|
||||||
ifneq ($(filter dm3q,$(TARGET_DEVICE)),)
|
ifneq ($(filter dm3q,$(TARGET_DEVICE)),)
|
||||||
|
|
||||||
WIFI_FIRMWARE_SYMLINKS := $(TARGET_OUT_VENDOR)/firmware/
|
|
||||||
$(WIFI_FIRMWARE_SYMLINKS): $(LOCAL_INSTALLED_MODULE)
|
|
||||||
@echo "Creating WiFi firmware symlinks: $@"
|
|
||||||
@mkdir -p $@/wlan/qca_cld/kiwi_v2
|
|
||||||
$(hide) ln -sf /data/vendor/firmware/wlanmdsp.mbn $@/wlanmdsp.otaupdate
|
|
||||||
$(hide) ln -sf /mnt/vendor/persist/kiwi_v2/wlan_mac.bin $@/wlan/qca_cld/kiwi_v2/wlan_mac.bin
|
|
||||||
$(hide) ln -sf /vendor/etc/wifi/kiwi_v2/WCNSS_qcom_cfg.ini $@/wlan/qca_cld/kiwi_v2/WCNSS_qcom_cfg.ini
|
|
||||||
|
|
||||||
ALL_DEFAULT_INSTALLED_MODULES += \
|
|
||||||
$(WIFI_FIRMWARE_SYMLINKS)
|
|
||||||
|
|
||||||
endif
|
endif
|
||||||
|
@@ -1,5 +1,5 @@
|
|||||||
#
|
#
|
||||||
# Copyright (C) 2023 The LineageOS Project
|
# Copyright (C) 2024 The LineageOS Project
|
||||||
#
|
#
|
||||||
# SPDX-License-Identifier: Apache-2.0
|
# SPDX-License-Identifier: Apache-2.0
|
||||||
#
|
#
|
||||||
@@ -25,6 +25,12 @@ PRODUCT_PACKAGES += \
|
|||||||
FrameworksResDm3q \
|
FrameworksResDm3q \
|
||||||
SystemUIResDm3q
|
SystemUIResDm3q
|
||||||
|
|
||||||
|
# WiFi firmware symlinks
|
||||||
|
PRODUCT_PACKAGES += \
|
||||||
|
firmware_wlanmdsp.otaupdate_symlink \
|
||||||
|
firmware_wlan_mac.bin_symlink \
|
||||||
|
firmware_WCNSS_qcom_cfg.ini_symlink
|
||||||
|
|
||||||
# Inherit from the common OEM chipset makefile.
|
# Inherit from the common OEM chipset makefile.
|
||||||
$(call inherit-product, device/samsung/sm8550-common/common.mk)
|
$(call inherit-product, device/samsung/sm8550-common/common.mk)
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user