From c99aeeb7f33bcb89986716a087ad88551db3f35b Mon Sep 17 00:00:00 2001 From: hwyml Date: Tue, 22 Oct 2024 21:15:09 +0800 Subject: [PATCH] reduce rom and ram size Signed-off-by: hwyml Change-Id: I703069e938eb0ed5072f3924aaee14e444d530e2 --- usb/hdi_service/BUILD.gn | 2 ++ usb/hdi_service/usb_interface_service.map | 23 +++++++++++++++++++++++ 2 files changed, 25 insertions(+) create mode 100644 usb/hdi_service/usb_interface_service.map diff --git a/usb/hdi_service/BUILD.gn b/usb/hdi_service/BUILD.gn index 63cab792d2..dd29eda6e8 100644 --- a/usb/hdi_service/BUILD.gn +++ b/usb/hdi_service/BUILD.gn @@ -36,6 +36,8 @@ config("usbd_public_config") { } ohos_shared_library("libusb_interface_service_1.1") { + shlib_type = "hdi" + version_script = "usb_interface_service.map" sanitize = { integer_overflow = true ubsan = true diff --git a/usb/hdi_service/usb_interface_service.map b/usb/hdi_service/usb_interface_service.map new file mode 100644 index 0000000000..2d19731d0f --- /dev/null +++ b/usb/hdi_service/usb_interface_service.map @@ -0,0 +1,23 @@ +# Copyright (c) 2024 Huawei Device Co., Ltd. +# 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. + +1.0 { + global: + *UsbInterfaceImplGetInstance*; + extern "C++" { + *UsbImpl::UsbdEventHandle*; + *UsbImpl::UsbdEventHandleRelease*; + }; + local: + *; +}; \ No newline at end of file -- Gitee