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

Hikey960 AOSP: How to build the optee_examples host only? #2920

Closed
SimonWan opened this issue Apr 1, 2019 · 6 comments
Closed

Hikey960 AOSP: How to build the optee_examples host only? #2920

SimonWan opened this issue Apr 1, 2019 · 6 comments

Comments

@SimonWan
Copy link

SimonWan commented Apr 1, 2019

Hi there,

I boot up my hikey960 with AOSP+OPTEE as the instructions here: https://optee.readthedocs.io/building/aosp/aosp.html?highlight=aosp.

Now I’m trying to rewrite some host code in external/optee_examples while I’m wondering how can I build the host without building the whole system?

Thank you.

@jbech-linaro
Copy link
Contributor

IIRC, you should be able to just cd into the folder and run mm (or maybe even mmm). With those, it will only rebuild the module + dependencies (mm) or just rebuild the module mmm.

@vchong
Copy link
Contributor

vchong commented Apr 2, 2019

@SimonWan If you're using the script, you can also try below from the root of your AOSP source tree:

./build.sh -v p -t hikey960 <name of host>

# e.g.
./build.sh -v p -t hikey960 optee_example_hello_world

# push to board
adb push out/target/product/hikey/vendor/bin/optee_example_hello_world vendor/bin

Note that this requires you to have built (or at least downloaded, i.e. repo sync-ed) the source tree first, which you did. We don't support out-of-tree building.

@vchong
Copy link
Contributor

vchong commented Apr 2, 2019

Please also note that the hikey960 build isn't very stable, i.e. adb over usb and wifi issues, so use at your own discretion!

@vchong
Copy link
Contributor

vchong commented Apr 2, 2019

If required, you can also rebuild the TAs using the command above, replacing <name of host> with <uuid.ta>, e.g. 8aaaf200-2450-11e4-abe2-0002a5d5c51b.ta.

@vchong
Copy link
Contributor

vchong commented Apr 2, 2019

Ah sorry, I just realized that since adb over usb has issues in hikey960, you can't adb push if you can't get adb over tcp to work, so you might end up having to rebuild the image anyway: ./build.sh -v p -t hikey960 vendorimage

@SimonWan
Copy link
Author

SimonWan commented Apr 2, 2019

@jbech-linaro @vchong thank you for the answers. @vchong thank you for the reminder, but 960 can still support the adb over wifi pretty stable so far so I the file replacement is easier for my case. Have a good one.

@SimonWan SimonWan closed this as completed Apr 2, 2019
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

No branches or pull requests

3 participants