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