diff options
author | Sascha Hauer <s.hauer@pengutronix.de> | 2014-02-25 15:38:07 +0100 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2014-02-28 08:14:14 +0100 |
commit | 24ae621e17e23f758fdbb2efe3d6bb8eb2c68634 (patch) | |
tree | 0cb1afca8aad979dd4bee087b8e50569df6c7e4c /common | |
parent | 991a12da04e85c58bf404637b4ad6c6d2ba018fe (diff) | |
download | barebox-24ae621e17e23f758fdbb2efe3d6bb8eb2c68634.tar.gz barebox-24ae621e17e23f758fdbb2efe3d6bb8eb2c68634.tar.xz |
defaultenv: Add boot option for DFU
DFU is for device firmware upgrade, but for development purposes it's
sometmes useful to just start a kernel vie DFU. This adds a boot option
for doing this and also the corresponding counterpart on the host. With
this it's possible to boot a system with:
scripts/dfuboot.sh -k linuximage -d dtb -c "root=ubi0:root ubi.mtd=ubi rootfstype=ubifs ignore_loglevel"
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'common')
-rw-r--r-- | common/Kconfig | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/common/Kconfig b/common/Kconfig index d862c05831..b9cbe19ae9 100644 --- a/common/Kconfig +++ b/common/Kconfig @@ -593,6 +593,12 @@ config DEFAULT_ENVIRONMENT_GENERIC_NEW_MENU depends on CONFIG_CMD_MENU_MANAGEMENT default y +config DEFAULT_ENVIRONMENT_GENERIC_NEW_DFU + bool + depends on DEFAULT_ENVIRONMENT_GENERIC_NEW + depends on USB_GADGET_DFU + default y + config DEFAULT_ENVIRONMENT_GENERIC bool depends on !HAVE_DEFAULT_ENVIRONMENT_NEW |