Is it possible for me to cross compile the hello Trust Zone example referenced here: Cortex-A9 TrustZone example ? The build file contains the command options for the arm compiler. I do not have the board this example was meant for, and I am trying to see if I can run it on a different platform. I did see a --treanslate-gcc option referenced on the documentation. Would that by chance help me with what I am trying to do?
If you're using GCC I expect that you'll face a number of problems...
Greetings-
I am running into another error now. It is:
gcc -c -o retarget_secure.o retarget_secure.c
/tmp/cctqYaNq.s: Assembler messages:
/tmp/cctqYaNq.s:15: Error: operand type mismatch for `call'
make: *** [retarget_secure.o] Error 1
Here is my makefile:
CC = gcc
objects := $(patsubst %.c,%.o,$(wildcard *.c))
foo:$(objects) monitor.s startup_normal.s startup_secure.s v7.s
$(CROSS_COMPILE)$(CC) -mcpu=cortex-a15 -o foo $(objects)
Can you help?