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

Building anything for nrf5340pdk_nrf5340_cpuappns/mps2_an521_ns(any non-secure platforms) pulls external git trees #32252

Closed
nashif opened this issue Feb 12, 2021 · 5 comments · Fixed by #34984
Assignees
Labels
bug The issue is a bug, or the PR is fixing a bug priority: high High impact/importance bug

Comments

@nashif
Copy link
Member

nashif commented Feb 12, 2021

Describe the bug
Whenever you build for this platform, you end up with git trees that were pulled from outside the project. This should use modules and should not depend on external trees.

west build -b nrf5340pdk_nrf5340_cpuappns samples/synchronization/
..
..
[1/9] Creating directories for 'mbedcrypto-populate'
[1/9] Performing download step (git clone) for 'mbedcrypto-populate'
Cloning into 'mbedcrypto-src'...
remote: Enumerating objects: 18042, done.
remote: Counting objects: 100% (18042/18042), done.
remote: Compressing objects: 100% (8487/8487), done.
remote: Total 18042 (delta 14039), reused 12665 (delta 9429), pack-reused 0
Receiving objects: 100% (18042/18042), 17.40 MiB | 38.24 MiB/s, done.
Resolving deltas: 100% (14039/14039), done.
Note: switching to 'mbedtls-2.24.0'.

You are in 'detached HEAD' state. You can look around, make experimental
changes and commit them, and you can discard any commits you make in this
state without impacting any branches by switching back to a branch.

If you want to create a new branch to retain commits you create, you may
do so (now or later) by using -c with the switch command. Example:

  git switch -c <new-branch-name>

Or undo this operation with:

  git switch -

Turn off this advice by setting config variable advice.detachedHead to false

HEAD is now at 523f0554 Merge pull request #748 from ARMmbed/mbedtls-2.24.0r0-pr
[2/9] Performing update step for 'mbedcrypto-populate'
[4/9] Performing patch step for 'mbedcrypto-populate'
[5/9] No configure step for 'mbedcrypto-populate'
[6/9] No build step for 'mbedcrypto-populate'
[7/9] No install step for 'mbedcrypto-populate'
[8/9] No test step for 'mbedcrypto-populate'
[9/9] Completed 'mbedcrypto-populate'

...
..
@nashif nashif added the bug The issue is a bug, or the PR is fixing a bug label Feb 12, 2021
@nashif nashif added the priority: medium Medium impact/importance bug label Feb 20, 2021
@ioannisg
Copy link
Member

There's a possibility we can fix this just with the following upmerge. I'll get back to it soon.

@nashif nashif added priority: high High impact/importance bug and removed priority: medium Medium impact/importance bug labels Apr 1, 2021
@galak
Copy link
Collaborator

galak commented Apr 6, 2021

Waiting on v1.3.0 TFM release which will have a fix for having a local mbed crypto/tls code base

@galak galak changed the title Building anything for nrf5340pdk_nrf5340_cpuappns pulls external git trees Building anything for nrf5340pdk_nrf5340_cpuappns/mps2_an521_ns(any non-secure platforms) pulls external git trees Apr 6, 2021
@galak
Copy link
Collaborator

galak commented Apr 13, 2021

@ioannisg can you take a look at this now that we merged the TFM 1.3.0 support.

@ioannisg
Copy link
Member

@ioannisg can you take a look at this now that we merged the TFM 1.3.0 support.

It's on my task list for this week.

@ioannisg
Copy link
Member

Submitted a PR that addresses the issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug The issue is a bug, or the PR is fixing a bug priority: high High impact/importance bug
Projects
None yet
4 participants