Skip to content

Commit

Permalink
Merge branch 'apache:master' into Sysinit_update
Browse files Browse the repository at this point in the history
  • Loading branch information
supervillain101 committed Feb 1, 2023
2 parents c7f0c4e + 4b03911 commit 80ac16c
Show file tree
Hide file tree
Showing 9 changed files with 28 additions and 26 deletions.
2 changes: 1 addition & 1 deletion cborattr/src/cborattr.c
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
#include "tinycbor/cbor_buf_reader.h"

#ifdef __ZEPHYR__
#include <zephyr.h>
#include <zephyr/kernel.h>
#ifdef CONFIG_MGMT_CBORATTR_MAX_SIZE
#define CBORATTR_MAX_SIZE CONFIG_MGMT_CBORATTR_MAX_SIZE
#else
Expand Down
2 changes: 1 addition & 1 deletion cmd/fs_mgmt/port/zephyr/src/zephyr_fs_mgmt.c
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
* under the License.
*/

#include <fs/fs.h>
#include <zephyr/fs/fs.h>
#include <mgmt/mgmt.h>
#include <fs_mgmt/fs_mgmt_impl.h>

Expand Down
14 changes: 7 additions & 7 deletions cmd/img_mgmt/port/zephyr/src/zephyr_img_mgmt.c
Original file line number Diff line number Diff line change
Expand Up @@ -19,17 +19,17 @@

#define LOG_MODULE_NAME mcumgr_flash_mgmt
#define LOG_LEVEL CONFIG_IMG_MANAGER_LOG_LEVEL
#include <logging/log.h>
#include <zephyr/logging/log.h>
LOG_MODULE_REGISTER(LOG_MODULE_NAME);

#include <assert.h>
#include <drivers/flash.h>
#include <storage/flash_map.h>
#include <zephyr.h>
#include <zephyr/drivers/flash.h>
#include <zephyr/storage/flash_map.h>
#include <zephyr/kernel.h>
#include <soc.h>
#include <init.h>
#include <dfu/mcuboot.h>
#include <dfu/flash_img.h>
#include <zephyr/init.h>
#include <zephyr/dfu/mcuboot.h>
#include <zephyr/dfu/flash_img.h>
#include <mgmt/mgmt.h>
#include <img_mgmt/img_mgmt_impl.h>
#include <img_mgmt/img_mgmt.h>
Expand Down
2 changes: 1 addition & 1 deletion cmd/img_mgmt/port/zephyr/src/zephyr_img_mgmt_log.c
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
* under the License.
*/

#include <zephyr.h>
#include <zephyr/kernel.h>
#include <img_mgmt/img_mgmt.h>
/**
* Log event types (all events are CBOR-encoded):
Expand Down
2 changes: 2 additions & 0 deletions cmd/img_mgmt/src/img_mgmt.c
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,8 @@ img_mgmt_read_info(int image_slot, struct image_version *ver, uint8_t *hash,

#if IMG_MGMT_DUMMY_HDR
uint8_t dummy_hash[] = {0x00, 0x11, 0x22, 0x33, 0x44, 0x55, 0x66, 0x77,
0x00, 0x11, 0x22, 0x33, 0x44, 0x55, 0x66, 0x77,
0x00, 0x11, 0x22, 0x33, 0x44, 0x55, 0x66, 0x77,
0x00, 0x11, 0x22, 0x33, 0x44, 0x55, 0x66, 0x77};

if (!hash && !ver && !flags) {
Expand Down
6 changes: 3 additions & 3 deletions cmd/os_mgmt/port/zephyr/src/zephyr_os_mgmt.c
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,10 @@
* under the License.
*/

#include <zephyr.h>
#include <zephyr/kernel.h>
#include <power/reboot.h>
#include <debug/object_tracing.h>
#include <kernel_structs.h>
#include <zephyr/debug/object_tracing.h>
#include <zephyr/kernel_structs.h>
#include <mgmt/mgmt.h>
#include <util/mcumgr_util.h>
#include <os_mgmt/os_mgmt.h>
Expand Down
6 changes: 3 additions & 3 deletions cmd/shell_mgmt/port/zephyr/src/zephyr_shell_mgmt.c
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,11 @@
* under the License.
*/

#include <sys/util.h>
#include <shell/shell.h>
#include <zephyr/sys/util.h>
#include <zephyr/shell/shell.h>
#include <mgmt/mgmt.h>
#include <shell_mgmt/shell_mgmt.h>
#include <shell/shell_dummy.h>
#include <zephyr/shell/shell_dummy.h>

int
shell_mgmt_impl_exec(const char *line)
Expand Down
4 changes: 2 additions & 2 deletions cmd/stat_mgmt/port/zephyr/src/zephyr_stat_mgmt.c
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@
* under the License.
*/

#include <sys/util.h>
#include <stats/stats.h>
#include <zephyr/sys/util.h>
#include <zephyr/stats/stats.h>
#include <mgmt/mgmt.h>
#include <stat_mgmt/stat_mgmt.h>
#include <stat_mgmt/stat_mgmt_impl.h>
Expand Down
16 changes: 8 additions & 8 deletions samples/smp_svr/zephyr/src/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -18,17 +18,17 @@
*/

#include <assert.h>
#include <zephyr.h>
#include <zephyr/kernel.h>
#include <string.h>
#include <stdlib.h>
#include <stats/stats.h>
#include <zephyr/stats/stats.h>
#include <mgmt/buf.h>

#ifdef CONFIG_MCUMGR_CMD_FS_MGMT
#include <device.h>
#include <fs/fs.h>
#include <zephyr/device.h>
#include <zephyr/fs/fs.h>
#include "fs_mgmt/fs_mgmt.h"
#include <fs/littlefs.h>
#include <zephyr/fs/littlefs.h>
#endif
#ifdef CONFIG_MCUMGR_CMD_OS_MGMT
#include "os_mgmt/os_mgmt.h"
Expand All @@ -41,9 +41,9 @@
#endif

#ifdef CONFIG_MCUMGR_SMP_BT
#include <bluetooth/bluetooth.h>
#include <bluetooth/conn.h>
#include <bluetooth/gatt.h>
#include <zephyr/bluetooth/bluetooth.h>
#include <zephyr/bluetooth/conn.h>
#include <zephyr/bluetooth/gatt.h>
#include <mgmt/smp_bt.h>
#endif

Expand Down

0 comments on commit 80ac16c

Please sign in to comment.