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