1*4882a593Smuzhiyun# 2*4882a593Smuzhiyun# SPDX-License-Identifier: GPL-2.0+ 3*4882a593Smuzhiyun# 4*4882a593Smuzhiyun 5*4882a593Smuzhiyunifndef CONFIG_SANDBOX 6*4882a593Smuzhiyun 7*4882a593Smuzhiyunifdef FTRACE 8*4882a593Smuzhiyunsubdir-ccflags-y += -finstrument-functions -DFTRACE 9*4882a593Smuzhiyunendif 10*4882a593Smuzhiyun 11*4882a593Smuzhiyun# Here is an compile issue: "undefined reference to `__aeabi_unwind_cpp_pr0'..." 12*4882a593Smuzhiyun# when -funwind-tables is enabled, so make it compile depends on -funwind-tables. 13*4882a593Smuzhiyunifeq (,$(findstring -funwind-tables,$(PLATFORM_CPPFLAGS))) 14*4882a593Smuzhiyunsubdir-y += standalone 15*4882a593Smuzhiyunsubdir-$(CONFIG_API) += api 16*4882a593Smuzhiyunendif 17*4882a593Smuzhiyunendif 18