Skip to content

Commit

Permalink
Modify ARCH setting to be able to compile arm arch optee-client (apac…
Browse files Browse the repository at this point in the history
  • Loading branch information
fanrong1992 authored Sep 2, 2021
1 parent 2125f97 commit d7fe219
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -19,19 +19,21 @@ OPTEE_PATH ?= $(OPTEE_DIR)
OPTEE_BUILD_PATH ?= $(OPTEE_PATH)/build
OPTEE_OS_PATH ?= $(OPTEE_PATH)/optee_os
OPTEE_CLIENT_PATH ?= $(OPTEE_PATH)/optee_client
VENDOR ?= qemu_v8.mk

CCACHE ?= $(shell which ccache)
AARCH_CROSS_COMPILE ?= $(OPTEE_PATH)/toolchains/aarch64/bin/aarch64-linux-gnu-

EXAMPLES = $(wildcard examples/*)
EXAMPLES_INSTALL = $(EXAMPLES:%=%-install)
EXAMPLES_CLEAN = $(EXAMPLES:%=%-clean)

ifneq ($(ARCH), arm)
VENDOR := qemu_v8.mk
AARCH_CROSS_COMPILE := $(OPTEE_PATH)/toolchains/aarch64/bin/aarch64-linux-gnu-
HOST_TARGET := aarch64-unknown-linux-gnu
TA_TARGET := aarch64-unknown-optee-trustzone
else
VENDOR := qemu.mk
ARCH_CROSS_COMPILE := $(OPTEE_PATH)/toolchains/aarch32/bin/arm-linux-gnueabihf-
HOST_TARGET := arm-unknown-linux-gnueabihf
TA_TARGET := arm-unknown-optee-trustzone
endif
Expand Down

0 comments on commit d7fe219

Please sign in to comment.