Skip to content
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

Closed
wants to merge 1 commit into from
Closed

Juno support #13

wants to merge 1 commit into from

Conversation

pascal-brand38
Copy link
Contributor

No description provided.

@pascal-brand38
Copy link
Contributor Author

@cedric-chaumont-st @jenswi-linaro Could you check Juno building and running, using also OP-TEE/manifest#6? Thanks.

@pascal-brand38
Copy link
Contributor Author

Juno and clean are fixed.

@cedric-chaumont-st-dev
Copy link

FYI: Build. Boot. Test w/o GP OK.
GP test on going.

@cedric-chaumont-st-dev
Copy link

Tested-by: Cedric Chaumont cedric.chaumont@linaro.org (ARM Juno board)
48211 subtests of which 0 failed
701 test cases of which 0 failed
0 test case was skipped
TEE test application done!

@jenswi-linaro
Copy link
Contributor

We need to document the source of the binary files.

@jenswi-linaro
Copy link
Contributor

By the way, are we allowed to distribute those binary files (patches/bl30.bin and patches/bl33.bin)?

@pascal-brand38
Copy link
Contributor Author

Fix the missing \

SPD=opteed \
clean
CROSS_COMPILE="$(CCACHE)$(AARCH64_CROSS_COMPILE)" \
$(MAKE) -C $(ARM_TF_PATH) $(ARM_TF_FLAGS) clean
Copy link
Contributor

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

@pascal-brand38
Copy link
Contributor Author

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
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why?

Copy link
Contributor Author

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.

Copy link
Contributor

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.

Copy link
Contributor Author

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

Copy link
Contributor

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.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Agreed.

@jforissier
Copy link
Contributor

Tested on HiKey. I identified some issues with make clean -- I think some changes to hikey.mk and possibly to the optee_test Makefile are needed, but this is not related to this PR. In any case, everything builds OK. So:
Tested-by: Jerome Forissier <jerome.forissier@linaro.org> (HiKey)

Signed-off-by: Pascal Brand <pascal.brand@st.com>
@pascal-brand38
Copy link
Contributor Author

#45 is cleaner

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants