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

tests: lwm2m_client_utils: Add stubbing for LWM2M init macros #13

Closed

Conversation

SeppoTakalo
Copy link

Add initialization stub for LwM2M_***_INIT() macros to work.

Remove CONFIG_LWM2M_FIRMWARE_UPDATE_OBJ_SUPPORT=y as it is already directly included in CMakeListst.txt

rlubos and others added 23 commits March 5, 2024 16:01
Pull upmerged sdk-zephyr and sdk-mcuboot repositories.
Pull sdk-nrfxlib fixes.

Signed-off-by: Robert Lubos <[email protected]>
And use CMake's math expression instead.

Signed-off-by: Robert Lubos <[email protected]>
Add forward declaration of strnstr function.

Signed-off-by: Robert Lubos <[email protected]>
Align with bt_iso_chan_send() API change, which now does not take
timestamp parameter.

Signed-off-by: Robert Lubos <[email protected]>
"posix_subsys" library no longer exists in Zephyr. Manual linking
however does not seem to be needed after all (those ext libraries build
just fine w/o it), so remove the reference to posix_subsys.

Signed-off-by: Robert Lubos <[email protected]>
NRF_STORE_REBOOT_TYPE_GPREGRET option has been removed from Zephyr after
two-release deprecation period. This was too short however for Zigbee to
get rid of the option use.

This commit removes the option usage by Zigbee. The retention register
is now set unconditionally for all platfroms by Zigbee, not only for
nRF5340.

This needs verification from the ZB team. And eventually should likely
be replaced by the Boot Mode API use, as the migration guide suggests.

Signed-off-by: Robert Lubos <[email protected]>
Building the sample gives the following warning:

  warning: 'strncat' specified bound 1 equals source length

As the actual source length is equal to the provided maximum length,
using strncat() is redundant, could just use strcat().

Signed-off-by: Robert Lubos <[email protected]>
ztest_run_all() API has changed, align the NCS codebase.

Signed-off-by: Robert Lubos <[email protected]>
zperf result->client_time_in_us is not 64-bit, hence update the format
when printing.

BT_UUID_DECLARE_128() return value is now const.

Signed-off-by: Robert Lubos <[email protected]>
By using Zephyr's POSIX signal implementation.

Signed-off-by: Robert Lubos <[email protected]>
BT_ATT_ENFORCE_FLOW Kconfig option was removed from Zephyr.

Signed-off-by: Robert Lubos <[email protected]>
Align with the API changes in upstream audio subsystem.

Signed-off-by: Robert Lubos <[email protected]>
CMSIS_DSP now has finer-grade Kconfig granulation, therefore need to
select CMSIS_DSP_FASTMATH as well.

Signed-off-by: Robert Lubos <[email protected]>
CMSIS_DSP now has finer-grade Kconfig granulation, therefore need to
select CMSIS_DSP_FILTERING as well.

Signed-off-by: Robert Lubos <[email protected]>
Do not use BSD socket API names in the samples as they depend
on various Posix config options that we do not really need here.

Signed-off-by: Jukka Rissanen <[email protected]>
Do not use BSD socket API names in the samples as they depend
on various Posix config options that we do not really need here.

Signed-off-by: Jukka Rissanen <[email protected]>
Do not use BSD socket API names in the samples as they depend
on various Posix config options that we do not really need here.

Signed-off-by: Jukka Rissanen <[email protected]>
If user enables CONFIG_NRF700X_PROMISC_DATA_RX, then the
Zephyr CONFIG_NET_PROMISCUOUS_MODE needs to be enabled too
in order to avoid linking failure.

Signed-off-by: Jukka Rissanen <[email protected]>
The nrf7002ek and nrf7002ek_nrf7001 shields had memory overflow
of 532 bytes so adjust net RX and TX stack sizes so that the
station sample is able to run.

Signed-off-by: Jukka Rissanen <[email protected]>
Do not use BSD socket API names in the samples as they depend
on various Posix config options that we do not really need here.

Signed-off-by: Jukka Rissanen <[email protected]>
Using memcpy to copy strings which are shorter than the requested copy
length gives compiler warnings about exceeding array bounds, for
instance:

  error: 'memcpy' forming offset 19 is out of the bounds [0, 19]

Therefore, use strncpy() instead.

Signed-off-by: Robert Lubos <[email protected]>
Implicit promotion from float to double type now results in a
compilation warning, treated by CI as an error, hence use
explicit type cast wherever applicable.

Signed-off-by: Robert Lubos <[email protected]>
Add initialization stub for LwM2M_***_INIT() macros to
work.

Remove CONFIG_LWM2M_FIRMWARE_UPDATE_OBJ_SUPPORT=y as it
is already directly included in CMakeListst.txt

Signed-off-by: Seppo Takalo <[email protected]>
@rlubos
Copy link
Owner

rlubos commented Mar 6, 2024

cherry-picked into upmerge branch, thanks

@rlubos rlubos closed this Mar 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants