1# Copyright (c) 2023 Nordic Semiconductor ASA
2# SPDX-License-Identifier: Apache-2.0
3
4menu "USB DFU sample options"
5
6config APP_USB_DFU_USE_FLASH_BACKEND
7	select FLASH
8	select FLASH_MAP
9	select STREAM_FLASH
10	select IMG_MANAGER
11	select IMG_ERASE_PROGRESSIVELY
12	bool "Option to clear the flash area before mounting"
13	help
14	  Use this to force an existing file system to be created.
15
16if APP_USB_DFU_USE_FLASH_BACKEND
17
18config USBD_DFU_FLASH
19	default y
20
21config USBD_DFU_FLASH_SLOT0
22	default n
23
24config USBD_DFU_FLASH_SLOT1
25	default y
26
27endif
28
29endmenu
30
31# Source common USB sample options used to initialize new experimental USB
32# device stack. The scope of these options is limited to USB samples in project
33# tree, you cannot use them in your own application.
34source "samples/subsys/usb/common/Kconfig.sample_usbd"
35
36source "Kconfig.zephyr"
37