Pascal Brand | d6536da | 2015-09-01 10:38:43 +0200 | [diff] [blame] | 1 | # |
| 2 | # Common definition to all platforms |
| 3 | # |
| 4 | |
Jens Wiklander | 650f298 | 2017-04-05 10:08:59 +0200 | [diff] [blame] | 5 | SHELL := bash |
Pascal Brand | 070d955 | 2015-09-01 15:33:22 +0200 | [diff] [blame] | 6 | BASH ?= bash |
Pascal Brand | d6536da | 2015-09-01 10:38:43 +0200 | [diff] [blame] | 7 | ROOT ?= $(shell pwd)/.. |
| 8 | |
Philip Attfield | 3f9250f | 2016-09-14 07:43:32 +0200 | [diff] [blame] | 9 | BUILD_PATH ?= $(ROOT)/build |
Pascal Brand | d6536da | 2015-09-01 10:38:43 +0200 | [diff] [blame] | 10 | LINUX_PATH ?= $(ROOT)/linux |
Victor Chong | 9f0d120 | 2016-04-23 16:28:31 +0100 | [diff] [blame] | 11 | OPTEE_GENDRV_MODULE ?= $(LINUX_PATH)/drivers/tee/optee/optee.ko |
Pascal Brand | 440ef9c | 2015-09-08 16:01:58 +0200 | [diff] [blame] | 12 | GEN_ROOTFS_PATH ?= $(ROOT)/gen_rootfs |
| 13 | GEN_ROOTFS_FILELIST ?= $(GEN_ROOTFS_PATH)/filelist-tee.txt |
Pascal Brand | d6536da | 2015-09-01 10:38:43 +0200 | [diff] [blame] | 14 | OPTEE_OS_PATH ?= $(ROOT)/optee_os |
| 15 | OPTEE_CLIENT_PATH ?= $(ROOT)/optee_client |
| 16 | OPTEE_CLIENT_EXPORT ?= $(OPTEE_CLIENT_PATH)/out/export |
Pascal Brand | d6536da | 2015-09-01 10:38:43 +0200 | [diff] [blame] | 17 | OPTEE_TEST_PATH ?= $(ROOT)/optee_test |
Igor Opaniuk | 27edfc7 | 2016-10-25 18:33:54 +0300 | [diff] [blame] | 18 | OPTEE_TEST_OUT_PATH ?= $(ROOT)/optee_test/out |
Igor Opaniuk | 584efe5 | 2017-08-07 01:41:48 +0300 | [diff] [blame] | 19 | OPTEE_EXAMPLES_PATH ?= $(ROOT)/optee_examples |
Igor Opaniuk | 27edfc7 | 2016-10-25 18:33:54 +0300 | [diff] [blame] | 20 | BENCHMARK_APP_PATH ?= $(ROOT)/optee_benchmark |
Igor Opaniuk | 36ff2a3 | 2018-01-04 11:40:10 +0200 | [diff] [blame] | 21 | BENCHMARK_APP_OUT ?= $(BENCHMARK_APP_PATH)/out |
| 22 | LIBYAML_LIB_OUT ?= $(BENCHMARK_APP_OUT)/libyaml/out/lib |
Jens Wiklander | 88d027c | 2018-05-09 10:12:03 +0200 | [diff] [blame] | 23 | BUILDROOT_TARGET_ROOT ?= $(ROOT)/out-br/target |
Pascal Brand | d6536da | 2015-09-01 10:38:43 +0200 | [diff] [blame] | 24 | |
Etienne Carriere | cc23f6b | 2016-10-21 10:16:00 +0200 | [diff] [blame] | 25 | # default high verbosity. slow uarts shall specify lower if prefered |
Pascal Brand | 23ef205 | 2016-03-09 15:25:01 +0100 | [diff] [blame] | 26 | CFG_TEE_CORE_LOG_LEVEL ?= 3 |
| 27 | |
Igor Opaniuk | 27edfc7 | 2016-10-25 18:33:54 +0300 | [diff] [blame] | 28 | # default disable latency benchmarks (over all OP-TEE layers) |
Igor Opaniuk | 36ff2a3 | 2018-01-04 11:40:10 +0200 | [diff] [blame] | 29 | CFG_TEE_BENCHMARK ?= n |
Igor Opaniuk | 27edfc7 | 2016-10-25 18:33:54 +0300 | [diff] [blame] | 30 | |
Pascal Brand | d6536da | 2015-09-01 10:38:43 +0200 | [diff] [blame] | 31 | CCACHE ?= $(shell which ccache) # Don't remove this comment (space is needed) |
| 32 | |
Igor Opaniuk | 97d0529 | 2016-10-26 14:46:14 +0300 | [diff] [blame] | 33 | # Accessing a shared folder on the host from QEMU: |
| 34 | # # Set QEMU_VIRTFS_ENABLE to 'y' and adjust QEMU_VIRTFS_HOST_DIR |
| 35 | # # Then in QEMU, run: |
| 36 | # # $ mount -t 9p -o trans=virtio host <mount_point> |
| 37 | QEMU_VIRTFS_ENABLE ?= n |
| 38 | QEMU_VIRTFS_HOST_DIR ?= $(ROOT) |
Pascal Brand | 6044eb5 | 2016-02-23 15:48:31 +0100 | [diff] [blame] | 39 | |
Igor Opaniuk | bbcf27d | 2017-09-13 13:12:51 +0300 | [diff] [blame] | 40 | ################################################################################ |
| 41 | # Mandatory for autotools (for specifying --host) |
| 42 | ################################################################################ |
| 43 | ifeq ($(COMPILE_NS_USER),64) |
| 44 | MULTIARCH := aarch64-linux-gnu |
| 45 | else |
| 46 | MULTIARCH := arm-linux-gnueabihf |
| 47 | endif |
| 48 | |
Pascal Brand | 6044eb5 | 2016-02-23 15:48:31 +0100 | [diff] [blame] | 49 | ################################################################################ |
| 50 | # Check coherency of compilation mode |
| 51 | ################################################################################ |
| 52 | |
| 53 | ifneq ($(COMPILE_NS_USER),) |
| 54 | ifeq ($(COMPILE_NS_KERNEL),) |
| 55 | $(error COMPILE_NS_KERNEL must be defined as COMPILE_NS_USER=$(COMPILE_NS_USER) is defined) |
| 56 | endif |
| 57 | ifeq (,$(filter $(COMPILE_NS_USER),32 64)) |
| 58 | $(error COMPILE_NS_USER=$(COMPILE_NS_USER) - Should be 32 or 64) |
| 59 | endif |
| 60 | endif |
| 61 | |
| 62 | ifneq ($(COMPILE_NS_KERNEL),) |
| 63 | ifeq ($(COMPILE_NS_USER),) |
| 64 | $(error COMPILE_NS_USER must be defined as COMPILE_NS_KERNEL=$(COMPILE_NS_KERNEL) is defined) |
| 65 | endif |
| 66 | ifeq (,$(filter $(COMPILE_NS_KERNEL),32 64)) |
| 67 | $(error COMPILE_NS_KERNEL=$(COMPILE_NS_KERNEL) - Should be 32 or 64) |
| 68 | endif |
| 69 | endif |
| 70 | |
| 71 | ifeq ($(COMPILE_NS_KERNEL),32) |
| 72 | ifneq ($(COMPILE_NS_USER),32) |
| 73 | $(error COMPILE_NS_USER=$(COMPILE_NS_USER) - Should be 32 as COMPILE_NS_KERNEL=$(COMPILE_NS_KERNEL)) |
| 74 | endif |
| 75 | endif |
| 76 | |
| 77 | ifneq ($(COMPILE_S_USER),) |
| 78 | ifeq ($(COMPILE_S_KERNEL),) |
| 79 | $(error COMPILE_S_KERNEL must be defined as COMPILE_S_USER=$(COMPILE_S_USER) is defined) |
| 80 | endif |
| 81 | ifeq (,$(filter $(COMPILE_S_USER),32 64)) |
| 82 | $(error COMPILE_S_USER=$(COMPILE_S_USER) - Should be 32 or 64) |
| 83 | endif |
| 84 | endif |
| 85 | |
| 86 | ifneq ($(COMPILE_S_KERNEL),) |
| 87 | OPTEE_OS_COMMON_EXTRA_FLAGS ?= O=out/arm |
| 88 | OPTEE_OS_BIN ?= $(OPTEE_OS_PATH)/out/arm/core/tee.bin |
Jens Wiklander | f7b3509 | 2017-09-01 09:05:32 +0200 | [diff] [blame] | 89 | OPTEE_OS_HEADER_V2_BIN ?= $(OPTEE_OS_PATH)/out/arm/core/tee-header_v2.bin |
| 90 | OPTEE_OS_PAGER_V2_BIN ?= $(OPTEE_OS_PATH)/out/arm/core/tee-pager_v2.bin |
| 91 | OPTEE_OS_PAGEABLE_V2_BIN ?= $(OPTEE_OS_PATH)/out/arm/core/tee-pageable_v2.bin |
Pascal Brand | 6044eb5 | 2016-02-23 15:48:31 +0100 | [diff] [blame] | 92 | ifeq ($(COMPILE_S_USER),) |
| 93 | $(error COMPILE_S_USER must be defined as COMPILE_S_KERNEL=$(COMPILE_S_KERNEL) is defined) |
| 94 | endif |
| 95 | ifeq (,$(filter $(COMPILE_S_KERNEL),32 64)) |
| 96 | $(error COMPILE_S_KERNEL=$(COMPILE_S_KERNEL) - Should be 32 or 64) |
| 97 | endif |
| 98 | endif |
| 99 | |
| 100 | ifeq ($(COMPILE_S_KERNEL),32) |
| 101 | ifneq ($(COMPILE_S_USER),32) |
| 102 | $(error COMPILE_S_USER=$(COMPILE_S_USER) - Should be 32 as COMPILE_S_KERNEL=$(COMPILE_S_KERNEL)) |
| 103 | endif |
| 104 | endif |
| 105 | |
| 106 | |
| 107 | ################################################################################ |
| 108 | # set the compiler when COMPILE_xxx are defined |
| 109 | ################################################################################ |
Jens Wiklander | 92582b5 | 2018-03-14 09:49:29 +0100 | [diff] [blame] | 110 | |
| 111 | |
| 112 | ifeq ($(COMPILE_LEGACY),) |
Pascal Brand | efe5659 | 2016-03-03 10:46:52 +0100 | [diff] [blame] | 113 | CROSS_COMPILE_NS_USER ?= "$(CCACHE)$(AARCH$(COMPILE_NS_USER)_CROSS_COMPILE)" |
| 114 | CROSS_COMPILE_NS_KERNEL ?= "$(CCACHE)$(AARCH$(COMPILE_NS_KERNEL)_CROSS_COMPILE)" |
| 115 | CROSS_COMPILE_S_USER ?= "$(CCACHE)$(AARCH$(COMPILE_S_USER)_CROSS_COMPILE)" |
| 116 | CROSS_COMPILE_S_KERNEL ?= "$(CCACHE)$(AARCH$(COMPILE_S_KERNEL)_CROSS_COMPILE)" |
Jens Wiklander | 92582b5 | 2018-03-14 09:49:29 +0100 | [diff] [blame] | 117 | else |
| 118 | CROSS_COMPILE_NS_USER ?= "$(CCACHE)$(LEGACY_AARCH$(COMPILE_NS_USER)_CROSS_COMPILE)" |
| 119 | CROSS_COMPILE_NS_KERNEL ?= "$(CCACHE)$(LEGACY_AARCH$(COMPILE_NS_KERNEL)_CROSS_COMPILE)" |
| 120 | CROSS_COMPILE_S_USER ?= "$(CCACHE)$(LEGACY_AARCH$(COMPILE_S_USER)_CROSS_COMPILE)" |
| 121 | CROSS_COMPILE_S_KERNEL ?= "$(CCACHE)$(LEGACY_AARCH$(COMPILE_S_KERNEL)_CROSS_COMPILE)" |
| 122 | endif |
Pascal Brand | 6044eb5 | 2016-02-23 15:48:31 +0100 | [diff] [blame] | 123 | |
| 124 | ifeq ($(COMPILE_S_USER),32) |
Pascal Brand | 6044eb5 | 2016-02-23 15:48:31 +0100 | [diff] [blame] | 125 | OPTEE_OS_TA_DEV_KIT_DIR ?= $(OPTEE_OS_PATH)/out/arm/export-ta_arm32 |
| 126 | endif |
| 127 | ifeq ($(COMPILE_S_USER),64) |
Pascal Brand | 6044eb5 | 2016-02-23 15:48:31 +0100 | [diff] [blame] | 128 | OPTEE_OS_TA_DEV_KIT_DIR ?= $(OPTEE_OS_PATH)/out/arm/export-ta_arm64 |
| 129 | endif |
| 130 | |
Pascal Brand | 6044eb5 | 2016-02-23 15:48:31 +0100 | [diff] [blame] | 131 | ifeq ($(COMPILE_S_KERNEL),64) |
Pascal Brand | 6044eb5 | 2016-02-23 15:48:31 +0100 | [diff] [blame] | 132 | OPTEE_OS_COMMON_EXTRA_FLAGS += CFG_ARM64_core=y |
| 133 | endif |
| 134 | |
| 135 | |
Pascal Brand | d6536da | 2015-09-01 10:38:43 +0200 | [diff] [blame] | 136 | ################################################################################ |
Pascal Brand | 070d955 | 2015-09-01 15:33:22 +0200 | [diff] [blame] | 137 | # defines, macros, configuration etc |
| 138 | ################################################################################ |
| 139 | define KERNEL_VERSION |
Jerome Forissier | ae45fbf | 2015-09-04 09:40:17 +0200 | [diff] [blame] | 140 | $(shell cd $(LINUX_PATH) && $(MAKE) --no-print-directory kernelversion) |
Pascal Brand | 070d955 | 2015-09-01 15:33:22 +0200 | [diff] [blame] | 141 | endef |
Victor Chong | 3bcef44 | 2017-08-07 10:57:55 +0100 | [diff] [blame] | 142 | |
| 143 | # Read stdin, expand ${VAR} environment variables, output to stdout |
| 144 | # http://superuser.com/a/302847 |
| 145 | define expand-env-var |
| 146 | awk '{while(match($$0,"[$$]{[^}]*}")) {var=substr($$0,RSTART+2,RLENGTH -3);gsub("[$$]{"var"}",ENVIRON[var])}}1' |
| 147 | endef |
| 148 | |
Pascal Brand | 070d955 | 2015-09-01 15:33:22 +0200 | [diff] [blame] | 149 | DEBUG ?= 0 |
| 150 | |
| 151 | ################################################################################ |
Pascal Brand | cb45260 | 2015-10-13 10:46:33 +0200 | [diff] [blame] | 152 | # default target is all |
| 153 | ################################################################################ |
Victor Chong | 46f8585 | 2017-08-09 08:26:41 +0100 | [diff] [blame] | 154 | .PHONY: all |
Pascal Brand | cb45260 | 2015-10-13 10:46:33 +0200 | [diff] [blame] | 155 | all: |
| 156 | |
| 157 | ################################################################################ |
Pascal Brand | 440ef9c | 2015-09-08 16:01:58 +0200 | [diff] [blame] | 158 | # Busybox |
| 159 | ################################################################################ |
| 160 | BUSYBOX_COMMON_TARGET ?= TOBEDEFINED |
| 161 | BUSYBOX_CLEAN_COMMON_TARGET ?= TOBEDEFINED |
Pascal Brand | 440ef9c | 2015-09-08 16:01:58 +0200 | [diff] [blame] | 162 | |
Victor Chong | 46f8585 | 2017-08-09 08:26:41 +0100 | [diff] [blame] | 163 | .PHONY: busybox-common |
Pascal Brand | 440ef9c | 2015-09-08 16:01:58 +0200 | [diff] [blame] | 164 | busybox-common: linux |
| 165 | cd $(GEN_ROOTFS_PATH) && \ |
Pascal Brand | efe5659 | 2016-03-03 10:46:52 +0100 | [diff] [blame] | 166 | CROSS_COMPILE=$(CROSS_COMPILE_NS_USER) \ |
Pascal Brand | 440ef9c | 2015-09-08 16:01:58 +0200 | [diff] [blame] | 167 | PATH=${PATH}:$(LINUX_PATH)/usr \ |
| 168 | $(GEN_ROOTFS_PATH)/generate-cpio-rootfs.sh \ |
| 169 | $(BUSYBOX_COMMON_TARGET) |
| 170 | |
Victor Chong | 46f8585 | 2017-08-09 08:26:41 +0100 | [diff] [blame] | 171 | .PHONY: busybox-clean-common |
Pascal Brand | 440ef9c | 2015-09-08 16:01:58 +0200 | [diff] [blame] | 172 | busybox-clean-common: |
| 173 | cd $(GEN_ROOTFS_PATH) && \ |
| 174 | $(GEN_ROOTFS_PATH)/generate-cpio-rootfs.sh \ |
| 175 | $(BUSYBOX_CLEAN_COMMON_TARGET) |
| 176 | |
Victor Chong | 46f8585 | 2017-08-09 08:26:41 +0100 | [diff] [blame] | 177 | .PHONY: busybox-cleaner-common |
Pascal Brand | 440ef9c | 2015-09-08 16:01:58 +0200 | [diff] [blame] | 178 | busybox-cleaner-common: |
| 179 | rm -rf $(GEN_ROOTFS_PATH)/build |
| 180 | rm -rf $(GEN_ROOTFS_PATH)/filelist-final.txt |
Victor Chong | 87f5fcf | 2015-11-26 10:52:52 +0900 | [diff] [blame] | 181 | |
Pascal Brand | e3d8598 | 2015-09-10 17:20:42 +0200 | [diff] [blame] | 182 | ################################################################################ |
Jens Wiklander | 07f2aed | 2018-02-07 13:42:18 +0100 | [diff] [blame] | 183 | # Build root |
| 184 | ################################################################################ |
| 185 | BUILDROOT_ARCH=aarch$(COMPILE_NS_USER) |
Jerome Forissier | 129d3df | 2018-08-21 09:54:43 +0200 | [diff] [blame] | 186 | ifeq ($(GDBSERVER),y) |
| 187 | BUILDROOT_TOOLCHAIN=toolchain-br # Use toolchain supplied by buildroot |
| 188 | DEFCONFIG_GDBSERVER=--br-defconfig build/br-ext/configs/gdbserver.conf |
| 189 | else |
| 190 | # Local toolchains (downloaded by "make toolchains") |
Jens Wiklander | 92582b5 | 2018-03-14 09:49:29 +0100 | [diff] [blame] | 191 | ifeq ($(COMPILE_LEGACY),) |
| 192 | BUILDROOT_TOOLCHAIN=toolchain-aarch$(COMPILE_NS_USER) |
| 193 | else |
| 194 | BUILDROOT_TOOLCHAIN=toolchain-aarch$(COMPILE_NS_USER)-legacy |
| 195 | endif |
Jerome Forissier | 129d3df | 2018-08-21 09:54:43 +0200 | [diff] [blame] | 196 | endif |
Jerome Forissier | 7fbd6ce | 2019-09-03 11:12:45 +0200 | [diff] [blame^] | 197 | |
| 198 | BR2_PACKAGE_LIBOPENSSL ?= y |
| 199 | BR2_PACKAGE_MMC_UTILS ?= y |
| 200 | BR2_PACKAGE_OPENSSL ?= y |
| 201 | BR2_PACKAGE_OPTEE_BENCHMARK ?= $(CFG_TEE_BENCHMARK) |
| 202 | BR2_PACKAGE_OPTEE_BENCHMARK_SITE ?= $(BENCHMARK_APP_PATH) |
| 203 | BR2_PACKAGE_OPTEE_CLIENT_SITE ?= $(OPTEE_CLIENT_PATH) |
| 204 | BR2_PACKAGE_OPTEE_EXAMPLES ?= y |
| 205 | BR2_PACKAGE_OPTEE_EXAMPLES_CROSS_COMPILE ?= $(CROSS_COMPILE_S_USER) |
| 206 | BR2_PACKAGE_OPTEE_EXAMPLES_SDK ?= $(OPTEE_OS_TA_DEV_KIT_DIR) |
| 207 | BR2_PACKAGE_OPTEE_EXAMPLES_SITE ?= $(OPTEE_EXAMPLES_PATH) |
| 208 | # The OPTEE_OS package builds nothing, it just installs files into the |
| 209 | # root FS when applicable (for example: shared libraries) |
| 210 | BR2_PACKAGE_OPTEE_OS ?= y |
| 211 | BR2_PACKAGE_OPTEE_OS_SDK ?= $(OPTEE_OS_TA_DEV_KIT_DIR) |
| 212 | BR2_PACKAGE_OPTEE_OS_SITE ?= $(CURDIR)/br-ext/package/optee_os |
| 213 | BR2_PACKAGE_OPTEE_TEST ?= y |
| 214 | BR2_PACKAGE_OPTEE_TEST_CROSS_COMPILE ?= $(CROSS_COMPILE_S_USER) |
| 215 | BR2_PACKAGE_OPTEE_TEST_SDK ?= $(OPTEE_OS_TA_DEV_KIT_DIR) |
| 216 | BR2_PACKAGE_OPTEE_TEST_SITE ?= $(OPTEE_TEST_PATH) |
| 217 | BR2_PACKAGE_STRACE ?= y |
| 218 | BR2_TARGET_GENERIC_GETTY_PORT ?= $(if $(CFG_NW_CONSOLE_UART),ttyAMA$(CFG_NW_CONSOLE_UART),ttyAMA0) |
| 219 | |
| 220 | # All BR2_* variables from the makefile or the environment are appended to |
| 221 | # ../out-br/extra.conf. All values are quoted "..." except y and n. |
| 222 | double-quote = "#" # This really sets the variable to " and avoids upsetting vim's syntax highlighting |
| 223 | streq = $(and $(findstring $(1),$(2)),$(findstring $(2),$(1))) |
| 224 | y-or-n = $(or $(call streq,y,$(1)),$(call streq,n,$(1))) |
| 225 | append-var_ = echo '$(1)=$(3)'$($(1))'$(3)' >>$(2); |
| 226 | append-var = $(call append-var_,$(1),$(2),$(if $(call y-or-n,$($(1))),,$(double-quote))) |
| 227 | append-br2-vars = $(foreach var,$(filter BR2_%,$(.VARIABLES)),$(call append-var,$(var),$(1))) |
| 228 | |
Jens Wiklander | 07f2aed | 2018-02-07 13:42:18 +0100 | [diff] [blame] | 229 | .PHONY: buildroot |
| 230 | buildroot: optee-os |
| 231 | @mkdir -p ../out-br |
| 232 | @rm -f ../out-br/build/optee_*/.stamp_* |
| 233 | @rm -f ../out-br/extra.conf |
Jerome Forissier | 7fbd6ce | 2019-09-03 11:12:45 +0200 | [diff] [blame^] | 234 | @$(call append-br2-vars,../out-br/extra.conf) |
Jens Wiklander | 07f2aed | 2018-02-07 13:42:18 +0100 | [diff] [blame] | 235 | @(cd .. && python build/br-ext/scripts/make_def_config.py \ |
| 236 | --br buildroot --out out-br --br-ext build/br-ext \ |
| 237 | --top-dir "$(ROOT)" \ |
| 238 | --br-defconfig build/br-ext/configs/optee_$(BUILDROOT_ARCH) \ |
| 239 | --br-defconfig build/br-ext/configs/optee_generic \ |
Jens Wiklander | 92582b5 | 2018-03-14 09:49:29 +0100 | [diff] [blame] | 240 | --br-defconfig build/br-ext/configs/$(BUILDROOT_TOOLCHAIN) \ |
Jerome Forissier | 129d3df | 2018-08-21 09:54:43 +0200 | [diff] [blame] | 241 | $(DEFCONFIG_GDBSERVER) \ |
Jens Wiklander | 07f2aed | 2018-02-07 13:42:18 +0100 | [diff] [blame] | 242 | --br-defconfig out-br/extra.conf \ |
| 243 | --make-cmd $(MAKE)) |
| 244 | @$(MAKE) -C ../out-br all |
| 245 | |
| 246 | .PHONY: buildroot-clean |
| 247 | buildroot-clean: |
| 248 | @test ! -d $(ROOT)/out-br || $(MAKE) -C $(ROOT)/out-br clean |
| 249 | |
| 250 | .PHONY: buildroot-cleaner |
| 251 | buildroot-cleaner: |
| 252 | @rm -rf $(ROOT)/out-br |
| 253 | |
| 254 | ################################################################################ |
Pascal Brand | e3d8598 | 2015-09-10 17:20:42 +0200 | [diff] [blame] | 255 | # Linux |
| 256 | ################################################################################ |
Igor Opaniuk | 27edfc7 | 2016-10-25 18:33:54 +0300 | [diff] [blame] | 257 | ifeq ($(CFG_TEE_BENCHMARK),y) |
| 258 | LINUX_DEFCONFIG_BENCH ?= $(CURDIR)/kconfigs/tee_bench.conf |
| 259 | endif |
| 260 | |
Pascal Brand | e3d8598 | 2015-09-10 17:20:42 +0200 | [diff] [blame] | 261 | LINUX_COMMON_FLAGS ?= LOCALVERSION= CROSS_COMPILE=$(CROSS_COMPILE_NS_KERNEL) |
| 262 | |
Victor Chong | 46f8585 | 2017-08-09 08:26:41 +0100 | [diff] [blame] | 263 | .PHONY: linux-common |
Pascal Brand | e3d8598 | 2015-09-10 17:20:42 +0200 | [diff] [blame] | 264 | linux-common: linux-defconfig |
| 265 | $(MAKE) -C $(LINUX_PATH) $(LINUX_COMMON_FLAGS) |
| 266 | |
Jerome Forissier | e100238 | 2015-11-26 11:36:00 +0100 | [diff] [blame] | 267 | $(LINUX_PATH)/.config: $(LINUX_DEFCONFIG_COMMON_FILES) |
| 268 | cd $(LINUX_PATH) && \ |
| 269 | ARCH=$(LINUX_DEFCONFIG_COMMON_ARCH) \ |
Igor Opaniuk | 27edfc7 | 2016-10-25 18:33:54 +0300 | [diff] [blame] | 270 | scripts/kconfig/merge_config.sh $(LINUX_DEFCONFIG_COMMON_FILES) \ |
| 271 | $(LINUX_DEFCONFIG_BENCH) |
Jerome Forissier | e100238 | 2015-11-26 11:36:00 +0100 | [diff] [blame] | 272 | |
Victor Chong | 46f8585 | 2017-08-09 08:26:41 +0100 | [diff] [blame] | 273 | .PHONY: linux-defconfig-clean-common |
Pascal Brand | e3d8598 | 2015-09-10 17:20:42 +0200 | [diff] [blame] | 274 | linux-defconfig-clean-common: |
Victor Chong | 87f5fcf | 2015-11-26 10:52:52 +0900 | [diff] [blame] | 275 | rm -f $(LINUX_PATH)/.config |
Pascal Brand | e3d8598 | 2015-09-10 17:20:42 +0200 | [diff] [blame] | 276 | |
Victor Chong | 46f8585 | 2017-08-09 08:26:41 +0100 | [diff] [blame] | 277 | # LINUX_CLEAN_COMMON_FLAGS should be defined in specific makefiles (hikey.mk,...) |
| 278 | .PHONY: linux-clean-common |
Pascal Brand | e3d8598 | 2015-09-10 17:20:42 +0200 | [diff] [blame] | 279 | linux-clean-common: linux-defconfig-clean |
| 280 | $(MAKE) -C $(LINUX_PATH) $(LINUX_CLEAN_COMMON_FLAGS) clean |
| 281 | |
Victor Chong | 46f8585 | 2017-08-09 08:26:41 +0100 | [diff] [blame] | 282 | # LINUX_CLEANER_COMMON_FLAGS should be defined in specific makefiles (hikey.mk,...) |
| 283 | .PHONY: linux-cleaner-common |
Pascal Brand | e3d8598 | 2015-09-10 17:20:42 +0200 | [diff] [blame] | 284 | linux-cleaner-common: linux-defconfig-clean |
Victor Chong | 87f5fcf | 2015-11-26 10:52:52 +0900 | [diff] [blame] | 285 | $(MAKE) -C $(LINUX_PATH) $(LINUX_CLEANER_COMMON_FLAGS) distclean |
Pascal Brand | e3d8598 | 2015-09-10 17:20:42 +0200 | [diff] [blame] | 286 | |
Pascal Brand | 440ef9c | 2015-09-08 16:01:58 +0200 | [diff] [blame] | 287 | ################################################################################ |
Pascal Brand | 9a0f50f | 2015-09-08 15:34:17 +0200 | [diff] [blame] | 288 | # EDK2 / Tianocore |
| 289 | ################################################################################ |
Victor Chong | 46f8585 | 2017-08-09 08:26:41 +0100 | [diff] [blame] | 290 | .PHONY: edk2-common |
Joakim Bech | ab62261 | 2017-11-15 10:45:28 +0100 | [diff] [blame] | 291 | edk2-common: |
Joakim Bech | c94e95a | 2017-11-25 11:06:50 +0100 | [diff] [blame] | 292 | $(call edk2-env) && \ |
| 293 | export PACKAGES_PATH=$(EDK2_PATH):$(EDK2_PLATFORMS_PATH) && \ |
Joakim Bech | ab62261 | 2017-11-15 10:45:28 +0100 | [diff] [blame] | 294 | source $(EDK2_PATH)/edksetup.sh && \ |
| 295 | $(MAKE) -j1 -C $(EDK2_PATH)/BaseTools && \ |
| 296 | $(call edk2-call) all |
Pascal Brand | 9a0f50f | 2015-09-08 15:34:17 +0200 | [diff] [blame] | 297 | |
Victor Chong | 46f8585 | 2017-08-09 08:26:41 +0100 | [diff] [blame] | 298 | .PHONY: edk2-clean-common |
Pascal Brand | 9a0f50f | 2015-09-08 15:34:17 +0200 | [diff] [blame] | 299 | edk2-clean-common: |
Joakim Bech | c94e95a | 2017-11-25 11:06:50 +0100 | [diff] [blame] | 300 | $(call edk2-env) && \ |
Joakim Bech | ab62261 | 2017-11-15 10:45:28 +0100 | [diff] [blame] | 301 | export PACKAGES_PATH=$(EDK2_PATH):$(ROOT)/edk2-platforms && \ |
| 302 | source $(EDK2_PATH)/edksetup.sh && \ |
| 303 | $(MAKE) -j1 -C $(EDK2_PATH)/BaseTools clean && \ |
| 304 | $(call edk2-call) cleanall |
Victor Chong | 46f8585 | 2017-08-09 08:26:41 +0100 | [diff] [blame] | 305 | |
Igor Opaniuk | 97d0529 | 2016-10-26 14:46:14 +0300 | [diff] [blame] | 306 | ################################################################################ |
| 307 | # QEMU / QEMUv8 |
| 308 | ################################################################################ |
| 309 | QEMU_CONFIGURE_PARAMS_COMMON = --cc="$(CCACHE)gcc" --extra-cflags="-Wno-error" |
Pascal Brand | 9a0f50f | 2015-09-08 15:34:17 +0200 | [diff] [blame] | 310 | |
Igor Opaniuk | 97d0529 | 2016-10-26 14:46:14 +0300 | [diff] [blame] | 311 | ifeq ($(QEMU_VIRTFS_ENABLE),y) |
Jerome Forissier | 23b4131 | 2016-11-12 16:02:01 +0100 | [diff] [blame] | 312 | QEMU_CONFIGURE_PARAMS_COMMON += --enable-virtfs |
Igor Opaniuk | 97d0529 | 2016-10-26 14:46:14 +0300 | [diff] [blame] | 313 | QEMU_EXTRA_ARGS +=\ |
| 314 | -fsdev local,id=fsdev0,path=$(QEMU_VIRTFS_HOST_DIR),security_model=none \ |
| 315 | -device virtio-9p-device,fsdev=fsdev0,mount_tag=host |
| 316 | endif |
Igor Opaniuk | 0aea4ef | 2017-01-13 12:52:00 +0200 | [diff] [blame] | 317 | |
Jerome Forissier | 129d3df | 2018-08-21 09:54:43 +0200 | [diff] [blame] | 318 | ifeq ($(GDBSERVER),y) |
| 319 | HOSTFWD := ,hostfwd=tcp::12345-:12345 |
| 320 | endif |
Jerome Forissier | 5e35a05 | 2018-08-21 10:01:32 +0200 | [diff] [blame] | 321 | # Enable QEMU SLiRP user networking |
Jerome Forissier | 129d3df | 2018-08-21 09:54:43 +0200 | [diff] [blame] | 322 | QEMU_EXTRA_ARGS +=\ |
| 323 | -netdev user,id=vmnic$(HOSTFWD) -device virtio-net-device,netdev=vmnic |
Jerome Forissier | efd5629 | 2017-01-31 17:46:10 +0100 | [diff] [blame] | 324 | |
| 325 | define run-help |
| 326 | @echo |
| 327 | @echo \* QEMU is now waiting to start the execution |
| 328 | @echo \* Start execution with either a \'c\' followed by \<enter\> in the QEMU console or |
| 329 | @echo \* attach a debugger and continue from there. |
| 330 | @echo \* |
| 331 | @echo \* To run OP-TEE tests, use the xtest command in the \'Normal World\' terminal |
| 332 | @echo \* Enter \'xtest -h\' for help. |
| 333 | @echo |
| 334 | endef |
| 335 | |
Jerome Forissier | 5b58525 | 2017-08-03 13:22:21 +0200 | [diff] [blame] | 336 | ifneq (, $(LAUNCH_TERMINAL)) |
Alex Bennée | 0758060 | 2017-07-07 14:26:51 +0100 | [diff] [blame] | 337 | define launch-terminal |
| 338 | @nc -z 127.0.0.1 $(1) || \ |
Hashem Tatari | 72b934f | 2019-01-24 16:43:43 +0100 | [diff] [blame] | 339 | $(LAUNCH_TERMINAL) "$(SOC_TERM_PATH)/soc_term $(1)" & |
Alex Bennée | 0758060 | 2017-07-07 14:26:51 +0100 | [diff] [blame] | 340 | endef |
| 341 | else |
Jerome Forissier | efd5629 | 2017-01-31 17:46:10 +0100 | [diff] [blame] | 342 | gnome-terminal := $(shell command -v gnome-terminal 2>/dev/null) |
| 343 | xterm := $(shell command -v xterm 2>/dev/null) |
| 344 | ifdef gnome-terminal |
Jerome Forissier | efd5629 | 2017-01-31 17:46:10 +0100 | [diff] [blame] | 345 | define launch-terminal |
| 346 | @nc -z 127.0.0.1 $(1) || \ |
Joakim Bech | 5dc030c | 2019-04-23 15:36:48 +0200 | [diff] [blame] | 347 | $(gnome-terminal) -x $(SOC_TERM_PATH)/soc_term $(1) & |
Jerome Forissier | efd5629 | 2017-01-31 17:46:10 +0100 | [diff] [blame] | 348 | endef |
| 349 | else |
| 350 | ifdef xterm |
| 351 | define launch-terminal |
| 352 | @nc -z 127.0.0.1 $(1) || \ |
| 353 | $(xterm) -title $(2) -e $(BASH) -c "$(SOC_TERM_PATH)/soc_term $(1)" & |
| 354 | endef |
| 355 | else |
| 356 | check-terminal := @echo "Error: could not find gnome-terminal nor xterm" ; false |
| 357 | endif |
| 358 | endif |
Alex Bennée | 0758060 | 2017-07-07 14:26:51 +0100 | [diff] [blame] | 359 | endif |
Jerome Forissier | efd5629 | 2017-01-31 17:46:10 +0100 | [diff] [blame] | 360 | |
| 361 | define wait-for-ports |
| 362 | @while ! nc -z 127.0.0.1 $(1) || ! nc -z 127.0.0.1 $(2); do sleep 1; done |
| 363 | endef |
| 364 | |
Pascal Brand | 9a0f50f | 2015-09-08 15:34:17 +0200 | [diff] [blame] | 365 | ################################################################################ |
Pascal Brand | 070d955 | 2015-09-01 15:33:22 +0200 | [diff] [blame] | 366 | # OP-TEE |
| 367 | ################################################################################ |
Pascal Brand | 6044eb5 | 2016-02-23 15:48:31 +0100 | [diff] [blame] | 368 | OPTEE_OS_COMMON_FLAGS ?= \ |
| 369 | $(OPTEE_OS_COMMON_EXTRA_FLAGS) \ |
| 370 | CROSS_COMPILE=$(CROSS_COMPILE_S_USER) \ |
Jerome Forissier | ae45fbf | 2015-09-04 09:40:17 +0200 | [diff] [blame] | 371 | CROSS_COMPILE_core=$(CROSS_COMPILE_S_KERNEL) \ |
Victor Chong | badc792 | 2015-12-08 17:23:20 +0000 | [diff] [blame] | 372 | CROSS_COMPILE_ta_arm64=$(AARCH64_CROSS_COMPILE) \ |
| 373 | CROSS_COMPILE_ta_arm32=$(AARCH32_CROSS_COMPILE) \ |
Pascal Brand | 23ef205 | 2016-03-09 15:25:01 +0100 | [diff] [blame] | 374 | CFG_TEE_CORE_LOG_LEVEL=$(CFG_TEE_CORE_LOG_LEVEL) \ |
Igor Opaniuk | 27edfc7 | 2016-10-25 18:33:54 +0300 | [diff] [blame] | 375 | DEBUG=$(DEBUG) \ |
| 376 | CFG_TEE_BENCHMARK=$(CFG_TEE_BENCHMARK) |
Jerome Forissier | ae45fbf | 2015-09-04 09:40:17 +0200 | [diff] [blame] | 377 | |
Victor Chong | 46f8585 | 2017-08-09 08:26:41 +0100 | [diff] [blame] | 378 | .PHONY: optee-os-common |
Pascal Brand | 070d955 | 2015-09-01 15:33:22 +0200 | [diff] [blame] | 379 | optee-os-common: |
Jerome Forissier | ae45fbf | 2015-09-04 09:40:17 +0200 | [diff] [blame] | 380 | $(MAKE) -C $(OPTEE_OS_PATH) $(OPTEE_OS_COMMON_FLAGS) |
| 381 | |
Pascal Brand | 6044eb5 | 2016-02-23 15:48:31 +0100 | [diff] [blame] | 382 | OPTEE_OS_CLEAN_COMMON_FLAGS ?= $(OPTEE_OS_COMMON_EXTRA_FLAGS) |
Pascal Brand | 070d955 | 2015-09-01 15:33:22 +0200 | [diff] [blame] | 383 | |
Victor Chong | 46f8585 | 2017-08-09 08:26:41 +0100 | [diff] [blame] | 384 | .PHONY: optee-os-clean-common |
Igor Opaniuk | 4f667cd | 2017-05-31 14:11:56 +0300 | [diff] [blame] | 385 | ifeq ($(CFG_TEE_BENCHMARK),y) |
| 386 | optee-os-clean-common: benchmark-app-clean-common |
| 387 | endif |
Jens Wiklander | ccd829a | 2018-02-05 20:30:39 +0100 | [diff] [blame] | 388 | optee-os-clean-common: xtest-clean-common optee-examples-clean-common |
Jerome Forissier | ae45fbf | 2015-09-04 09:40:17 +0200 | [diff] [blame] | 389 | $(MAKE) -C $(OPTEE_OS_PATH) $(OPTEE_OS_CLEAN_COMMON_FLAGS) clean |
| 390 | |
Igor Opaniuk | 27edfc7 | 2016-10-25 18:33:54 +0300 | [diff] [blame] | 391 | OPTEE_CLIENT_COMMON_FLAGS ?= CROSS_COMPILE=$(CROSS_COMPILE_NS_USER) \ |
| 392 | CFG_TEE_BENCHMARK=$(CFG_TEE_BENCHMARK) \ |
Victor Chong | ed79f25 | 2019-04-27 16:54:51 +0100 | [diff] [blame] | 393 | CFG_TA_TEST_PATH=y |
Pascal Brand | 070d955 | 2015-09-01 15:33:22 +0200 | [diff] [blame] | 394 | |
Victor Chong | 46f8585 | 2017-08-09 08:26:41 +0100 | [diff] [blame] | 395 | .PHONY: optee-client-common |
Pascal Brand | 070d955 | 2015-09-01 15:33:22 +0200 | [diff] [blame] | 396 | optee-client-common: |
Jerome Forissier | ae45fbf | 2015-09-04 09:40:17 +0200 | [diff] [blame] | 397 | $(MAKE) -C $(OPTEE_CLIENT_PATH) $(OPTEE_CLIENT_COMMON_FLAGS) |
| 398 | |
Victor Chong | 87f5fcf | 2015-11-26 10:52:52 +0900 | [diff] [blame] | 399 | # OPTEE_CLIENT_CLEAN_COMMON_FLAGS can be defined in specific makefiles |
| 400 | # (hikey.mk,...) if necessary |
Pascal Brand | 070d955 | 2015-09-01 15:33:22 +0200 | [diff] [blame] | 401 | |
Victor Chong | 46f8585 | 2017-08-09 08:26:41 +0100 | [diff] [blame] | 402 | .PHONY: optee-client-clean-common |
Pascal Brand | 070d955 | 2015-09-01 15:33:22 +0200 | [diff] [blame] | 403 | optee-client-clean-common: |
Jerome Forissier | ae45fbf | 2015-09-04 09:40:17 +0200 | [diff] [blame] | 404 | $(MAKE) -C $(OPTEE_CLIENT_PATH) $(OPTEE_CLIENT_CLEAN_COMMON_FLAGS) \ |
| 405 | clean |
| 406 | |
Pascal Brand | 070d955 | 2015-09-01 15:33:22 +0200 | [diff] [blame] | 407 | ################################################################################ |
Pascal Brand | d6536da | 2015-09-01 10:38:43 +0200 | [diff] [blame] | 408 | # xtest / optee_test |
| 409 | ################################################################################ |
Jerome Forissier | ae45fbf | 2015-09-04 09:40:17 +0200 | [diff] [blame] | 410 | XTEST_COMMON_FLAGS ?= CROSS_COMPILE_HOST=$(CROSS_COMPILE_NS_USER)\ |
| 411 | CROSS_COMPILE_TA=$(CROSS_COMPILE_S_USER) \ |
| 412 | TA_DEV_KIT_DIR=$(OPTEE_OS_TA_DEV_KIT_DIR) \ |
Etienne Carriere | 5e11351 | 2016-10-21 10:13:57 +0200 | [diff] [blame] | 413 | OPTEE_CLIENT_EXPORT=$(OPTEE_CLIENT_EXPORT) \ |
Pascal Brand | 6044eb5 | 2016-02-23 15:48:31 +0100 | [diff] [blame] | 414 | COMPILE_NS_USER=$(COMPILE_NS_USER) \ |
Igor Opaniuk | 4f667cd | 2017-05-31 14:11:56 +0300 | [diff] [blame] | 415 | O=$(OPTEE_TEST_OUT_PATH) |
Jerome Forissier | ae45fbf | 2015-09-04 09:40:17 +0200 | [diff] [blame] | 416 | |
Victor Chong | 46f8585 | 2017-08-09 08:26:41 +0100 | [diff] [blame] | 417 | .PHONY: xtest-common |
Pascal Brand | d6536da | 2015-09-01 10:38:43 +0200 | [diff] [blame] | 418 | xtest-common: optee-os optee-client |
Pascal Brand | dc83b9a | 2015-09-24 02:43:25 +0200 | [diff] [blame] | 419 | $(MAKE) -C $(OPTEE_TEST_PATH) $(XTEST_COMMON_FLAGS) |
Pascal Brand | d6536da | 2015-09-01 10:38:43 +0200 | [diff] [blame] | 420 | |
Etienne Carriere | 965db7b | 2017-01-10 17:50:21 +0100 | [diff] [blame] | 421 | XTEST_CLEAN_COMMON_FLAGS ?= O=$(OPTEE_TEST_OUT_PATH) \ |
| 422 | TA_DEV_KIT_DIR=$(OPTEE_OS_TA_DEV_KIT_DIR) \ |
Jerome Forissier | ae45fbf | 2015-09-04 09:40:17 +0200 | [diff] [blame] | 423 | |
Victor Chong | 46f8585 | 2017-08-09 08:26:41 +0100 | [diff] [blame] | 424 | .PHONY: xtest-clean-common |
Pascal Brand | d6536da | 2015-09-01 10:38:43 +0200 | [diff] [blame] | 425 | xtest-clean-common: |
Pascal Brand | dc83b9a | 2015-09-24 02:43:25 +0200 | [diff] [blame] | 426 | $(MAKE) -C $(OPTEE_TEST_PATH) $(XTEST_CLEAN_COMMON_FLAGS) clean |
Pascal Brand | d6536da | 2015-09-01 10:38:43 +0200 | [diff] [blame] | 427 | |
Pascal Brand | dc83b9a | 2015-09-24 02:43:25 +0200 | [diff] [blame] | 428 | XTEST_PATCH_COMMON_FLAGS ?= $(XTEST_COMMON_FLAGS) |
Jerome Forissier | ae45fbf | 2015-09-04 09:40:17 +0200 | [diff] [blame] | 429 | |
Victor Chong | 46f8585 | 2017-08-09 08:26:41 +0100 | [diff] [blame] | 430 | .PHONY: xtest-patch-common |
Pascal Brand | dc83b9a | 2015-09-24 02:43:25 +0200 | [diff] [blame] | 431 | xtest-patch-common: |
| 432 | $(MAKE) -C $(OPTEE_TEST_PATH) $(XTEST_PATCH_COMMON_FLAGS) patch |
Victor Chong | 8519bcf | 2016-07-15 08:43:03 +0100 | [diff] [blame] | 433 | |
| 434 | ################################################################################ |
Igor Opaniuk | 584efe5 | 2017-08-07 01:41:48 +0300 | [diff] [blame] | 435 | # sample applications / optee_examples |
Victor Chong | 8519bcf | 2016-07-15 08:43:03 +0100 | [diff] [blame] | 436 | ################################################################################ |
Igor Opaniuk | 584efe5 | 2017-08-07 01:41:48 +0300 | [diff] [blame] | 437 | OPTEE_EXAMPLES_COMMON_FLAGS ?= HOST_CROSS_COMPILE=$(CROSS_COMPILE_NS_USER)\ |
Victor Chong | 8519bcf | 2016-07-15 08:43:03 +0100 | [diff] [blame] | 438 | TA_CROSS_COMPILE=$(CROSS_COMPILE_S_USER) \ |
| 439 | TA_DEV_KIT_DIR=$(OPTEE_OS_TA_DEV_KIT_DIR) \ |
| 440 | TEEC_EXPORT=$(OPTEE_CLIENT_EXPORT) |
| 441 | |
Igor Opaniuk | 584efe5 | 2017-08-07 01:41:48 +0300 | [diff] [blame] | 442 | .PHONY: optee-examples-common |
| 443 | optee-examples-common: optee-os optee-client |
| 444 | $(MAKE) -C $(OPTEE_EXAMPLES_PATH) $(OPTEE_EXAMPLES_COMMON_FLAGS) |
Victor Chong | 8519bcf | 2016-07-15 08:43:03 +0100 | [diff] [blame] | 445 | |
Igor Opaniuk | 584efe5 | 2017-08-07 01:41:48 +0300 | [diff] [blame] | 446 | OPTEE_EXAMPLES_CLEAN_COMMON_FLAGS ?= TA_DEV_KIT_DIR=$(OPTEE_OS_TA_DEV_KIT_DIR) |
Victor Chong | 8519bcf | 2016-07-15 08:43:03 +0100 | [diff] [blame] | 447 | |
Igor Opaniuk | 584efe5 | 2017-08-07 01:41:48 +0300 | [diff] [blame] | 448 | .PHONY: optee-examples-clean-common |
| 449 | optee-examples-clean-common: |
| 450 | $(MAKE) -C $(OPTEE_EXAMPLES_PATH) \ |
| 451 | $(OPTEE_EXAMPLES_CLEAN_COMMON_FLAGS) clean |
Etienne Carriere | 5e11351 | 2016-10-21 10:13:57 +0200 | [diff] [blame] | 452 | |
| 453 | ################################################################################ |
Igor Opaniuk | 27edfc7 | 2016-10-25 18:33:54 +0300 | [diff] [blame] | 454 | # benchmark_app |
| 455 | ################################################################################ |
Yves Lefloch | 221154a | 2017-08-02 17:36:58 +0200 | [diff] [blame] | 456 | BENCHMARK_APP_COMMON_FLAGS ?= CROSS_COMPILE=$(CROSS_COMPILE_NS_USER) \ |
Igor Opaniuk | 27edfc7 | 2016-10-25 18:33:54 +0300 | [diff] [blame] | 457 | TEEC_EXPORT=$(OPTEE_CLIENT_EXPORT) \ |
Igor Opaniuk | 7b3a94c | 2017-09-13 13:15:30 +0300 | [diff] [blame] | 458 | TEEC_INTERNAL_INCLUDES=$(OPTEE_CLIENT_PATH)/libteec \ |
| 459 | MULTIARCH=$(MULTIARCH) |
Igor Opaniuk | 27edfc7 | 2016-10-25 18:33:54 +0300 | [diff] [blame] | 460 | |
Victor Chong | 46f8585 | 2017-08-09 08:26:41 +0100 | [diff] [blame] | 461 | .PHONY: benchmark-app-common |
Igor Opaniuk | 27edfc7 | 2016-10-25 18:33:54 +0300 | [diff] [blame] | 462 | benchmark-app-common: optee-os optee-client |
| 463 | $(MAKE) -C $(BENCHMARK_APP_PATH) $(BENCHMARK_APP_COMMON_FLAGS) |
| 464 | |
Victor Chong | 46f8585 | 2017-08-09 08:26:41 +0100 | [diff] [blame] | 465 | .PHONY: benchmark-app-clean-common |
Igor Opaniuk | 27edfc7 | 2016-10-25 18:33:54 +0300 | [diff] [blame] | 466 | benchmark-app-clean-common: |
| 467 | $(MAKE) -C $(BENCHMARK_APP_PATH) clean |