Skip to content

Commit

Permalink
mgmt: hawkbit: use SMF
Browse files Browse the repository at this point in the history
use smf for hawkbit.

Signed-off-by: Fin Maaß <[email protected]>
  • Loading branch information
maass-hamburg committed Apr 8, 2024
1 parent 9b0018e commit 49080dc
Show file tree
Hide file tree
Showing 5 changed files with 515 additions and 388 deletions.
3 changes: 2 additions & 1 deletion include/zephyr/mgmt/hawkbit.h
Original file line number Diff line number Diff line change
Expand Up @@ -24,11 +24,12 @@
*
*/
enum hawkbit_response {
HAWKBIT_NETWORKING_ERROR,
HAWKBIT_NETWORKING_ERROR = 1,
HAWKBIT_UNCONFIRMED_IMAGE,
HAWKBIT_PERMISSION_ERROR,
HAWKBIT_METADATA_ERROR,
HAWKBIT_DOWNLOAD_ERROR,
HAWKBIT_ALLOC_ERROR,
HAWKBIT_OK,
HAWKBIT_UPDATE_INSTALLED,
HAWKBIT_NO_UPDATE,
Expand Down
2 changes: 2 additions & 0 deletions samples/subsys/mgmt/hawkbit/prj.conf
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@ CONFIG_HTTP_CLIENT=y
CONFIG_DNS_RESOLVER=y
CONFIG_JSON_LIBRARY=y
CONFIG_BOOTLOADER_MCUBOOT=y
CONFIG_SMF=y
CONFIG_SMF_ANCESTOR_SUPPORT=y

#Main Stack Size
CONFIG_MAIN_STACK_SIZE=4096
Expand Down
2 changes: 2 additions & 0 deletions subsys/mgmt/hawkbit/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@ menuconfig HAWKBIT
depends on DNS_RESOLVER
depends on JSON_LIBRARY
depends on BOOTLOADER_MCUBOOT
depends on SMF
depends on SMF_ANCESTOR_SUPPORT
select MPU_ALLOW_FLASH_WRITE
select IMG_ENABLE_IMAGE_CHECK
select IMG_ERASE_PROGRESSIVELY
Expand Down
Loading

0 comments on commit 49080dc

Please sign in to comment.