1# Copyright (C) 2018 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 16# 17# This .mk is included both by rules.mk and add-dependency.mk 18# and exports the following variables: 19# 20# SYSCALL_MODULE - syscall stub module 21# SYSCALL_SRCS_DIR - location of generated sources 22# SYSCALL_{H,S,RS} - names of individual generated files 23# SYSCALL_SRCS - list of all generated files 24# 25 26# 27SYSCALL_MODULE := $(GET_LOCAL_DIR) 28 29# Location of generated sources 30SYSCALL_SRCS_DIR := $(TRUSTY_TOP_LEVEL_BUILDDIR)/generated/$(SYSCALL_MODULE) 31 32# Need to generate these 33SYSCALL_H := $(SYSCALL_SRCS_DIR)/trusty_syscalls.h 34SYSCALL_S := $(SYSCALL_SRCS_DIR)/trusty_syscalls.S 35SYSCALL_RS := $(SYSCALL_SRCS_DIR)/trusty_syscalls.rs 36 37# all generated files 38SYSCALL_SRCS := $(SYSCALL_H) $(SYSCALL_S) $(SYSCALL_RS) 39