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

mbedtls.cfg.h is not accessible when using local SDKs via uFBT #3910

Open
CookiePLMonster opened this issue Sep 18, 2024 · 0 comments
Open
Assignees
Labels
Bug Build System & Scripts fbt, scripts and toolchain-related

Comments

@CookiePLMonster
Copy link
Contributor

CookiePLMonster commented Sep 18, 2024

Describe the bug.

Attempting to use a self-built SDK with uFBT via ufbt update --local=X seems to be unable to detect mbedtls.cfg.h, even though it is bundled in the .zip update package:

In file included from H:/dev/flipper-zero/.ufbt/current/sdk_headers/f7_sdk/lib/mbedtls/include/mbedtls/bignum.h:14,
                 from H:\dev\flipper-zero\flipper-bakery\flipper95\flipper95.c:14:
H:/dev/flipper-zero/.ufbt/current/sdk_headers/f7_sdk/lib/mbedtls/include/mbedtls/build_info.h:79:10: error: #include expects "FILENAME" or <FILENAME>
   79 | #include MBEDTLS_CONFIG_FILE
      |          ^~~~~~~~~~~~~~~~~~~

Am I maybe missing a step in my local SDK builds and I need more than just ./fbt updater_package?

Reproduction

I'll outline the steps using my own app, but it's unlikely to be isolated to just that.

  1. Have a local debug SDK build done from FBT, in my case build with ./fbt updater_package.
  2. Switch uFBT to use this local SDK - ufbt update --local=h:\dev\flipper-zero\flipperzero-firmware\dist\f7-D\flipper-z-f7-sdk-local.zip --hw-target=f7
  3. Clone Flipper95 and set up ufbt vscode_dist on it.
  4. Attempt to build the app with ufbt.
  5. Observe a sdk_headers/f7_sdk/lib/mbedtls/include/mbedtls/build_info.h:79:10: error: #include expects "FILENAME" or <FILENAME> error.
  6. Switch uFBT to the latest dev or release track via ufbt update --channel=release/dev.
  7. Attempt to build the app again.
  8. Observe the errror does not occur.

Target

f7 with latest dev release

Logs

No response

Anything else?

No response

@skotopes skotopes added Build System & Scripts fbt, scripts and toolchain-related Bug labels Sep 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Build System & Scripts fbt, scripts and toolchain-related
Projects
None yet
Development

No branches or pull requests

3 participants