tangorpro: Declare HBM lib as symlink during extraction

Change-Id: I97c07aa18250d37080e3f7d9c5c179a297f69657
This commit is contained in:
Michael Bestas
2024-07-04 01:38:07 +03:00
parent 4a59a5c848
commit 5e367134ff
2 changed files with 1 additions and 39 deletions

View File

@@ -1,38 +0,0 @@
#
# Copyright (C) 2021 The Android Open-Source Project
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#
# WARNING: Everything listed here will be built on ALL platforms,
# including x86, the universal, and the SDK. Modules must be uniquely
# named (liblights.panda), and must build everywhere, or limit themselves
# to only building on ARM if they include assembly. Individual makefiles
# are responsible for having their own logic, for fine-grained control.
LOCAL_PATH := $(call my-dir)
# if some modules are built directly from this directory (not subdirectories),
# their rules should be written here.
ifneq (,$(filter $(TARGET_DEVICE),tangorpro))
HBM_LIBS := libhbmsvmanager_jni.so
HBM_SYMLINKS := $(addprefix $(TARGET_OUT_SYSTEM_EXT)/priv-app/HbmSVManager/lib/arm64/,$(notdir $(HBM_LIBS)))
$(HBM_SYMLINKS): $(LOCAL_INSTALLED_MODULE)
@echo "HBM lib link: $@"
@mkdir -p $(dir $@)
@rm -rf $@
$(hide) ln -sf /system_ext/lib64/$(notdir $@) $@
ALL_DEFAULT_INSTALLED_MODULES += $(HBM_SYMLINKS)
endif

View File

@@ -87,7 +87,7 @@ system_ext/lib64/com.google.edgetpu_vendor_service-V2-ndk.so
system_ext/lib64/libedgetpu_dba.google.so
# HBM
system_ext/lib64/libhbmsvmanager_jni.so
system_ext/lib64/libhbmsvmanager_jni.so;SYMLINK=system_ext/priv-app/HbmSVManager/lib/arm64/libhbmsvmanager_jni.so
system_ext/priv-app/HbmSVManager/HbmSVManager.apk
# Hotword