Skip to content

Commit

Permalink
1)Added support for AARCH64 in Makefile
Browse files Browse the repository at this point in the history
2)Updated trustm_lib to support AARCH64
  • Loading branch information
ying-css committed Mar 1, 2022
1 parent a840334 commit dfb1015
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 3 deletions.
12 changes: 10 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,8 @@
#
#*/

#~ Uncomment this for AARCH64 or pass it as argument in command line
#~ AARCH64 = YES
TRUSTM = trustm_lib

BUILD_FOR_RPI = YES
Expand All @@ -43,7 +45,11 @@ LIBDIR += trustm_helper
BINDIR = bin
APPDIR = ex_cli_applications
ENGDIR = trustm_engine
ifdef AARCH64
LIB_INSTALL_DIR = /usr/lib/aarch64-linux-gnu
else
LIB_INSTALL_DIR = /usr/lib/arm-linux-gnueabihf
endif
ENGINE_INSTALL_DIR = $(LIB_INSTALL_DIR)/engines-1.1

INCDIR = $(TRUSTM)/optiga/include
Expand All @@ -66,8 +72,7 @@ endif

ifdef LIBDIR
ifdef PALDIR
LIBSRC = $(PALDIR)/pal.c

LIBSRC = $(PALDIR)/pal.c
ifeq ($(BUILD_FOR_RPI), YES)
LIBSRC += $(PALDIR)/pal_gpio.c
endif
Expand Down Expand Up @@ -123,6 +128,9 @@ CC = gcc
DEBUG = -g

CFLAGS += -c
ifdef AARCH64
CFLAGS += -fPIC
endif
#CFLAGS += $(DEBUG)
CFLAGS += $(INCDIR)
CFLAGS += -Wall
Expand Down
2 changes: 1 addition & 1 deletion trustm_lib

0 comments on commit dfb1015

Please sign in to comment.