1# Copyright (C) 2016-2017 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# Enabling this changes benchmark output to be in json format. 17# See go/trusty-benchmark-json-output for the schema. 18# Build with BENCHMARK_MACHINE_READABLE=1 to enable. 19BENCHMARK_MACHINE_READABLE?=0 20GLOBAL_DEFINES += BENCHMARK_MACHINE_READABLE=$(BENCHMARK_MACHINE_READABLE) 21 22UBSAN_ENABLED ?= true 23 24RELEASE_BUILD ?= false 25 26include project/generic-arm-inc.mk 27 28include frameworks/native/libs/binder/trusty/usertests-inc.mk 29include trusty/kernel/kerneltests-inc.mk 30include trusty/user/app/sample/stats-test/usertests-inc.mk 31include trusty/user/base/usertests-inc.mk 32include trusty/user/base/usertests-rust-inc.mk 33 34WITH_HWCRYPTO_UNITTEST := 1 35 36# Enable hwcrypto unittest keyslots and tests 37GLOBAL_USER_COMPILEFLAGS += -DWITH_HWCRYPTO_UNITTEST=$(WITH_HWCRYPTO_UNITTEST) 38 39TEST_BUILD := true 40