-
Notifications
You must be signed in to change notification settings - Fork 209
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Juno support #13
Juno support #13
Conversation
@cedric-chaumont-st @jenswi-linaro Could you check Juno building and running, using also OP-TEE/manifest#6? Thanks. |
Juno and clean are fixed. |
FYI: Build. Boot. Test w/o GP OK. |
Tested-by: Cedric Chaumont cedric.chaumont@linaro.org (ARM Juno board) |
We need to document the source of the binary files. |
By the way, are we allowed to distribute those binary files (patches/bl30.bin and patches/bl33.bin)? |
Fix the missing \ |
SPD=opteed \ | ||
clean | ||
CROSS_COMPILE="$(CCACHE)$(AARCH64_CROSS_COMPILE)" \ | ||
$(MAKE) -C $(ARM_TF_PATH) $(ARM_TF_FLAGS) clean |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is not correct, because for ARM TF some flags such as CFLAGS
have to be passed as environment variables (otherwise they override the values set in the Makefile and you lose some required flags), while some others can indeed be passed as make arguments.
With the above I get the following error:
DEPS build/hikey/release/bl31/plat_io_storage.d
plat/hikey/plat_io_storage.c:32:26: fatal error: arch_helpers.h: No such file or directory
#include <arch_helpers.h>
Here is what works for me:
ARM_TF_FLAGS ?= \
CROSS_COMPILE="$(CCACHE)$(AARCH64_CROSS_COMPILE)" \
BL32=$(OPTEE_OS_BIN) \
BL33=$(EDK2_BIN) \
NEED_BL30=yes \
BL30=$(MCUIMAGE_BIN) \
DEBUG=$(DEBUG) \
PLAT=hikey \
SPD=opteed
ARM_TF_EXPORTS ?= CFLAGS="-O0 -gdwarf-2"
arm-tf: mcuimage optee-os edk2
export $(ARM_TF_EXPORTS) ; \
$(MAKE) -C $(ARM_TF_PATH) $(ARM_TF_FLAGS) all fip
arm-tf-clean:
export $(ARM_TF_EXPORTS) ; \
$(MAKE) -C $(ARM_TF_PATH) $(ARM_TF_FLAGS) clean
Fixed ARM-TF build |
@@ -113,7 +116,7 @@ optee-os-common: | |||
|
|||
OPTEE_OS_CLEAN_COMMON_FLAGS ?= $(OPTEE_OS_COMMON_FLAGS) | |||
|
|||
optee-os-clean-common: | |||
optee-os-clean-common: xtest-clean |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
When we clean everything, we will clean both optee_os
and optee_test
. But the makefile of optee_test depends on the devkit in optee_os. So if optee_os is cleaned first, xtest-clean will fail.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
OK, but this will not prevent xtest-clean
from failing the second time anyway, so optee_test/Makefile
should also be fixed.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You're right :(
I propose to postpone xtest-clean to be fixed for another release, but to leave this optee-os-clean-common: xtest-clean
for the time-being as it makes work 1 make all-clean
at least
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
+1, do that as a follow up task.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Agreed.
Tested on HiKey. I identified some issues with |
Signed-off-by: Pascal Brand <pascal.brand@st.com>
#45 is cleaner |
No description provided.