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

[OPTEE-OS 1/5] pkg: bsp-imx: Add support to cross compilation #3126

Merged
merged 1 commit into from
May 5, 2023

Conversation

rene
Copy link
Contributor

@rene rene commented Mar 30, 2023

Introduction

This is the first of a series of 5 PRs that will introduce OPTEE-OS to EVE.

All changes were broken into multiple PRs because it affects many components that produces a big building time: it needs to rebuild cross-compilers, eve-alpine, kernel and bsp-imx. Breaking into multiples PRs will also help reviewers to visualize all the changes in an incremental way.

General outcome:

OPTEE-OS should be supported on the following devices of i.MX8M platform:

  • EPC-R3720
  • phyBOARD-Pollux board

An OPTEE-OS image is also built for QEMU (for future use)

How to test

Generate live images for the mentioned devices. EVE image should boot successfully (loading OPTEE-OS during boot). EVE will also recognize TrustZone and create /dev/tee0 and /dev/teepriv0 devices.

Notes

Although tests with Trusted Applications (TAs) were made, i.e., TAs were loaded and ran successfully from EVE-OS to TrustZone, in this stage only OPTEE-OS it's being introduced. TAs will be introduced in a next development phase.

Changes in this PR

bsp-imx package builds u-boot and ATF for different i.MX8M platforms, which can be very time consuming. This commit adds support to cross compilation so it can build faster on x86. This package is only useful for ARM64, so a check is added to skip calling make for any other architecture.

@rene rene requested review from eriknordmark and rvs as code owners March 30, 2023 10:18
bsp-imx package builds u-boot and ATF for different i.MX8M platforms, which
can be very time consuming. This commit adds support to cross compilation
so it can build faster on x86. This package is only useful for ARM64, so a
check is added to skip calling make for any other architecture.

Signed-off-by: Renê de Souza Pinto <rene@renesp.com.br>
@rene rene changed the title [OPTEE-OS 1/4] pkg: bsp-imx: Add support to cross compilation [OPTEE-OS 1/5] pkg: bsp-imx: Add support to cross compilation Mar 30, 2023
@eriknordmark eriknordmark requested a review from mikem-zed March 31, 2023 06:00
Copy link
Contributor

@rouming rouming left a comment

Choose a reason for hiding this comment

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

Ack

@eriknordmark eriknordmark merged commit bf4604e into lf-edge:master May 5, 2023
@rene rene deleted the optee-os-pr1 branch May 24, 2023 14:23
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.

3 participants