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

rand32.h needs changing to random.h for zephyr 3.5 #66

Closed
nordicjm opened this issue Nov 17, 2023 · 7 comments
Closed

rand32.h needs changing to random.h for zephyr 3.5 #66

nordicjm opened this issue Nov 17, 2023 · 7 comments
Assignees

Comments

@nordicjm
Copy link

Zephyr 3.5 deprecated rand32.h, the new include is random.h, this needs to be updated in ports/zephyr/common/memfault_http_periodic_upload.c

@noahp noahp self-assigned this Nov 17, 2023
@chrisc11
Copy link
Member

Thanks for the report @nordicjm -- we'll have the update published in our release next week

@nordicjm
Copy link
Author

@chrisc11 just checking which day you expect this release to be published on github?

@noahp
Copy link
Contributor

noahp commented Nov 30, 2023

@nordicjm - We hope to have this release (1.5.0) published tomorrow, 2023-11-30.

@nordicjm
Copy link
Author

nordicjm commented Dec 7, 2023

This appears to be a broken release, there is this unconditional cmake code in ports/zephyr/ncs/CMakeLists.txt:

  if (NCS_VERSION_MAJOR)
    # Note: Starting in nRF Connect SDK >= 1.3, NCS_VERSION_* fields are exposed
    if (${NCS_VERSION_MAJOR}.${NCS_VERSION_MINOR}.${NCS_VERSION_PATCH} GREATER_EQUAL 2.4.0)
      # We wrap download_client_get() in order to register multiple root certificates
      #   See comment in src/memfault_fota.c for more details
      zephyr_ld_options(-Wl,--wrap=download_client_get)
    endif()
  endif()

Which then causes a compilation failure because also in this file, the .c file that contains these wrapped functions is only included if a Kconfig is set:

zephyr_library_sources_ifdef(CONFIG_MEMFAULT_FOTA memfault_fota.c)

So when the download client is enabled and memfault FOTA is disabled, this prevents compilation of projects

@noahp
Copy link
Contributor

noahp commented Dec 7, 2023

@nordicjm apologies for that! I'll make a release asap, will respond back when it's published

@noahp
Copy link
Contributor

noahp commented Dec 7, 2023

@nordicjm Memfault SDK v1.5.1 is now available, with the fix for this issue

@nordicjm
Copy link
Author

nordicjm commented Dec 8, 2023

Perfect, all working, many thanks @noahp!

@nordicjm nordicjm closed this as completed Dec 8, 2023
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