1# Copyright (C) 2023 The Android Open Source Project
2#
3# Licensed under the Apache License, Version 2.0 (the "License");
4# you may not use this file except in compliance with the License.
5# You may obtain a copy of the License at
6#
7#      http://www.apache.org/licenses/LICENSE-2.0
8#
9# Unless required by applicable law or agreed to in writing, software
10# distributed under the License is distributed on an "AS IS" BASIS,
11# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12# See the License for the specific language governing permissions and
13# limitations under the License.
14#
15
16ifeq ($(call TOBOOL,$(ARCH_$(ARCH)_SUPPORTS_RUST)),true)
17
18LOCAL_DIR := $(GET_LOCAL_DIR)
19
20MODULE := $(LOCAL_DIR)
21
22MANIFEST := $(LOCAL_DIR)/manifest.json
23
24MODULE_SRCS += \
25	$(LOCAL_DIR)/main.rs \
26
27MODULE_CRATE_NAME := no_std
28
29MODULE_LIBRARY_DEPS += \
30	trusty/user/base/lib/dlmalloc \
31	trusty/user/base/lib/trusty-std \
32	$(call FIND_CRATE,libc) \
33
34MODULE_ADD_IMPLICIT_DEPS := false
35
36include make/trusted_app.mk
37
38endif
39